Module Backend.Codegen_llvm

Copyright 2026, Mikhail Gavrilenko, Danila Rudnev-Stepanyan, Daniel Vlasenko

SPDX-License-Identifier: LGPL-3.0-or-later

module FuncMap : sig ... end
val gen_program_ir : Middleend.Anf.aprogram -> string -> string option -> string

gen_program_ir prog triple opt generates a LLMV IR string from the program prog for the target architecture specified by triple with optimization level opt if not None, O0 otherwise