generate_ir

Function generate_ir 

Source
pub fn generate_ir(
    functions: &[&Cfg],
    type_pool: &TypeInternPool,
    strings: &[String],
    interner: &ThreadedRodeo,
    opt_level: OptLevel,
) -> CompileResult<String>
Expand description

Generate LLVM textual IR from a collection of function CFGs.

Returns the LLVM IR in human-readable .ll format. Used by --emit asm to produce inspectable IR in place of native assembly. At -O1+ the returned IR is the post-optimization form.