|
|||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造函数 | 方法 | 详细信息: 字段 | 构造函数 | 方法 |
java.lang.Objectedu.ustc.cs.compile.arch.mips.regalloc.DataFlowGraph
public class DataFlowGraph
Represents the data flow graph.
The method we use to build the DFG is very simple: just one statement one basic block.
字段摘要 | |
---|---|
private java.util.ArrayList<BasicBlock> |
bbs
|
private BasicBlock |
end
|
private BasicBlock |
start
|
构造函数摘要 | |
---|---|
DataFlowGraph(int regVarNo)
Constructor. |
方法摘要 | |
---|---|
static DataFlowGraph |
buildDFG(java.util.List<AssemblyElement> assemblyStmts,
int startPos,
int regVarNo)
Build the data flow graph from assembly elements. |
private static void |
compress(DataFlowGraph dfg)
Compress the DFG built by method buildDFG(). |
java.util.List<BasicBlock> |
getBBs()
Get all basic blocks in this DFG. |
BasicBlock |
getEndBB()
Get the end basic block in this DFG. |
BasicBlock |
getStartBB()
Get the start basic block in this DFG. |
private static boolean |
isCondGoto(MIPSOpcode opcode)
|
private static boolean |
isUnCondGoto(MIPSOpcode opcode)
|
java.lang.String |
toString()
Get the string representation of this DFG. |
从类 java.lang.Object 继承的方法 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
字段详细信息 |
---|
private BasicBlock start
private BasicBlock end
private java.util.ArrayList<BasicBlock> bbs
构造函数详细信息 |
---|
public DataFlowGraph(int regVarNo)
Constructor.
regVarNo
- the number of pseudo register appears in the DFG.方法详细信息 |
---|
public static DataFlowGraph buildDFG(java.util.List<AssemblyElement> assemblyStmts, int startPos, int regVarNo)
Build the data flow graph from assembly elements.
assemblyStmts
- a list of assembly elementsstartPos
- the start positionregVarNo
- the number of pseudo register appears in the assembly
elementsprivate static void compress(DataFlowGraph dfg)
public BasicBlock getStartBB()
Get the start basic block in this DFG.
public BasicBlock getEndBB()
Get the end basic block in this DFG.
public java.util.List<BasicBlock> getBBs()
Get all basic blocks in this DFG.
public java.lang.String toString()
Get the string representation of this DFG.
java.lang.Object
中的 toString
private static boolean isUnCondGoto(MIPSOpcode opcode)
private static boolean isCondGoto(MIPSOpcode opcode)
|
|||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造函数 | 方法 | 详细信息: 字段 | 构造函数 | 方法 |