ΒΆLLVMOrcThreadSafeModuleRef
LLVMOrcCreateNewThreadSafeModule(
    LLVMModuleRef M,
    LLVMOrcThreadSafeContextRef TSCtx)

Description

Create a ThreadSafeModule wrapper around the given LLVM module. This takes ownership of the M argument which should not be disposed of or referenced after this function returns. Ownership of the ThreadSafeModule is unique: If it is transferred to the JIT (e.g. by LLVMOrcLLJITAddLLVMIRModule) then the client is no longer responsible for it. If it is not transferred to the JIT then the client should call LLVMOrcDisposeThreadSafeModule to dispose of it.

Declared at: llvm/include/llvm-c/Orc.h:1105

Parameters

LLVMModuleRef M
LLVMOrcThreadSafeContextRef TSCtx