Function Outliner::Preprocess::normalizeVarDecl#
Defined in File Preprocess.hh
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.