blob: 34bc0fe09d73cba543e4754e1f8a1a1dbb8d8bcc (
plain) (
tree)
|
|
/*! @file Target_powerpc.h
* @brief Target_powerpc Specification
*
* This file contains the specification of the Target_powerpc class.
*/
#ifndef __TARGET_POWERPC_H__
#define __TARGET_POWERPC_H__
#include <list>
#include <string>
#include "TargetBase.h"
namespace Target {
/*!
*
* This class is the class for the powerpc target.
*
*/
class Target_powerpc: public TargetBase {
public:
/*!
* This method constructs an Target_powerpc instance.
*/
Target_powerpc( std::string targetName );
/*!
* This method destructs an Target_powerpc instance.
*/
virtual ~Target_powerpc();
/*!
* This method determines whether the specified line from a
* objdump file is a nop instruction.
*
* @param[in] line contains the object dump line to check
* @param[out] size is set to the size in bytes of the nop
*
* @return Returns TRUE if the instruction is a nop, FALSE otherwise.
*/
bool isNopLine(
const char* const line,
int& size
);
/*!
* This method determines if the specified line from an
* objdump file is a branch instruction.
*/
bool isBranch(
const char* const instruction
);
private:
};
//!
//! @brief Constructor Helper
//!
//! This is a constructor helper for this class which can be used in support
//! of factories.
//!
//! @param [in] Targetname is the name of the Target being constructed.
//!
//! @return This method constructs a new instance of the Target and returns
//! that to the caller.
//!
TargetBase *Target_powerpc_Constructor(
std::string targetName
);
}
#endif
|