Decaf Compiler
Public Attributes | List of all members
ILOCInsn Struct Reference

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 ILOCInsnnext
 Next instruction (if stored in a list)
 

Detailed Description

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:

Member Data Documentation

◆ comment

char ILOCInsn::comment[256]

Comment associated with this instruction.

An empty string (only a null terminator) indicates there is no comment.

◆ op

Operand ILOCInsn::op[3]

Operands.

Fixed-size array of three elements; if the instruction requires fewer operands, any unused operands should be EMPTY.


The documentation for this struct was generated from the following file: