abla/llvm/aot

Generated from source.

Import with import "abla/llvm/aot".

Source: abla/llvm/aot/entry.ab

LLVMGetTargetFromTriple (extern)

noescape extern:"c" fun LLVMGetTargetFromTriple(
    triple: i64*,
    outputTarget: i64*,
    outputMessage: i64*
): i32

Finds the registered target for the triple and returns zero on success or an owned diagnostic on failure.

LLVMCreateTargetMachine (extern)

noescape extern:"c" fun LLVMCreateTargetMachine(
    target: i64*,
    triple: i64*,
    cpu: cstring,
    features: cstring,
    optimizationLevel: i32,
    relocationMode: i32,
    codeModel: i32
): i64*

Creates a machine with the supplied target and code generation options or returns null on failure.

LLVMDisposeTargetMachine (extern)

noescape extern:"c" fun LLVMDisposeTargetMachine(machine: i64*): void

Destroys the caller-owned target machine.

LLVMSetTargetMachineGlobalISel (extern)

noescape extern:"c" fun LLVMSetTargetMachineGlobalISel(machine: i64*, enable: i32): void

Configures whether the target machine uses GlobalISel.

LLVMCreateTargetDataLayout (extern)

noescape extern:"c" fun LLVMCreateTargetDataLayout(machine: i64*): i64*

Creates the caller-owned data layout for the target machine.

LLVMDisposeTargetData (extern)

noescape extern:"c" fun LLVMDisposeTargetData(layout: i64*): void

Destroys the caller-owned target data layout.

LLVMSetTarget (extern)

noescape extern:"c" fun LLVMSetTarget(module: i64*, triple: i64*): void

Sets the module's target triple.

LLVMSetModuleDataLayout (extern)

noescape extern:"c" fun LLVMSetModuleDataLayout(module: i64*, layout: i64*): void

Sets the LLVM module's data layout from the supplied target data.

LLVMTargetMachineEmitToFile (extern)

noescape extern:"c" fun LLVMTargetMachineEmitToFile(
    machine: i64*,
    module: i64*,
    filename: cstring,
    codegen: i32,
    outputMessage: i64*
): i32

Emits assembly or an object file and returns zero on success or an owned diagnostic on failure.

llvmAotHostedFeatures (fun)

trusted fun llvmAotHostedFeatures(triple: string): string

Returns the feature string for native hosted emission, with RV64GC for Linux on RISC-V.

llvmAotEmitObjectFile (fun)

fun llvmAotEmitObjectFile(irPath: string, objectPath: string): int

Reproducible release profile. The pipeline string and code-generation level are explicit compiler inputs and therefore participate in fixed points.

llvmAotEmitObjectFileBalanced (fun)

fun llvmAotEmitObjectFileBalanced(irPath: string, objectPath: string): int

Middle profile (--o1) for tools that run long enough for code quality to matter: scalar promotion, the inliner and local cleanup without O2's loop and global passes, selected at codegen level 1 (SelectionDAG). No LTO.

llvmAotEmitObjectFileFast (fun)

fun llvmAotEmitObjectFileFast(irPath: string, objectPath: string): int

Low-latency profile for edit/run cycles and watched services. Release builds remain the default so shipping code never silently loses optimization. Scalar promotion and CFG cleanup only: unpromoted locals made O0 codegen several times slower on large modules than this pass costs.

Built from Abla v0.2.79 source ba5d6b7d. Examples and generated signatures follow that source revision.