public class BURS_TreeNode extends AbstractBURS_TreeNode
Machine-generated, do not edit! If you need to make changes to this file, edit BURS_TreeNode.template.
BURS
,
BURS_STATE
Modifier and Type | Field and Description |
---|---|
private char |
cost_address |
private char |
cost_address1reg |
private char |
cost_address1scaledreg |
private char |
cost_any |
private char |
cost_bittest |
private char |
cost_boolcmp |
private char |
cost_cz |
private char |
cost_czr |
private char |
cost_double_load |
private char |
cost_float_load |
private char |
cost_load16 |
private char |
cost_load16_32 |
private char |
cost_load32 |
private char |
cost_load64 |
private char |
cost_load8 |
private char |
cost_load8_16_32 |
private char |
cost_load8_16_32_64 |
private char |
cost_r |
private char |
cost_riv |
private char |
cost_rlv |
private char |
cost_sload16 |
private char |
cost_sload8 |
private char |
cost_stm
remainder will be inserted by the BURS generator
|
private char |
cost_szp |
private char |
cost_szpr |
private char |
cost_uload16 |
private char |
cost_uload8 |
private int |
word0 |
private int |
word1 |
private int |
word2 |
private int |
word3 |
dg_node
Constructor and Description |
---|
BURS_TreeNode(char opcode)
Constructor for leaf/auxiliary node.
|
BURS_TreeNode(DepGraphNode n)
Constructor for interior node.
|
Modifier and Type | Method and Description |
---|---|
char |
getCost(int goalNT) |
void |
initCost() |
int |
readPacked(int word,
int shift,
int mask) |
int |
rule(int goalNT)
Get the BURS rule number associated with this tree node for a given non-terminal
|
void |
setCost(int goalNT,
char cost) |
void |
writePacked(int word,
int mask,
int shiftedValue) |
create, create, getChild1, getChild2, getInstruction, getInstructionString, getNonTerminal, getOpcode, isREGISTERNode, isSuperNodeRoot, isTreeRoot, numRegisters, setChild1, setChild2, setNonTerminal, setNumRegisters, setTreeRoot, toString
private char cost_stm
private char cost_r
private char cost_czr
private char cost_cz
private char cost_szpr
private char cost_szp
private char cost_riv
private char cost_rlv
private char cost_any
private char cost_load32
private char cost_uload8
private char cost_load8_16_32
private char cost_load16_32
private char cost_load16
private char cost_address1scaledreg
private char cost_address1reg
private char cost_address
private char cost_bittest
private char cost_boolcmp
private char cost_load64
private char cost_load8
private char cost_sload16
private char cost_uload16
private char cost_sload8
private char cost_load8_16_32_64
private char cost_float_load
private char cost_double_load
private int word0
private int word1
private int word2
private int word3
public BURS_TreeNode(DepGraphNode n)
n
- corresponding node from the dependence graphpublic BURS_TreeNode(char opcode)
opcode
- the opcode to use for the nodepublic final char getCost(int goalNT)
getCost
in class AbstractBURS_TreeNode
public final void setCost(int goalNT, char cost)
setCost
in class AbstractBURS_TreeNode
public final void initCost()
initCost
in class AbstractBURS_TreeNode
public final void writePacked(int word, int mask, int shiftedValue)
writePacked
in class AbstractBURS_TreeNode
public final int readPacked(int word, int shift, int mask)
readPacked
in class AbstractBURS_TreeNode
public final int rule(int goalNT)
rule
in class AbstractBURS_TreeNode
goalNT
- the non-terminal we want to know the rule for (e.g. stm_NT)