|
|||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造函数 | 方法 | 详细信息: 字段 | 构造函数 | 方法 |
java.lang.Objectedu.ustc.cs.compile.arch.mips.regalloc.AllocateResult
public class AllocateResult
Represents the result of the register allocation.
After register allocation, each pseudo register is allocated to a hard register or spilt to the stack.
字段摘要 | |
---|---|
private java.lang.Integer |
offset
|
private MIPSRegister |
reg
|
构造函数摘要 | |
---|---|
AllocateResult(java.lang.Integer offset)
Constructs an AllocateResult object representing that a pseudo register is spilt to the stack. |
|
AllocateResult(MIPSRegister register)
Constructs an AllocateResult object representing that a pseudo register is allocated to a hard register. |
方法摘要 | |
---|---|
boolean |
isRegister()
Indicates whether the pseudo register is allocated to a hard register. |
boolean |
isSpilt()
Indicates whether the pseudo register is spilt to the stack. |
java.lang.Integer |
offset()
Get the offset from the bottom of the stack. |
MIPSRegister |
register()
Get the hard register to which the pseudo register is allocated. |
java.lang.String |
toString()
Get the string representation of the allocation result. |
从类 java.lang.Object 继承的方法 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
字段详细信息 |
---|
private MIPSRegister reg
private java.lang.Integer offset
构造函数详细信息 |
---|
public AllocateResult(MIPSRegister register)
Constructs an AllocateResult object representing that a pseudo register is allocated to a hard register.
register
- the hard register to which the pseudo register is
allocated.public AllocateResult(java.lang.Integer offset)
Constructs an AllocateResult object representing that a pseudo register is spilt to the stack.
offset
- the offset from the bottom of the stack.方法详细信息 |
---|
public boolean isRegister()
Indicates whether the pseudo register is allocated to a hard register.
public MIPSRegister register()
Get the hard register to which the pseudo register is allocated.
public boolean isSpilt()
Indicates whether the pseudo register is spilt to the stack.
public java.lang.Integer offset()
Get the offset from the bottom of the stack.
public java.lang.String toString()
Get the string representation of the allocation result.
java.lang.Object
中的 toString
|
|||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造函数 | 方法 | 详细信息: 字段 | 构造函数 | 方法 |