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() |
getControlPlace
public 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()
AbstractPlace
getGlobalPlace
in class AbstractPlace
public GlobalPlace getParentPlace()
AbstractPlace
getParentPlace
in class AbstractPlace
public AbstractPlace getPlace(CGElement cgElement)
public ReferencesVisitor getReferencesVisitor()
public SimpleAnalysis getSimpleAnalysis(Object anObject)
public List<CGValuedElement> getSortedGlobals(DependencyVisitor dependencyVisitor)
public StackPlace getStackPlace()
AbstractPlace
getStackPlace
in class AbstractPlace
public void optimize(CGElement cgRoot)
public void optimizeGlobals(CGElement cgRoot)
public void printHierarchy(Appendable appendable, String indentation)
printHierarchy
in class AbstractPlace
Copyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.