See: Description
Interface | Description |
---|---|
BURS_StateCoder |
Class | Description |
---|---|
AbstractBURS_TreeNode |
An AbstractBURS_TreeNode is a node in a binary tree that is fed
as input to BURS.
|
BURS |
A few common utilities used for invoking BURS tree-pattern matching
to do instruction selection.
|
BURS_Common_Helpers |
Contains BURS helper functions common to all platforms.
|
BURS_IntConstantTreeNode |
A subclass of BURS_TreeNode for an IntConstantOperand.
|
BURS_MemOp_Helpers |
Contains common BURS helper functions for platforms with memory operands.
|
BURS_MemOp_Helpers.AddrStackElement | |
BURS_MemOp_Helpers.MOStackElement | |
ConvertLIRtoMIR |
Convert an IR object from LIR to MIR via BURS
|
ConvertLIRtoMIR.ComplexOperators |
Stage 4: Handle complex operators
(those that expand to multiple basic blocks).
|
ConvertLIRtoMIR.DoBURS |
Stage 3: Block by block build DepGraph and do BURS based
instruction selection.
|
ConvertLIRtoMIR.DoLiveness | |
ConvertLIRtoMIR.InsertIMMQ_MOVForX64 | |
ConvertLIRtoMIR.NormalizeConstantsPhase |
Stage 2: Normalize usage of int constants to make less work in Stage 3.
|
ConvertLIRtoMIR.ReduceOperators |
Stage 1: Reduce the LIR operator set to a core set of operators.
|
MinimalBURS |
This class contains code for quick and dirty instruction selection
by forcing each instruction to be a tree and generating the trees in
the same input as the input LIR instructions.
|
NormalBURS |
This class contains methods for invoking BURS tree-pattern matching
from the OPT Compiler.
|
NormalBURS_DepGraph |
A special dependence graph for use by NormalBURS.
|
NormalBURS_DepGraphNode |
A special dependence graph node for use by NormalBURS.
|
SplitBasicBlock |
Splits a large basic block into smaller ones with
size <=
OptOptions.L2M_MAX_BLOCK_SIZE |
After the transition to machine-specific IR, almost all remaining
operators can be directly mapped to machine instructions. The actual
transition is done by
ConvertLIRtoMIR
which calls all the other classes. Some of these classes are
necessarily architecture-specific which is why they can be found in
the architecture-specific lir2mir packages.
A large part of the work of mapping of LIR instruction sequences to MIR instruction sequences is done by the BURS classes. We're using a custom fork of iburg that we call jburg. (NOTE: our jburg is not to be confused with JBurg). You can find it in our source tree. It is advised to take a look at it if you want to understand the BURS code. You should also get familiar with the generation of BURS classes in the build process.