org.jikesrvm.compilers.opt.lir2mir
Class BURS
java.lang.Object
org.jikesrvm.compilers.opt.lir2mir.BURS
- Direct Known Subclasses:
- MinimalBURS, NormalBURS
public abstract class BURS
- extends Object
A few common utilities used for invoking BURS tree-pattern matching
to do instruction selection. The interesting code is in the
subclasses of this class.
Constructor Summary |
BURS(IR ir)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEBUG
public static final boolean DEBUG
- See Also:
- Constant Field Values
NullTreeNode
protected final ArchitectureSpecificOpt.BURS_TreeNode NullTreeNode
LongConstant
protected final ArchitectureSpecificOpt.BURS_TreeNode LongConstant
AddressConstant
protected final ArchitectureSpecificOpt.BURS_TreeNode AddressConstant
Register
protected final ArchitectureSpecificOpt.BURS_TreeNode Register
BranchTarget
protected final ArchitectureSpecificOpt.BURS_TreeNode BranchTarget
ir
public final IR ir
lastInstr
protected Instruction lastInstr
BURS
BURS(IR ir)
prepareForBlock
final void prepareForBlock(BasicBlock bb)
- Prepare to convert a block. Must be called before invoke.
- Parameters:
bb
-
finalizeBlock
final void finalizeBlock(BasicBlock bb)
- Must be called after invoke for all non-empty blocks.
- Parameters:
bb
-
append
public final void append(Instruction instruction)
- Appends an instruction, i.e. emits an MIR instruction.