Decaf Compiler
|
ILOC instruction. More...
#include <iloc.h>
Public Attributes | |
InsnForm | form |
Type ("form") of instruction. | |
Operand | op [3] |
Operands. More... | |
char | comment [256] |
Comment associated with this instruction. More... | |
struct ILOCInsn * | next |
Next instruction (if stored in a list) | |
ILOC instruction.
There are four normal constructors, based on the number of operands needed:
There is also a copy constructor (ILOCInsn_copy). Instructions should be deallocated using ILOCInsn_free.
Members:
char ILOCInsn::comment[256] |
Comment associated with this instruction.
An empty string (only a null terminator) indicates there is no comment.
Operand ILOCInsn::op[3] |
Operands.
Fixed-size array of three elements; if the instruction requires fewer operands, any unused operands should be EMPTY
.