attachComment
void attachComment( std::string const& comment, SgStatement* s); | Attaches a string as a new C++-style comment to the given statement. |
canonicalFunctionFamilyDeclaration
[[visibility("default")]] SgFunctionDeclaration* canonicalFunctionFamilyDeclaration(SgFunctionDeclaration* declaration); | Return the canonical declaration that identifies a function family. |
collectDefdVarSyms
[[visibility("default")]] void collectDefdVarSyms( SgNode const* s, VarSymSet_t& syms); | Collect var syms for all local variable declarations at 's'. |
collectLocalVisibleVarSyms
[[visibility("default")]] void collectLocalVisibleVarSyms( SgStatement const* root, SgStatement const* target, VarSymSet_t& syms); | Collect var syms declared at 'root' or below that are visible to 'target'. |
collectNonLocalGotos
void collectNonLocalGotos( SgStatement const* root, JumpMap_t& jumps); | Collect non-local "goto" statements. |
collectNonLocalJumps
void collectNonLocalJumps( SgStatement const* root, JumpMap_t& jumps); | Collect non-local "jumps" within a statement. |
collectPointerDereferencingVarSyms
[[visibility("default")]] void collectPointerDereferencingVarSyms( SgStatement const* s, VarSymSet_t& pdSyms); | Collect variables suitable for using pointer dereferencing |
collectRefdVarSyms
[[visibility("default")]] void collectRefdVarSyms( SgNode const* s, VarSymSet_t& syms); | Collect var syms for all variable references at 's'. |
collectThisExpressions
void collectThisExpressions( SgStatement const* root, ThisExprSet_t& exprs); | Collect 'this' expressions. |
collectVarRefsOfTypeWithoutAssignmentSupport
[[visibility("default")]] void collectVarRefsOfTypeWithoutAssignmentSupport( SgStatement const* s, std::set<SgVarRefExp*>& varSetB); | Collect variable references with a type which does not support =operator or copy construction. Those two support is essential for temp variables used to copy and restore parameters |
collectVarRefsUsingAddress
[[visibility("default")]] void collectVarRefsUsingAddress( SgStatement const* s, std::set<SgVarRefExp*>& varSetB); | Collect variable references using addresses for s |
cutPreprocInfo
void cutPreprocInfo( SgBasicBlock* b, PreprocessingInfo::RelativePositionType pos, AttachedPreprocessingInfoType& save_buf); | Removes all preprocessing information at a given position. |
deepCopy
[[visibility("default")]] SgNode* deepCopy(SgNode const* n); | Create a deep-copy of an SgNode |
findFirstFuncDef
[[visibility("default")]] SgFunctionDefinition const* findFirstFuncDef(SgStatement const* s); | Search for the first surrounding function definition. |
functionOwningHiddenNamedType
[[visibility("default")]] SgFunctionDeclaration* functionOwningHiddenNamedType(SgType* type); | Return the function that lexically owns a function-local named type. |
insertHeader
void insertHeader( std::string const& filename, SgProject* proj); | Inserts an '#include' into every source file, including an empty file. |
isConstObj
bool isConstObj(SgType const* type); | Returns 'true' if the specified type is a 'const' object. |
isIfCond
bool isIfCond(SgStatement const* s); | Returns 'true' <==> 's' is the condition of some 'if' statement. |
isIfDirectiveBegin
bool isIfDirectiveBegin(PreprocessingInfo const* info); | Returns true if the info is an '#if', '#ifdef', or '#ifndef'. |
isIfDirectiveEnd
bool isIfDirectiveEnd(PreprocessingInfo const* info); | |
isIfDirectiveMiddle
bool isIfDirectiveMiddle(PreprocessingInfo const* info); | Returns true if the info is an '#elif' or '#else'. |
isPositionAfter
bool isPositionAfter(PreprocessingInfo const* info); | Returns true if info is positioned after its statement. |
isPositionBefore
bool isPositionBefore(PreprocessingInfo const* info); | Returns true if info is positioned before its statement. |
isPositionInside
bool isPositionInside(PreprocessingInfo const* info); | Returns true if info is positioned inside its statement. |
isSwitchCond
bool isSwitchCond(SgStatement const* s); | Returns 'true' <==> 's' is the conditional selector of some 'switch' statement. |
isWhileCond
bool isWhileCond(SgStatement const* s); | Returns 'true' <==> 's' is the condition of some 'while' or 'do ... while' statement. |
moveAfterPreprocInfo
void moveAfterPreprocInfo( SgStatement* src, SgStatement* dest); | Moves 'after' preprocessing information. |
moveBeforePreprocInfo
void moveBeforePreprocInfo( SgStatement* src, SgStatement* dest); | Moves 'before' preprocessing information. |
moveInsidePreprocInfo
void moveInsidePreprocInfo( SgBasicBlock* src, SgBasicBlock* dest); | Moves 'inside' preprocessing information. |
moveUpPreprocInfo
void moveUpPreprocInfo( SgStatement* stmt1, SgStatement* stmt2); | Moves preprocessingInfo of stmt2 to stmt1. |
pastePreprocInfoBack
void pastePreprocInfoBack( AttachedPreprocessingInfoType& save_buf, SgStatement* s); | Pastes preprocessing information at the back of a statement. |
pastePreprocInfoFront
void pastePreprocInfoFront( AttachedPreprocessingInfoType& save_buf, SgStatement* s); | Pastes preprocessing information at the front of a statement. |
publishTemplateParameterPackExpansion
[[visibility("default")]] void publishTemplateParameterPackExpansion( SgTemplateParameter const* parameter, SgTemplateArgument* argument); | Publish the exact use-site pack-expansion surface for an argument that references a template parameter. A type parameter's SgTemplateType owns the ellipsis in its declaration; the SgTemplateArgument owns the ellipsis in a generated template-id use. |
requiresVariableCapture
[[visibility("default")]] bool requiresVariableCapture(SgVarRefExp const* reference); | |
sameFunctionFamily
[[visibility("default")]] bool sameFunctionFamily( SgFunctionDeclaration* lhs, SgFunctionDeclaration* rhs); | Return true when two declarations belong to the same function family. |
toStringFileLoc
std::string toStringFileLoc(SgLocatedNode const* n); | Convert a node's location to a string-friendly form. |
transformToBlockShell
SgBasicBlock* transformToBlockShell(SgBasicBlock* b_orig); | Create an SgBasicBlock shell around an existing SgBasicBlock. |