Skip to content

Latest commit

 

History

History
54 lines (30 loc) · 1.34 KB

initialization-finalization.rst

File metadata and controls

54 lines (30 loc) · 1.34 KB

Initialization and finalization

llvmlite.binding

You only need to call these functions once per process invocation.

  • initialize()

    Initialize the LLVM core.

  • initialize_all_targets()

    Initialize all targets. Must be called before targets can be looked up via the Target class.

  • initialize_all_asmprinters()

    Initialize all code generators. Must be called before generating any assembly or machine code via the TargetMachine.emit_object and TargetMachine.emit_assembly methods.

  • initialize_native_target()

    Initialize the native---host---target. Must be called once before doing any code generation.

  • initialize_native_asmprinter()

    Initialize the native assembly printer.

  • initialize_native_asmparser()

    Initialize the native assembly parser. Must be called for inline assembly to work.

  • shutdown()

    Shut down the LLVM core.

  • llvm_version_info

    A 3-integer tuple representing the LLVM version number.

    EXAMPLE: (3, 7, 1)

    Since LLVM is statically linked into the llvmlite DLL, this is guaranteed to represent the true LLVM version in use.