public class SimpleGlobalValueNumberer extends 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 List<SimpleGlobalValueNumberer.Partition> |
newPartitions |
protected Map<ValueGraph.Node,SimpleGlobalValueNumberer.Partition> |
nodeToPartition |
protected 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(String[] args) |
protected void |
processPartition(SimpleGlobalValueNumberer.Partition partition) |
String |
toString() |
protected BlockGraph cfg
protected ValueGraph vg
protected Set<SimpleGlobalValueNumberer.Partition> partitions
protected Map<ValueGraph.Node,SimpleGlobalValueNumberer.Partition> nodeToPartition
protected int currentPartitionNumber
protected List<SimpleGlobalValueNumberer.Partition> newPartitions
public SimpleGlobalValueNumberer(BlockGraph cfg)
public static void main(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)
Copyright © 2020 Sable. All rights reserved.