public class SimpleGlobalValueNumberer extends java.lang.Object implements GlobalValueNumberer
Modifier and Type | Class and Description |
---|---|
protected class |
SimpleGlobalValueNumberer.Partition |
Modifier and Type | Field and Description |
---|---|
protected BlockGraph |
cfg |
protected int |
currentPartitionNumber |
protected java.util.List<SimpleGlobalValueNumberer.Partition> |
newPartitions |
protected java.util.Map<ValueGraph.Node,SimpleGlobalValueNumberer.Partition> |
nodeToPartition |
protected java.util.Set<SimpleGlobalValueNumberer.Partition> |
partitions |
protected ValueGraph |
vg |
Constructor and Description |
---|
SimpleGlobalValueNumberer(BlockGraph cfg) |
Modifier and Type | Method and Description |
---|---|
boolean |
areEqual(Local local1,
Local local2) |
protected boolean |
childrenAreInSamePartition(ValueGraph.Node node1,
ValueGraph.Node node2) |
int |
getGlobalValueNumber(Local local) |
protected void |
initPartition() |
protected void |
iterPartition() |
static void |
main(java.lang.String[] args) |
protected void |
processPartition(SimpleGlobalValueNumberer.Partition partition) |
java.lang.String |
toString() |
protected BlockGraph cfg
protected ValueGraph vg
protected java.util.Set<SimpleGlobalValueNumberer.Partition> partitions
protected java.util.Map<ValueGraph.Node,SimpleGlobalValueNumberer.Partition> nodeToPartition
protected int currentPartitionNumber
protected java.util.List<SimpleGlobalValueNumberer.Partition> newPartitions
public SimpleGlobalValueNumberer(BlockGraph cfg)
public static void main(java.lang.String[] args)
public int getGlobalValueNumber(Local local)
getGlobalValueNumber
in interface GlobalValueNumberer
public boolean areEqual(Local local1, Local local2)
areEqual
in interface GlobalValueNumberer
protected void initPartition()
protected void iterPartition()
protected void processPartition(SimpleGlobalValueNumberer.Partition partition)
protected boolean childrenAreInSamePartition(ValueGraph.Node node1, ValueGraph.Node node2)
public java.lang.String toString()
toString
in class java.lang.Object