Modifier and Type | Field and Description |
---|---|
List<ILOCInstruction> |
ILOCBasicBlock.instructions |
List<ILOCInstruction> |
ILOCFunction.instructions
List of ILOC instructions
|
Modifier and Type | Method and Description |
---|---|
List<ILOCInstruction> |
ILOCGenerator.getCode(ASTNode node)
Returns the ILOC code associated with an AST node (via the "code"
attribute).
|
List<ILOCInstruction> |
ILOCFunction.getInstructions()
Get the current instruction sequence.
|
Modifier and Type | Method and Description |
---|---|
void |
ILOCFunction.addInstruction(ILOCInstruction insn)
Append a new instruction to the function.
|
void |
ILOCInterpreter.assertAllRegOperands(ILOCInstruction insn,
int regs) |
void |
ILOCInterpreter.assertIsValid(ILOCInstruction insn) |
void |
ILOCInterpreter.assertNumOperands(ILOCInstruction insn,
int ops) |
void |
ILOCInterpreter.assertOperandIsRegister(ILOCInstruction insn,
ILOCOperand op) |
void |
ILOCInterpreter.assertOperandType(ILOCInstruction insn,
ILOCOperand op,
ILOCOperand.Type type) |
void |
ILOCGenerator.emit(ASTNode node,
ILOCInstruction insn)
Generate a new ILOC instruction and add it to the code for an AST node.
|
boolean |
ILOCInterpreter.handle(ILOCInstruction insn) |
Modifier and Type | Method and Description |
---|---|
void |
ILOCFunction.setInstructions(List<ILOCInstruction> instructions)
Replace all instructions with a new sequence.
|
Copyright © 2019. All rights reserved.