Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Aleph::Compiler_Bytecode_Constant Struct Reference

One constant stored in a function-level constant pool. More...

#include <Bytecode.H>

Collaboration diagram for Aleph::Compiler_Bytecode_Constant:
[legend]

Public Attributes

Compiler_Bytecode_Constant_Kind kind = Compiler_Bytecode_Constant_Kind::Raw_Text
 Logical constant category.
 
Compiler_Type_Id type_id = 0
 Original IR type, when known.
 
std::string text
 Canonical textual payload for dumps/debugging.
 
long long integer_value = 0
 Integer payload when kind == Integer.
 
bool bool_value = false
 Boolean payload when kind == Boolean.
 
char char_value = '\0'
 Character payload when kind == Character.
 

Detailed Description

One constant stored in a function-level constant pool.

Definition at line 182 of file Bytecode.H.

Member Data Documentation

◆ bool_value

bool Aleph::Compiler_Bytecode_Constant::bool_value = false

Boolean payload when kind == Boolean.

Definition at line 188 of file Bytecode.H.

◆ char_value

char Aleph::Compiler_Bytecode_Constant::char_value = '\0'

Character payload when kind == Character.

Definition at line 189 of file Bytecode.H.

◆ integer_value

long long Aleph::Compiler_Bytecode_Constant::integer_value = 0

Integer payload when kind == Integer.

Definition at line 187 of file Bytecode.H.

◆ kind

Logical constant category.

Definition at line 184 of file Bytecode.H.

◆ text

std::string Aleph::Compiler_Bytecode_Constant::text

Canonical textual payload for dumps/debugging.

Definition at line 186 of file Bytecode.H.

◆ type_id

Compiler_Type_Id Aleph::Compiler_Bytecode_Constant::type_id = 0

Original IR type, when known.

Definition at line 185 of file Bytecode.H.

Referenced by Aleph::Compiler_Bytecode_Detail::classify_constant().


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