Skip to main content

generate_llvm_ir

Function generate_llvm_ir 

Source
pub fn generate_llvm_ir(
    inputs: &BackendInputs<'_>,
    opt_level: OptLevel,
) -> CompileResult<String>
Expand description

Generate LLVM textual IR from analyzed functions.

Returns the LLVM IR in human-readable .ll format. Used by --emit asm to produce inspectable IR in place of native assembly.