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_any |
private char |
cost_boolcmp |
private char |
cost_czr |
private char |
cost_r |
private char |
cost_rp |
private char |
cost_rs |
private char |
cost_rz |
private char |
cost_stm
remainder will be inserted by the BURS generator
|
private int |
word0 |
private int |
word1 |
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_rs
private char cost_rz
private char cost_rp
private char cost_any
private char cost_boolcmp
private int word0
private int word1
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)