Skip to content

Outliner::Preprocess

Functions

Name Description
checkAndPatchUpOptions
void checkAndPatchUpOptions();
Sanity check and patch up outliner options
copyNonLocalFunctionDeclaration
SgFunctionDeclaration* copyNonLocalFunctionDeclaration( SgFunctionDeclaration* source, SgScopeStatement* scope, SgStatement* insertionAnchor);
createBlock
SgBasicBlock* createBlock(SgStatement* s);
Convert the "plain-old" statement into an SgBasicBlock. This normalization simplifies outlining of single statements.
gatherNonLocalDecls
void gatherNonLocalDecls(SgBasicBlock* b);
Gathers non-local declarations into the local scope.
moveLeadingPreprocessorPrefixForPrototype
void moveLeadingPreprocessorPrefixForPrototype( SgStatement* source, SgStatement* destination);
preparePrototypeParameterDeclarations
void preparePrototypeParameterDeclarations( SgFunctionDeclaration const* prototype, SgGlobal* scope, SgDeclarationStatement* boundary);
preprocessOutlineTarget
SgBasicBlock* preprocessOutlineTarget(SgStatement* s);
Preprocesses the outline target and returns an equivalent SgBasicBlock to outline.
transformNonLocalControlFlow
SgBasicBlock* transformNonLocalControlFlow(SgBasicBlock* b_orig);
Preprocess non-local control flow for outlining.
transformPreprocIfs
SgBasicBlock* transformPreprocIfs(SgBasicBlock* b);
Transform '#if' directive structure. It is possible that certain preprocessor directives may straddle the boundaries of a basic block. This routine attempts to detect and transform these instances so that the block may be safely outlined.
transformThisExprs
SgBasicBlock* transformThisExprs(SgBasicBlock* b);
Canonicalize references to 'this'.

Created with MrDocs