Llvm_ir.Generator_stateCopyright 2025-2026, Victoria Ostrovskaya & Danil Usoltsev
SPDX-License-Identifier: LGPL-3.0-or-later
module type NAMING = sig ... endmodule Default_naming : NAMINGinclude sig ... endtype state = Make(Default_naming).state = {value_env : (string, Llvm.llvalue, Base.String.comparator_witness) Base.Map.t;type_env : (string, Llvm.lltype, Base.String.comparator_witness) Base.Map.t;current_module : Llvm.llmodule;gc_allocas : (string, Llvm.llvalue, Base.String.comparator_witness) Base.Map.t
option;gc_entry_block : Llvm.llbasicblock option;naming_state : Default_naming.t;resolve : (int -> string -> (string * int) option) option;current_func_index : int;}val return : 'a -> 'a tval fail : string -> 'a tval find_value_opt : string -> Llvm.llvalue option tval find_type_opt : string -> Llvm.lltype option tval resolved_find_value_opt : string -> Llvm.llvalue option tval resolved_find_type_opt : string -> Llvm.lltype option tval set_value : string -> Llvm.llvalue -> unit tval set_type : string -> Llvm.lltype -> unit tval remove_value : string -> unit tval get_gc_allocas :
(string, Llvm.llvalue, Base.String.comparator_witness) Base.Map.t option tval set_gc_allocas :
(string, Llvm.llvalue, Base.String.comparator_witness) Base.Map.t option ->
unit tval get_gc_entry_block : Llvm.llbasicblock option tval set_gc_entry_block : Llvm.llbasicblock option -> unit tval fresh_blocks : (string * string * string) t