public final class WeightedBranchTargets extends Object
Modifier and Type | Field and Description |
---|---|
private int |
cur |
private int |
max |
private BasicBlock[] |
targets |
private float[] |
weights |
Constructor and Description |
---|
WeightedBranchTargets(BasicBlock bb) |
Modifier and Type | Method and Description |
---|---|
private void |
addEdge(BasicBlock target,
float weight) |
void |
advance() |
BasicBlock |
curBlock() |
float |
curWeight() |
private boolean |
epsilon(float a,
float b) |
boolean |
hasMoreElements() |
void |
reset() |
private BasicBlock[] targets
private float[] weights
private int cur
private int max
public WeightedBranchTargets(BasicBlock bb)
public void reset()
public boolean hasMoreElements()
public void advance()
public BasicBlock curBlock()
public float curWeight()
private void addEdge(BasicBlock target, float weight)
private boolean epsilon(float a, float b)