Skip to content

Outliner::Preprocess::normalizeVarDecl

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

Synopsis

Declared in <src/midend/programTransformation/astOutlining/Preprocess.hh>

SgBasicBlock*
normalizeVarDecl(SgVariableDeclaration* s);

Description

This routine converts a variable declaration of the form:

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

to:

TYPE i, j, k, ...; { // 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.

Return Value

This class represents the concept of a block (not a basic block from control flow analysis).

Parameters

Name

Description

s

This class represents the concept of a C or C++ variable declaration.

Created with MrDocs