public class GlobalPlace extends AbstractPlace
| Constructor and Description |
|---|
GlobalPlace(CodeGenAnalyzer analyzer) |
| Modifier and Type | Method and Description |
|---|---|
void |
addSimpleAnalysis(SimpleAnalysis simpleAnalysis) |
static AbstractPlace |
createGlobalPlace(Map<CGElement,AbstractPlace> element2place,
CGElement cgElement) |
CodeGenAnalyzer |
getAnalyzer() |
ControlPlace |
getControlPlace(CGValuedElement cgElement) |
GlobalPlace |
getGlobalPlace()
Return the GlobalPlace.
|
GlobalPlace |
getParentPlace()
Return the parent of this place, which is self for the GlobalPlace.
|
AbstractPlace |
getPlace(CGElement cgElement) |
ReferencesVisitor |
getReferencesVisitor() |
SimpleAnalysis |
getSimpleAnalysis(Object anObject) |
List<CGValuedElement> |
getSortedGlobals(DependencyVisitor dependencyVisitor) |
StackPlace |
getStackPlace()
Return the stack place hosting this place.
|
void |
optimize(CGElement cgRoot)
Optimize the cgRoot tree by eliminating common subexpressions.
|
void |
optimizeGlobals(CGElement cgRoot) |
void |
printHierarchy(Appendable appendable,
String indentation) |
String |
toString() |
getControlPlacepublic GlobalPlace(CodeGenAnalyzer analyzer)
public static AbstractPlace createGlobalPlace(Map<CGElement,AbstractPlace> element2place, CGElement cgElement)
public void addSimpleAnalysis(SimpleAnalysis simpleAnalysis)
public CodeGenAnalyzer getAnalyzer()
public ControlPlace getControlPlace(CGValuedElement cgElement)
public GlobalPlace getGlobalPlace()
AbstractPlacegetGlobalPlace in class AbstractPlacepublic GlobalPlace getParentPlace()
AbstractPlacegetParentPlace in class AbstractPlacepublic AbstractPlace getPlace(CGElement cgElement)
public ReferencesVisitor getReferencesVisitor()
public SimpleAnalysis getSimpleAnalysis(Object anObject)
public List<CGValuedElement> getSortedGlobals(DependencyVisitor dependencyVisitor)
public StackPlace getStackPlace()
AbstractPlacegetStackPlace in class AbstractPlacepublic void optimize(CGElement cgRoot)
public void optimizeGlobals(CGElement cgRoot)
public void printHierarchy(Appendable appendable, String indentation)
printHierarchy in class AbstractPlaceCopyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.