LLVMRustCreateTargetMachine in rustc_codegen_llvm::llvm::ffi - Rust
Description: API documentation for the Rust `LLVMRustCreateTargetMachine` fn in crate `rustc_codegen_llvm`.

Skip to main content

## LLVMRustCreateTargetMachine

# Function LLVMRustCreateTargetMachine

Source

    pub(crate) unsafe extern "C" fn LLVMRustCreateTargetMachine(
        Triple: *const c_char,
        CPU: *const c_char,
        Features: *const c_char,
        Abi: *const c_char,
        Model: CodeModel,
        Reloc: RelocModel,
        Level: CodeGenOptLevel,
        FloatABIType: FloatAbi,
        FunctionSections: bool,
        DataSections: bool,
        UniqueSectionNames: bool,
        TrapUnreachable: bool,
        Singlethread: bool,
        VerboseAsm: bool,
        EmitStackSizeSection: bool,
        RelaxELFRelocations: bool,
        UseInitArray: bool,
        SplitDwarfFile: *const c_char,
        OutputObjFile: *const c_char,
        DebugInfoCompression: CompressionKind,
        UseEmulatedTls: bool,
        UseWasmEH: bool,
        LargeDataThreshold: u64,
    ) -> *mut TargetMachine