Expand description

Safe wrapper around the LLVM C API.

References returned from the LLVM API are tied to the 'llvm lifetime which is bound to the context where the objects are created in. We do not offer wrappers to remove or delete any objects in the context and therefore all the references will be valid for the liftime of the context.

For the scope of this tutorial we mainly use assertions to validate the results from the LLVM API calls.

Structs

Wrapper for a LLVM Basic Block.

Wrapper for a LLVM Value Reference specialized for contexts where function values are needed.

Wrapper for a LLVM Function PassManager (legacy).

Wrapper for a LLVM IR Builder.

Wrapper for a LLVM LLJIT.

Wrapper for a LLVM Module with its own LLVM Context.

Wrapper for a LLVM Value Reference specialized for contexts where phi values are needed.

A resource handle for code added to an LLJit instance.

Wrapper for a LLVM Type Reference.

Wrapper for a LLVM Value Reference.

Functions

Initialize native target for corresponding to host (useful for jitting).

Deallocate and destroy all “ManagedStatic” variables.