public class BasicBlock extends Object implements org.jruby.dirgra.ExplicitVertexID, Comparable
Constructor and Description |
---|
BasicBlock(CFG cfg,
Label label) |
Modifier and Type | Method and Description |
---|---|
void |
addInstr(Instr i) |
BasicBlock |
clone(CloneInfo info,
CFG newCFG) |
BasicBlock |
cloneForInlining(InlineCloneInfo ii) |
void |
cloneInstrs(SimpleCloneInfo ii) |
int |
compareTo(Object o) |
int |
getID() |
List<Instr> |
getInstrs() |
Label |
getLabel() |
Instr |
getLastInstr() |
int |
hashCode() |
void |
insertInstr(Instr i) |
boolean |
isEmpty() |
boolean |
isEntryBB() |
boolean |
isExitBB() |
boolean |
isRescueEntry() |
void |
markRescueEntryBB() |
boolean |
removeInstr(Instr i) |
void |
replaceInstrs(List<Instr> instrs) |
BasicBlock |
splitAtInstruction(Instr splitPoint,
Label newLabel,
boolean includeSplitPointInstr) |
void |
swallowBB(BasicBlock foodBB) |
String |
toString() |
String |
toStringInstrs() |
public int getID()
getID
in interface org.jruby.dirgra.ExplicitVertexID
public Label getLabel()
public boolean isEntryBB()
public boolean isExitBB()
public void markRescueEntryBB()
public boolean isRescueEntry()
public void addInstr(Instr i)
public void insertInstr(Instr i)
public Instr getLastInstr()
public boolean removeInstr(Instr i)
public boolean isEmpty()
public BasicBlock splitAtInstruction(Instr splitPoint, Label newLabel, boolean includeSplitPointInstr)
public void swallowBB(BasicBlock foodBB)
public BasicBlock clone(CloneInfo info, CFG newCFG)
public void cloneInstrs(SimpleCloneInfo ii)
public BasicBlock cloneForInlining(InlineCloneInfo ii)
public int compareTo(Object o)
compareTo
in interface Comparable
public String toStringInstrs()
Copyright © 2001-2015 JRuby. All Rights Reserved.