sageInterfaceAsm.h File Reference

Go to the source code of this file.

Namespaces

namespace  SageInterface

Typedefs

typedef bool(*) SageInterface::EquivalenceTestFunctionType (SgNode *x, SgNode *y)

Functions

void SageInterface::addComment (SgAsmStatement *stmt, const std::string &input_string)
SgAsmElfSectionSageInterface::getSection (SgProject *project, const std::string &name)
SgAsmElfSectionSageInterface::getSection (SgProject *project, size_t ptr)
SgAsmFunctionSageInterface::getAsmFunction (SgAsmInstruction *asmInstruction)
 Traverses AST backwards up the tree along the "parent" edges to the SgAsmFunction.
SgAsmBlockSageInterface::getAsmBlock (SgAsmInstruction *asmInstruction)
 Traverses AST backwards up the tree along the "parent" edges to the SgAsmBlock.
SgAsmInterpretationSageInterface::getAsmInterpretation (SgAsmNode *asmNode)
 Traverses AST backwards up the tree along the "parent" edges to the SgAsmInterpretation.
std::string SageInterface::generateUniqueName (size_t value, std::map< size_t, int > &usedOffsets, size_t &counter)
size_t SageInterface::get_value (SgAsmValueExpression *asmValueExpression)
std::string SageInterface::get_valueString (SgAsmValueExpression *asmValueExpression)
bool SageInterface::isMovInstruction (SgAsmInstruction *asmInstruction)
bool SageInterface::isInstructionKind (SgAsmInstruction *asmInstruction, X86InstructionKind instuctionKind)
bool SageInterface::equivalenceTest (SgNode *x, SgNode *y)
std::vector< SgNode * > SageInterface::flattenAST (SgNode *node)
std::vector< SgNode * > SageInterface::matchAST (SgNode *node, std::vector< SgNode * > &listOfNodes, EquivalenceTestFunctionType equivalenceTest)
std::vector< SgNode * > SageInterface::find (SgNode *astNode, SgNode *target, EquivalenceTestFunctionType equivalenceTest)
bool SageInterface::isNOP (SgAsmInstruction *asmInstruction)
 Test an instruction for if it has no side-effect to the state (is so then it is a NOP). This is a more general test than if it is equivelent to the NOP memonic instruction.
bool SageInterface::isNOP (const std::vector< SgAsmInstruction * > &asmInstructionList)
 Test a sequence of instructions for it they (as a set) have no side-effects to the state (is so then it is a NOP sequence).
std::vector< std::vector<
SgAsmInstruction * > > 
SageInterface::find_NOP_sequences (SgAsmBlock *asmBlock)
 find sequences of NOP instructions in a SgAsmBlock
void SageInterface::insertInstruction (SgAsmInstruction *targetInstruction, SgAsmInstruction *newInstruction, bool insertBefore)
 Support for insertion of instruction relative to a target instruction.
void SageInterface::insertInstructionBefore (SgAsmInstruction *targetInstruction, SgAsmInstruction *newInstruction)
 Insert a instruction before a target instruction.
void SageInterface::removeInstruction (SgAsmStatement *instruction)
 Remove a instruction.


Generated on Sat May 19 00:54:14 2012 for ROSE by  doxygen 1.4.7