MXVM 1.8.1
Virtual Machine, Compiler, and Pascal Frontend
Loading...
Searching...
No Matches
pascal::CodeGenVisitor::ValueLocation Struct Reference

Describes where a value currently resides (register, memory, or immediate). More...

Public Types

enum  Type { REGISTER , MEMORY , IMMEDIATE }

Public Attributes

enum pascal::CodeGenVisitor::ValueLocation::Type type
std::string location
 register name, slot name, or literal value

Detailed Description

Describes where a value currently resides (register, memory, or immediate).

Definition at line 358 of file icode.hpp.

Member Enumeration Documentation

◆ Type

Enumerator
REGISTER 

value is in a named register

MEMORY 

value is in a memory slot

IMMEDIATE 

value is a compile-time constant

Definition at line 359 of file icode.hpp.

Member Data Documentation

◆ location

std::string pascal::CodeGenVisitor::ValueLocation::location

register name, slot name, or literal value

Definition at line 364 of file icode.hpp.

◆ type

enum pascal::CodeGenVisitor::ValueLocation::Type pascal::CodeGenVisitor::ValueLocation::type

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