public abstract class StackPlace extends LocalPlace
Modifier and Type | Field and Description |
---|---|
protected CGElement |
stackElement |
globalPlace
Modifier | Constructor and Description |
---|---|
protected |
StackPlace(GlobalPlace globalPlace,
CGElement stackElement) |
Modifier and Type | Method and Description |
---|---|
static StackPlace |
createStackPlace(java.util.Map<CGElement,AbstractPlace> element2place,
CGParameter cgParameter) |
CGElement |
getStackElement() |
StackPlace |
getStackPlace()
Return the stack place hosting this place.
|
void |
printHierarchy(java.lang.Appendable appendable,
java.lang.String indentation) |
void |
prune()
Eliminate CSE candidates that are not shared and do not need to be CSEs.
|
void |
pullUp()
Pull up all redundant child analyses that are visible in a parent to the parent.
|
void |
pushUp()
Push shareable analyses up the place tree.
|
void |
rewrite()
Rewrite the expression trees to exploit the CSEs.
|
java.lang.String |
toString() |
addControlPlace, createLocalPlace, getGlobalPlace, getGlobalPlace, getLocalPlace, getLocalPlace
getControlPlace, getParentPlace
@NonNull protected final CGElement stackElement
protected StackPlace(@NonNull GlobalPlace globalPlace, @NonNull CGElement stackElement)
@NonNull public static StackPlace createStackPlace(@NonNull java.util.Map<CGElement,AbstractPlace> element2place, @NonNull CGParameter cgParameter)
@NonNull public CGElement getStackElement()
@NonNull public StackPlace getStackPlace()
AbstractPlace
getStackPlace
in class LocalPlace
public void printHierarchy(@NonNull java.lang.Appendable appendable, @NonNull java.lang.String indentation)
printHierarchy
in class LocalPlace
public void prune()
LocalPlace
prune
in class LocalPlace
public void pullUp()
LocalPlace
pullUp
in class LocalPlace
public void pushUp()
LocalPlace
pushUp
in class LocalPlace
public void rewrite()
LocalPlace
rewrite
in class LocalPlace
public java.lang.String toString()
toString
in class java.lang.Object