API reference
python:irx:irx.builder.Visitor
class Visitor
Visitor(active_runtime_features: set[str] | None = None)
Source: packages/irx/src/irx/builder/backend.py:44
Declared as: python:irx:irx.builder.backend.Visitor
Compose AST handlers for LLVM lowering.
Attributes
-
call_services — Call services.; Type: CallLoweringServices
-
_llvm — Type: VariablesLLVM
-
named_values — Type: NamedValueMap
-
call_visitor — Type: CallLoweringVisitor
-
function_protos — Type: dict[str, astx.FunctionPrototype]
-
llvm_functions_by_symbol_id — Type: dict[str, ir.Function]
-
result_stack — Type: list[ResultStackValue]
-
runtime_features — Type: RuntimeFeatureState
-
const_vars — Type: set[str]
-
loop_stack — Type: list[LoopTargets]
-
cleanup_stack — Type: list[CleanupAction]
-
class_construction_stack — Type: list[ir.Value]
-
emitting_failure_cleanup — Type: bool
-
_set_value_ids — Type: dict[int, ir.Value]
-
_buffer_view_global_counter — Type: int
-
struct_types — Type: dict[str, ir.Type]
-
llvm_structs_by_qualified_name — Type: dict[str, ir.IdentifiedStructType]
-
_emitted_function_bodies — Type: set[str]
-
_module_display_names — Type: dict[int, str]
-
_current_module_display_name — Type: str | None
-
_interned_c_strings — Type: dict[tuple[str, str], ir.GlobalVariable]
-
_c_string_global_counter — Type: int
-
_namespace_globals — Type: dict[tuple[str, str], ir.GlobalVariable]
-
entry_function_symbol_id — Type: str | None
-
_fast_math_enabled — Type: bool
-
_current_function_return_type — Type: astx.DataType | None
-
_current_function_signature — Type: FunctionSignature | None
-
_generator_frame_types — Type: dict[str, ir.IdentifiedStructType]
-
_generator_frame_slots_by_symbol_id — Type: dict[str, dict[str, int]]
-
_generator_resume_functions — Type: dict[str, ir.Function]
-
_current_generator_frame_ptr — Type: ir.Value | None
-
_current_generator_frame_slots — Type: dict[str, int]
-
_current_generator_out_ptr — Type: ir.Value | None
-
_current_generator_next_state — Type: int | None
-
target — Type: llvm.TargetRef
-
target_machine — Type: llvm.TargetMachine
-
runtime_exception_types — Type: dict[str, ResolvedExceptionType]
-
exception_context — Type: ir.Value | None
-
exception_result_slot — Type: ir.Value | None
-
exception_targets — Type: list[ExceptionTarget]
-
pending_returns — Type: list[PendingReturn]
-
llvm_function_signatures — Type: dict[str, FunctionSignature]
Methods
- __init__ — Bind static call visitors and per-compilation lowering services.