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(ControlFlowGraph cfg) |
Modifier and Type | Method and Description |
---|---|
void |
add(Block block) |
boolean |
contains(Block block) |
boolean |
isEmpty() |
Block |
poll() |
java.lang.String |
toString() |
protected java.util.IdentityHashMap<Block,java.lang.Integer> depthFirstOrder
protected java.util.PriorityQueue<Block> queue
public Worklist(ControlFlowGraph cfg)