|
|||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造函数 | 方法 | 详细信息: 字段 | 构造函数 | 方法 |
java.lang.Objectedu.ustc.cs.compile.arch.mips.regalloc.BasicBlock
public class BasicBlock
Represents the basic block.
字段摘要 | |
---|---|
private java.util.BitSet |
def
|
private int |
id
|
private static int |
idSeed
|
private java.util.BitSet |
inLiveVariables
|
private boolean |
isCondGoto
|
private boolean |
isVisited
|
private java.util.ArrayList<BasicBlock> |
nextBlocks
|
private int |
number
|
private java.util.BitSet |
outLiveVariables
|
private java.util.ArrayList<BasicBlock> |
preBlocks
|
private java.util.ArrayList<AssemblyElement> |
stmts
|
private java.util.BitSet |
use
|
构造函数摘要 | |
---|---|
BasicBlock(int regVarNo)
Constructor. |
方法摘要 | |
---|---|
java.util.BitSet |
def()
Get the def information of this basic block. |
int |
getID()
Get the id of this basic block. |
java.util.List<BasicBlock> |
getNextBlocks()
Get the list of successors of this basic block in the CFG. |
int |
getNumber()
Get the number of this basic block. |
java.util.List<BasicBlock> |
getPreBlocks()
Get the list of predecessors of this basic block in the CFG. |
java.util.List<AssemblyElement> |
getStmts()
Get the statements in this basic block. |
java.util.BitSet |
inLiveVariables()
Get live variables at the entrance of this basic block. |
boolean |
isCondGoto()
Indicates whether this basic block contains conditional jump statement. |
boolean |
isVisited()
Indicates whether this basic block has been visited. |
java.util.BitSet |
outLiveVariables()
Get live variables at the exit of this basic block. |
void |
setCondGoto(boolean flag)
Set the conditional jump flag of this basic block. |
void |
setNumber(int number)
Set the number of this basic block. |
void |
setVisited(boolean flag)
Set the visited flag of this basic block. |
java.lang.String |
toString()
Get the string representation of this basic block. |
java.util.BitSet |
use()
Get the use information of this basic block. |
从类 java.lang.Object 继承的方法 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
字段详细信息 |
---|
private java.util.ArrayList<BasicBlock> preBlocks
private java.util.ArrayList<BasicBlock> nextBlocks
private java.util.ArrayList<AssemblyElement> stmts
private java.util.BitSet inLiveVariables
private java.util.BitSet outLiveVariables
private java.util.BitSet def
private java.util.BitSet use
private int id
private static int idSeed
private int number
private boolean isCondGoto
private boolean isVisited
构造函数详细信息 |
---|
public BasicBlock(int regVarNo)
Constructor.
regVarNo
- the number of the pseudo registers that appear in this
basic block.方法详细信息 |
---|
public java.util.List<BasicBlock> getPreBlocks()
Get the list of predecessors of this basic block in the CFG.
public java.util.List<BasicBlock> getNextBlocks()
Get the list of successors of this basic block in the CFG.
public java.util.List<AssemblyElement> getStmts()
Get the statements in this basic block.
public int getID()
Get the id of this basic block.
public java.lang.String toString()
Get the string representation of this basic block.
java.lang.Object
中的 toString
public boolean isCondGoto()
Indicates whether this basic block contains conditional jump statement.
public void setCondGoto(boolean flag)
Set the conditional jump flag of this basic block.
flag
- if this basic block contains the conditional jump statement, the flag
should be true.public boolean isVisited()
Indicates whether this basic block has been visited.
public void setVisited(boolean flag)
Set the visited flag of this basic block.
flag
- if this basic block has been visited, it should be true.public int getNumber()
Get the number of this basic block. NOTE: it's not the id of this basic block.
The number is used in the linear scan register allocation. See "M Poletto, V Sarkar, Linear scan register allocation, ACM Transactions on Programming Languages and Systems, 1999.10".
public void setNumber(int number)
Set the number of this basic block.
number
- the number of this basic block.public java.util.BitSet inLiveVariables()
Get live variables at the entrance of this basic block.
public java.util.BitSet outLiveVariables()
Get live variables at the exit of this basic block.
public java.util.BitSet def()
Get the def information of this basic block.
The definition of def is described in the "Red Dragon Book".
public java.util.BitSet use()
Get the use information of this basic block.
The definition of use is described in the "Red Dragon Book".
|
|||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造函数 | 方法 | 详细信息: 字段 | 构造函数 | 方法 |