public class LiveVariablesProblem extends DataFlowProblem<LiveVariablesProblem,LiveVariableNode>
DataFlowProblem.DF_Direction
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME |
direction, flowGraphNodes, scope
Constructor and Description |
---|
LiveVariablesProblem(IRScope scope) |
Modifier and Type | Method and Description |
---|---|
void |
addDFVar(Variable v) |
LiveVariableNode |
buildFlowGraphNode(BasicBlock bb) |
boolean |
dfVarExists(Variable v) |
java.util.Set<Variable> |
getAllVars() |
java.lang.String |
getDataFlowVarsForOutput() |
java.lang.Integer |
getDFVar(Variable v) |
java.util.Collection<LocalVariable> |
getLocalVarsLiveOnScopeEntry()
Get variables that are live on entry to the cfg.
|
java.lang.String |
getName() |
java.util.Set<LocalVariable> |
getNonSelfLocalVars() |
Variable |
getVariable(int id) |
java.util.Collection<LocalVariable> |
getVarsLiveOnScopeExit() |
void |
markDeadInstructions() |
void |
setVarsLiveOnScopeExit(java.util.Collection<LocalVariable> vars) |
addDataFlowVar, compute_MOP_Solution, generateWorkList, getDFVarsCount, getEntryNode, getExitNode, getFlowDirection, getFlowGraphNode, getScope, isEmpty, setup, toString
public static final java.lang.String NAME
public LiveVariablesProblem(IRScope scope)
public java.lang.Integer getDFVar(Variable v)
public boolean dfVarExists(Variable v)
public Variable getVariable(int id)
public LiveVariableNode buildFlowGraphNode(BasicBlock bb)
buildFlowGraphNode
in class DataFlowProblem<LiveVariablesProblem,LiveVariableNode>
public void addDFVar(Variable v)
public java.util.Collection<LocalVariable> getLocalVarsLiveOnScopeEntry()
public java.lang.String getDataFlowVarsForOutput()
getDataFlowVarsForOutput
in class DataFlowProblem<LiveVariablesProblem,LiveVariableNode>
public void markDeadInstructions()
public void setVarsLiveOnScopeExit(java.util.Collection<LocalVariable> vars)
public java.util.Collection<LocalVariable> getVarsLiveOnScopeExit()
public java.util.Set<Variable> getAllVars()
public java.util.Set<LocalVariable> getNonSelfLocalVars()
public java.lang.String getName()
getName
in class DataFlowProblem<LiveVariablesProblem,LiveVariableNode>
Copyright © 2001-2018 JRuby. All Rights Reserved.