public class ControlPlace extends LocalPlace
Constructor and Description |
---|
ControlPlace(LocalPlace parentPlace,
CGValuedElement cgElement) |
Modifier and Type | Method and Description |
---|---|
void |
addAnalysis(AbstractAnalysis anAnalysis) |
static AbstractPlace |
createControlPlace(Map<CGElement,AbstractPlace> element2place,
CGValuedElement cgElement) |
static ControlPlace |
getControlPlace(Map<CGElement,AbstractPlace> element2place,
CGValuedElement cgElement) |
int |
getDepth() |
HashedAnalyses |
getHashedAnalyses() |
LocalPlace |
getParentPlace()
Return the parent of this place, which is self for the GlobalPlace.
|
SimpleAnalysis |
getSimpleAnalysis() |
StackPlace |
getStackPlace()
Return the stack place hosting this place.
|
void |
printHierarchy(Appendable appendable,
String indentation) |
void |
prune()
Filter the element analyses to discard non-SharedAnalysis and to return a partitioning of the results by minimum depth.
|
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.
|
String |
toString() |
addControlPlace, createLocalPlace, getGlobalPlace
getControlPlace
public ControlPlace(LocalPlace parentPlace, CGValuedElement cgElement)
public static AbstractPlace createControlPlace(Map<CGElement,AbstractPlace> element2place, CGValuedElement cgElement)
public static ControlPlace getControlPlace(Map<CGElement,AbstractPlace> element2place, CGValuedElement cgElement)
public void addAnalysis(AbstractAnalysis anAnalysis)
public int getDepth()
public HashedAnalyses getHashedAnalyses()
public LocalPlace getParentPlace()
AbstractPlace
getParentPlace
in class AbstractPlace
public SimpleAnalysis getSimpleAnalysis()
public StackPlace getStackPlace()
AbstractPlace
getStackPlace
in class LocalPlace
public void printHierarchy(Appendable appendable, String indentation)
printHierarchy
in class LocalPlace
public void prune()
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
Copyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.