ROSE 0.11.145.147
Architecture/Powerpc.h
1#ifndef ROSE_BinaryAnalysis_Architecture_Powerpc_H
2#define ROSE_BinaryAnalysis_Architecture_Powerpc_H
3#include <featureTests.h>
4#ifdef ROSE_ENABLE_BINARY_ANALYSIS
5#include <Rose/BinaryAnalysis/Architecture/Base.h>
6
7namespace Rose {
8namespace BinaryAnalysis {
9namespace Architecture {
10
12class Powerpc: public Base {
13public:
14 using Ptr = PowerpcPtr;
15
16protected:
18public:
19 ~Powerpc();
20
21public:
22 virtual const CallingConvention::Dictionary& callingConventions() const override;
23 std::string instructionMnemonic(const SgAsmInstruction*) const override;
24 std::string instructionDescription(const SgAsmInstruction*) const override;
25
29 bool isUnknown(const SgAsmInstruction*) const override;
30 bool isFunctionCallFast(const std::vector<SgAsmInstruction*>&, rose_addr_t *target, rose_addr_t *ret) const override;
31 bool isFunctionReturnFast(const std::vector<SgAsmInstruction*>&) const override;
32 AddressSet getSuccessors(SgAsmInstruction*, bool &complete) const override;
33
36
39
40 std::vector<Partitioner2::FunctionPrologueMatcherPtr>
42
43protected:
44 // IBM calling convention
46};
47
48} // namespace
49} // namespace
50} // namespace
51
52#endif
53#endif
Information about alignments.
Definition Alignment.h:16
Base class for architecture definitions.
size_t bitsPerWord() const
Property: Word size.
size_t bytesPerWord() const
Property: Word size.
Base class for PowerPC architectures.
bool isFunctionCallFast(const std::vector< SgAsmInstruction * > &, rose_addr_t *target, rose_addr_t *ret) const override
Returns true if the specified basic block looks like a function call.
virtual const CallingConvention::Dictionary & callingConventions() const override
Property: Calling convention definitions.
std::vector< Partitioner2::FunctionPrologueMatcherPtr > functionPrologueMatchers(const Partitioner2::EnginePtr &) const override
Instruction patterns matching function prologues.
bool isFunctionReturnFast(const std::vector< SgAsmInstruction * > &) const override
Returns true if the specified basic block looks like a function return.
bool isUnknown(const SgAsmInstruction *) const override
Returns true if the instruction is the special "unknown" instruction.
std::string instructionDescription(const SgAsmInstruction *) const override
Description for an instruction.
Alignment instructionAlignment() const override
Alignment for encoded machine instructions.
Sawyer::Container::Interval< size_t > bytesPerInstruction() const override
Valid sizes for encoded machine instructions.
bool terminatesBasicBlock(SgAsmInstruction *) const override
Determines whether the specified instruction normally terminates a basic block.
std::string instructionMnemonic(const SgAsmInstruction *) const override
Mnemonic for an instruction.
virtual InstructionSemantics::BaseSemantics::DispatcherPtr newInstructionDispatcher(const InstructionSemantics::BaseSemantics::RiscOperatorsPtr &) const override
Construct and return a new instruction dispatcher.
Disassembler::BasePtr newInstructionDecoder() const override
Construct and return a new instruction decoder.
Unparser::BasePtr newUnparser() const override
Construct and return a new instruction unparser.
AddressSet getSuccessors(SgAsmInstruction *, bool &complete) const override
Control flow successors for a single instruction.
Range of values delimited by endpoints.
Definition Interval.h:31
Base class for machine instructions.
std::shared_ptr< Powerpc > PowerpcPtr
Reference counted pointer for Powerpc.
std::vector< DefinitionPtr > Dictionary
An ordered collection of calling convention definitions.
boost::shared_ptr< RiscOperators > RiscOperatorsPtr
Shared-ownership pointer to a RISC operators object.
boost::shared_ptr< Dispatcher > DispatcherPtr
Shared-ownership pointer to a semantics instruction dispatcher.
The ROSE library.
const char * Architecture(int64_t)
Convert Rose::BinaryAnalysis::Disassembler::Mips::Decoder::Architecture enum constant to a string.