protected static class Analysis.Worklist
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
class |
Analysis.Worklist.DFOComparator
Comparator to allow priority queue to order blocks by their depth-first order.
|
Modifier and Type | Field and Description |
---|---|
protected java.util.IdentityHashMap<Block,java.lang.Integer> |
depthFirstOrder
Map all blocks in the CFG to their depth-first order.
|
protected java.util.PriorityQueue<Block> |
queue
The backing priority queue.
|
Constructor and Description |
---|
Worklist() |
Modifier and Type | Method and Description |
---|---|
void |
add(Block block) |
boolean |
contains(Block block) |
boolean |
isEmpty() |
Block |
poll() |
void |
process(ControlFlowGraph cfg) |
java.lang.String |
toString() |
protected final java.util.IdentityHashMap<Block,java.lang.Integer> depthFirstOrder
protected final java.util.PriorityQueue<Block> queue
public void process(ControlFlowGraph cfg)
public boolean isEmpty()
public boolean contains(Block block)
public void add(Block block)
public Block poll()
public java.lang.String toString()
toString
in class java.lang.Object