Outliner::Preprocess::propagateStaticConstMembers
Constant propagation for static member variables
Synopsis
Declared in <src/midend/programTransformation/astOutlining/Preprocess.hh>
void
propagateStaticConstMembers(SgBasicBlock* b);
Description
This routine analyzes the basic block to‐be‐outlined, and determines if any variables need to be replaced with their constant values.
This is needed since the outlining step will use addressOf Operator to pass variables around, which may require explicit definition of static member variables of a class.
Original code do not need such definitions as long as they are integer or enumerate types of static constant variables with intialized values.
Parameters
Name |
Description |
b |
This class represents the concept of a block (not a basic block from control flow analysis). |
Created with MrDocs