Function Outliner::Preprocess::normalizeVarDecl

Function Outliner::Preprocess::normalizeVarDecl#

Function Documentation#

SgBasicBlock *Outliner::Preprocess::normalizeVarDecl(SgVariableDeclaration *s)#

Normalizes outline targets that are variable declarations, returning a new SgBasicBlock to outline.

This routine converts a variable declaration of the form:

TYPE i, j = J0, k = K0, …;

to:

TYPE i, j, k, …; { // @RET j = J0; k = K0; … }

and returns a pointer to the SgBasicBlock at “@RET”.

In addition to creating a new SgBasicBlock, this routine modifies the original SgVariableDeclaration by removing all SgAssignInitializers.