Purple  0.1
Standard Language Specification
Public Attributes | List of all members
LLVMValue Struct Reference

Value returned by ast_to_llvm. More...

#include <llvm.h>

Collaboration diagram for LLVMValue:
Collaboration graph

Public Attributes

LLVMValueType value_type
 
Number num_info
 
char just_loaded [MAX_IDENTIFIER_LENGTH]
 
bool has_name
 
union {
   type_register   virtual_register_index
 
   char   name [MAX_IDENTIFIER_LENGTH]
 
   long long int   constant
 
   type_label   label_index
 
value
 

Detailed Description

Value returned by ast_to_llvm.

Member Data Documentation

◆ constant

long long int LLVMValue::constant

Constant value

◆ has_name

bool LLVMValue::has_name

Whether or not the value has a custom name rather than a register index

◆ just_loaded

char LLVMValue::just_loaded[MAX_IDENTIFIER_LENGTH]

Previously-loaded identifier

◆ label_index

type_label LLVMValue::label_index

Index of an LLVM label

◆ name

char LLVMValue::name[MAX_IDENTIFIER_LENGTH]

Name of virtual register

◆ num_info

Number LLVMValue::num_info

To store number_type and pointer_depth

◆ 

union { ... } LLVMValue::value

Contents of the value returned

◆ value_type

LLVMValueType LLVMValue::value_type

What kind of value is being returned

◆ virtual_register_index

type_register LLVMValue::virtual_register_index

Index of a virtual register


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