public class Decorator extends Object
| Modifier and Type | Method and Description |
|---|---|
Set<AbstractNode> |
getAllPredecessorNodes(AbstractNode node)
Returns the set of predecessor nodes, either the node occurring immediately before the given node,
or the last node occurring in each predecessor basic block
|
Set<AbstractNode> |
getAllSuccessorNodes(AbstractNode node)
Returns the set of successor nodes, either the node occurring immediately after the given node,
or the set of nodes occurring in the following basic blocks
|
static Set<String> |
getDeclaredVariables(Function function)
Returns the set of variables declared in a given function.
|
Set<String> |
getInnerVariablesWritten(Function function)
Returns the set of variables potentially (over)written by inner functions for the given function.
|
Set<BasicBlock> |
getPredecessorBlocks(BasicBlock basicBlock)
Returns the set of basic blocks occurring immediately before the given basic block.
|
AbstractNode |
getPredecessorNode(AbstractNode node)
Returns the node occurring immediately before the given node.
|
AbstractNode |
getSuccessorNode(AbstractNode node)
Returns the node occuring immediate after the given node.
|
static void |
replaceVariable(BasicBlock basicBlock,
int targetVar,
int replacementVar)
Replace targetVar by replacementVar in the BasicBlock and all successors.
|
public Decorator(FlowGraph flowGraph)
public Set<AbstractNode> getAllPredecessorNodes(AbstractNode node)
public Set<AbstractNode> getAllSuccessorNodes(AbstractNode node)
public static Set<String> getDeclaredVariables(Function function)
public Set<String> getInnerVariablesWritten(Function function)
public Set<BasicBlock> getPredecessorBlocks(BasicBlock basicBlock)
public AbstractNode getPredecessorNode(AbstractNode node)
public AbstractNode getSuccessorNode(AbstractNode node)
public static void replaceVariable(BasicBlock basicBlock, int targetVar, int replacementVar)
Copyright © 2012 Aarhus University