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

One SSA instruction producing an optional explicit result value. More...

#include <SSA.H>

Collaboration diagram for Aleph::Compiler_SSA_Instruction:
[legend]

Public Attributes

Compiler_SSA_Instruction_Kind kind = Compiler_SSA_Instruction_Kind::Constant
 Instruction category.
 
Compiler_SSA_Value_Id result_id = 0
 Produced value id, or 0 for void instructions.
 
Compiler_Type_Id type_id = 0
 Result or stored type.
 
Source_Span span
 Source region associated with the instruction.
 
Compiler_Operator_Kind op = Compiler_Operator_Kind::Invalid
 Unary/binary operator when relevant.
 
Compiler_IR_Global_Slot_Id global_slot_id = compiler_ir_invalid_id()
 Referenced global slot, when relevant.
 
Compiler_IR_Function_Id function_id = compiler_ir_invalid_id()
 Referenced callee function, when relevant.
 
DynArray< Compiler_SSA_Value_Id > operands
 Input SSA values in deterministic order.
 
std::string text
 Constant spelling or debug payload.
 
bool bool_value = false
 Decoded boolean payload for bool constants.
 

Detailed Description

One SSA instruction producing an optional explicit result value.

Definition at line 136 of file SSA.H.

Member Data Documentation

◆ bool_value

bool Aleph::Compiler_SSA_Instruction::bool_value = false

Decoded boolean payload for bool constants.

Definition at line 147 of file SSA.H.

◆ function_id

Compiler_IR_Function_Id Aleph::Compiler_SSA_Instruction::function_id = compiler_ir_invalid_id()

Referenced callee function, when relevant.

Definition at line 144 of file SSA.H.

◆ global_slot_id

Compiler_IR_Global_Slot_Id Aleph::Compiler_SSA_Instruction::global_slot_id = compiler_ir_invalid_id()

Referenced global slot, when relevant.

Definition at line 143 of file SSA.H.

◆ kind

Instruction category.

Definition at line 138 of file SSA.H.

Referenced by Aleph::Compiler_SSA_Detail::rename_recursive().

◆ op

Compiler_Operator_Kind Aleph::Compiler_SSA_Instruction::op = Compiler_Operator_Kind::Invalid

Unary/binary operator when relevant.

Definition at line 142 of file SSA.H.

◆ operands

DynArray<Compiler_SSA_Value_Id> Aleph::Compiler_SSA_Instruction::operands

Input SSA values in deterministic order.

Definition at line 145 of file SSA.H.

◆ result_id

Compiler_SSA_Value_Id Aleph::Compiler_SSA_Instruction::result_id = 0

Produced value id, or 0 for void instructions.

Definition at line 139 of file SSA.H.

◆ span

Source_Span Aleph::Compiler_SSA_Instruction::span

Source region associated with the instruction.

Definition at line 141 of file SSA.H.

◆ text

std::string Aleph::Compiler_SSA_Instruction::text

Constant spelling or debug payload.

Definition at line 146 of file SSA.H.

◆ type_id

Compiler_Type_Id Aleph::Compiler_SSA_Instruction::type_id = 0

Result or stored type.

Definition at line 140 of file SSA.H.


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