|
|||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造函数 | 方法 | 详细信息: 字段 | 构造函数 | 方法 |
java.lang.Objectedu.ustc.cs.compile.arch.x86.regalloc.BasicBlock
public class BasicBlock
A basic block is an ordered list of statements which meets the following conditions simutaneously: 1. the first statement in a basic block is a label. 2. the last statement in a basic block is an unconditional or conditional jump instruction. 3. no other label, conditional or unconditional jump instructions.
字段摘要 | |
---|---|
private int |
id
|
private static int |
idSeed
|
private boolean |
isCondGoto
|
(专用软件包) Label |
label
|
private java.util.List<BasicBlock> |
nextBlocks
|
private int |
number
|
private java.util.List<BasicBlock> |
preBlocks
|
private AssemblySequence |
stmts
|
(专用软件包) java.lang.Object |
stuff
|
构造函数摘要 | |
---|---|
BasicBlock()
Constructor |
方法摘要 | |
---|---|
int |
getID()
Returns the basic block's ID number. |
Label |
getLabel()
Returns the label of the basic block. |
java.util.List<BasicBlock> |
getNextBlocks()
Returns the successing basic blocks. |
int |
getNumber()
Returns the number of this basic block. |
java.util.List<BasicBlock> |
getPreBlocks()
Returns the predecessing basic blocks. |
AssemblySequence |
getStmts()
Returns the basic block's body statements. |
boolean |
isCondGoto()
Returns true if this BB has a conditional jump instruction. |
void |
setCondGoto(boolean flag)
Sets a mark indicating that this BB has a conditional jump instruction. |
void |
setLabel(Label label_)
Sets the basic block's label. |
void |
setNumber(int number)
Sets the number of this basic block. |
java.lang.String |
toString()
(For debugging use only)Returns string representation of the basic block. |
从类 java.lang.Object 继承的方法 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
字段详细信息 |
---|
private java.util.List<BasicBlock> preBlocks
private java.util.List<BasicBlock> nextBlocks
private AssemblySequence stmts
Label label
java.lang.Object stuff
private int id
private static int idSeed
private int number
private boolean isCondGoto
构造函数详细信息 |
---|
public BasicBlock()
方法详细信息 |
---|
public Label getLabel()
public void setLabel(Label label_)
label_
- new label that will replace the BB's old one.public java.util.List<BasicBlock> getPreBlocks()
public java.util.List<BasicBlock> getNextBlocks()
public AssemblySequence getStmts()
public int getID()
public java.lang.String toString()
java.lang.Object
中的 toString
public boolean isCondGoto()
public void setCondGoto(boolean flag)
public int getNumber()
public void setNumber(int number)
|
|||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造函数 | 方法 | 详细信息: 字段 | 构造函数 | 方法 |