ROSE  0.9.6a
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
sageInterfaceAsm.h File Reference

Go to the source code of this file.

Namespaces

 SageInterface
 

Constant Groups

 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. More...
 
SgAsmBlockSageInterface::getAsmBlock (SgAsmInstruction *asmInstruction)
 Traverses AST backwards up the tree along the "parent" edges to the SgAsmBlock. More...
 
SgAsmInterpretationSageInterface::getAsmInterpretation (SgAsmNode *asmNode)
 Traverses AST backwards up the tree along the "parent" edges to the SgAsmInterpretation. More...
 
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. More...
 
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). More...
 
std::vector< std::vector
< SgAsmInstruction * > > 
SageInterface::find_NOP_sequences (SgAsmBlock *asmBlock)
 find sequences of NOP instructions in a SgAsmBlock More...
 
void SageInterface::insertInstruction (SgAsmInstruction *targetInstruction, SgAsmInstruction *newInstruction, bool insertBefore)
 Support for insertion of instruction relative to a target instruction. More...
 
void SageInterface::insertInstructionBefore (SgAsmInstruction *targetInstruction, SgAsmInstruction *newInstruction)
 Insert a instruction before a target instruction. More...
 
void SageInterface::removeInstruction (SgAsmStatement *instruction)
 Remove a instruction. More...