LLVM 20.0.0git
Classes | Namespaces | Functions
OrcV2CBindings.cpp File Reference
#include "llvm-c/LLJIT.h"
#include "llvm-c/Orc.h"
#include "llvm-c/OrcEE.h"
#include "llvm-c/TargetMachine.h"
#include "llvm/ExecutionEngine/Orc/AbsoluteSymbols.h"
#include "llvm/ExecutionEngine/Orc/JITTargetMachineBuilder.h"
#include "llvm/ExecutionEngine/Orc/LLJIT.h"
#include "llvm/ExecutionEngine/Orc/ObjectTransformLayer.h"
#include "llvm/ExecutionEngine/Orc/RTDyldObjectLinkingLayer.h"
#include "llvm/ExecutionEngine/SectionMemoryManager.h"

Go to the source code of this file.

Classes

class  llvm::orc::OrcV2CAPIHelper
 
class  LLVMOrcLazyCallThroughManagerRef::OrcCAPIMaterializationUnit
 
class  llvm::orc::CAPIDefinitionGenerator
 

Namespaces

namespace  llvm
 This is an optimization pass for GlobalISel generic memory operations.
 
namespace  llvm::orc
 
namespace  LLVMOrcLazyCallThroughManagerRef
 

Functions

LLVMOrcSymbolStringPoolEntryRef wrap (SymbolStringPoolEntryUnsafe E)
 
SymbolStringPoolEntryUnsafe unwrap (LLVMOrcSymbolStringPoolEntryRef E)
 
 DEFINE_SIMPLE_CONVERSION_FUNCTIONS (MaterializationUnit, LLVMOrcMaterializationUnitRef) DEFINE_SIMPLE_CONVERSION_FUNCTIONS(MaterializationResponsibility
 
LLVMOrcMaterializationResponsibilityRef DEFINE_SIMPLE_CONVERSION_FUNCTIONS (DefinitionGenerator, LLVMOrcDefinitionGeneratorRef) DEFINE_SIMPLE_CONVERSION_FUNCTIONS(ThreadSafeContext
 
LLVMOrcMaterializationResponsibilityRef LLVMOrcThreadSafeContextRef DEFINE_SIMPLE_CONVERSION_FUNCTIONS (JITTargetMachineBuilder, LLVMOrcJITTargetMachineBuilderRef) DEFINE_SIMPLE_CONVERSION_FUNCTIONS(ObjectTransformLayer
 
LLVMOrcMaterializationResponsibilityRef LLVMOrcThreadSafeContextRef LLVMOrcObjectTransformLayerRef DEFINE_SIMPLE_CONVERSION_FUNCTIONS (IndirectStubsManager, LLVMOrcIndirectStubsManagerRef) DEFINE_SIMPLE_CONVERSION_FUNCTIONS(LazyCallThroughManager
 
static JITSymbolFlags LLVMOrcLazyCallThroughManagerRef::toJITSymbolFlags (LLVMJITSymbolFlags F)
 
static LLVMJITSymbolFlags LLVMOrcLazyCallThroughManagerRef::fromJITSymbolFlags (JITSymbolFlags JSF)
 
static SymbolNameSet LLVMOrcLazyCallThroughManagerRef::toSymbolNameSet (LLVMOrcCSymbolsList Symbols)
 
static SymbolMap LLVMOrcLazyCallThroughManagerRef::toSymbolMap (LLVMOrcCSymbolMapPairs Syms, size_t NumPairs)
 
static SymbolDependenceMap LLVMOrcLazyCallThroughManagerRef::toSymbolDependenceMap (LLVMOrcCDependenceMapPairs Pairs, size_t NumPairs)
 
static LookupKind LLVMOrcLazyCallThroughManagerRef::toLookupKind (LLVMOrcLookupKind K)
 
static LLVMOrcLookupKind LLVMOrcLazyCallThroughManagerRef::fromLookupKind (LookupKind K)
 
static JITDylibLookupFlags LLVMOrcLazyCallThroughManagerRef::toJITDylibLookupFlags (LLVMOrcJITDylibLookupFlags LF)
 
static LLVMOrcJITDylibLookupFlags LLVMOrcLazyCallThroughManagerRef::fromJITDylibLookupFlags (JITDylibLookupFlags LF)
 
static SymbolLookupFlags LLVMOrcLazyCallThroughManagerRef::toSymbolLookupFlags (LLVMOrcSymbolLookupFlags SLF)
 
static LLVMOrcSymbolLookupFlags LLVMOrcLazyCallThroughManagerRef::fromSymbolLookupFlags (SymbolLookupFlags SLF)
 
static LLVMJITEvaluatedSymbol LLVMOrcLazyCallThroughManagerRef::fromExecutorSymbolDef (const ExecutorSymbolDef &S)
 
void LLVMOrcExecutionSessionSetErrorReporter (LLVMOrcExecutionSessionRef ES, LLVMOrcErrorReporterFunction ReportError, void *Ctx)
 Attach a custom error reporter function to the ExecutionSession.
 
LLVMOrcSymbolStringPoolRef LLVMOrcExecutionSessionGetSymbolStringPool (LLVMOrcExecutionSessionRef ES)
 Return a reference to the SymbolStringPool for an ExecutionSession.
 
void LLVMOrcSymbolStringPoolClearDeadEntries (LLVMOrcSymbolStringPoolRef SSP)
 Clear all unreferenced symbol string pool entries.
 
LLVMOrcSymbolStringPoolEntryRef LLVMOrcExecutionSessionIntern (LLVMOrcExecutionSessionRef ES, const char *Name)
 Intern a string in the ExecutionSession's SymbolStringPool and return a reference to it.
 
void LLVMOrcExecutionSessionLookup (LLVMOrcExecutionSessionRef ES, LLVMOrcLookupKind K, LLVMOrcCJITDylibSearchOrder SearchOrder, size_t SearchOrderSize, LLVMOrcCLookupSet Symbols, size_t SymbolsSize, LLVMOrcExecutionSessionLookupHandleResultFunction HandleResult, void *Ctx)
 Look up symbols in an execution session.
 
void LLVMOrcRetainSymbolStringPoolEntry (LLVMOrcSymbolStringPoolEntryRef S)
 Increments the ref-count for a SymbolStringPool entry.
 
void LLVMOrcReleaseSymbolStringPoolEntry (LLVMOrcSymbolStringPoolEntryRef S)
 Reduces the ref-count for of a SymbolStringPool entry.
 
const charLLVMOrcSymbolStringPoolEntryStr (LLVMOrcSymbolStringPoolEntryRef S)
 Return the c-string for the given symbol.
 
LLVMOrcResourceTrackerRef LLVMOrcJITDylibCreateResourceTracker (LLVMOrcJITDylibRef JD)
 Return a reference to a newly created resource tracker associated with JD.
 
LLVMOrcResourceTrackerRef LLVMOrcJITDylibGetDefaultResourceTracker (LLVMOrcJITDylibRef JD)
 Return a reference to the default resource tracker for the given JITDylib.
 
void LLVMOrcReleaseResourceTracker (LLVMOrcResourceTrackerRef RT)
 Reduces the ref-count of a ResourceTracker.
 
void LLVMOrcResourceTrackerTransferTo (LLVMOrcResourceTrackerRef SrcRT, LLVMOrcResourceTrackerRef DstRT)
 Transfers tracking of all resources associated with resource tracker SrcRT to resource tracker DstRT.
 
LLVMErrorRef LLVMOrcResourceTrackerRemove (LLVMOrcResourceTrackerRef RT)
 Remove all resources associated with the given tracker.
 
void LLVMOrcDisposeDefinitionGenerator (LLVMOrcDefinitionGeneratorRef DG)
 Dispose of a JITDylib::DefinitionGenerator.
 
void LLVMOrcDisposeMaterializationUnit (LLVMOrcMaterializationUnitRef MU)
 Dispose of a MaterializationUnit.
 
LLVMOrcMaterializationUnitRef LLVMOrcCreateCustomMaterializationUnit (const char *Name, void *Ctx, LLVMOrcCSymbolFlagsMapPairs Syms, size_t NumSyms, LLVMOrcSymbolStringPoolEntryRef InitSym, LLVMOrcMaterializationUnitMaterializeFunction Materialize, LLVMOrcMaterializationUnitDiscardFunction Discard, LLVMOrcMaterializationUnitDestroyFunction Destroy)
 Create a custom MaterializationUnit.
 
LLVMOrcMaterializationUnitRef LLVMOrcAbsoluteSymbols (LLVMOrcCSymbolMapPairs Syms, size_t NumPairs)
 Create a MaterializationUnit to define the given symbols as pointing to the corresponding raw addresses.
 
LLVMOrcMaterializationUnitRef LLVMOrcLazyReexports (LLVMOrcLazyCallThroughManagerRef LCTM, LLVMOrcIndirectStubsManagerRef ISM, LLVMOrcJITDylibRef SourceJD, LLVMOrcCSymbolAliasMapPairs CallableAliases, size_t NumPairs)
 Create a MaterializationUnit to define lazy re-expots.
 
void LLVMOrcDisposeMaterializationResponsibility (LLVMOrcMaterializationResponsibilityRef MR)
 Disposes of the passed MaterializationResponsibility object.
 
LLVMOrcJITDylibRef LLVMOrcMaterializationResponsibilityGetTargetDylib (LLVMOrcMaterializationResponsibilityRef MR)
 Returns the target JITDylib that these symbols are being materialized into.
 
LLVMOrcExecutionSessionRef LLVMOrcMaterializationResponsibilityGetExecutionSession (LLVMOrcMaterializationResponsibilityRef MR)
 Returns the ExecutionSession for this MaterializationResponsibility.
 
LLVMOrcCSymbolFlagsMapPairs LLVMOrcMaterializationResponsibilityGetSymbols (LLVMOrcMaterializationResponsibilityRef MR, size_t *NumPairs)
 Returns the symbol flags map for this responsibility instance.
 
void LLVMOrcDisposeCSymbolFlagsMap (LLVMOrcCSymbolFlagsMapPairs Pairs)
 Disposes of the passed LLVMOrcCSymbolFlagsMap.
 
LLVMOrcSymbolStringPoolEntryRef LLVMOrcMaterializationResponsibilityGetInitializerSymbol (LLVMOrcMaterializationResponsibilityRef MR)
 Returns the initialization pseudo-symbol, if any.
 
LLVMOrcSymbolStringPoolEntryRefLLVMOrcMaterializationResponsibilityGetRequestedSymbols (LLVMOrcMaterializationResponsibilityRef MR, size_t *NumSymbols)
 Returns the names of any symbols covered by this MaterializationResponsibility object that have queries pending.
 
void LLVMOrcDisposeSymbols (LLVMOrcSymbolStringPoolEntryRef *Symbols)
 Disposes of the passed LLVMOrcSymbolStringPoolEntryRef* .
 
LLVMErrorRef LLVMOrcMaterializationResponsibilityNotifyResolved (LLVMOrcMaterializationResponsibilityRef MR, LLVMOrcCSymbolMapPairs Symbols, size_t NumSymbols)
 Notifies the target JITDylib that the given symbols have been resolved.
 
LLVMErrorRef LLVMOrcMaterializationResponsibilityNotifyEmitted (LLVMOrcMaterializationResponsibilityRef MR, LLVMOrcCSymbolDependenceGroup *SymbolDepGroups, size_t NumSymbolDepGroups)
 Notifies the target JITDylib (and any pending queries on that JITDylib) that all symbols covered by this MaterializationResponsibility instance have been emitted.
 
LLVMErrorRef LLVMOrcMaterializationResponsibilityDefineMaterializing (LLVMOrcMaterializationResponsibilityRef MR, LLVMOrcCSymbolFlagsMapPairs Syms, size_t NumSyms)
 Attempt to claim responsibility for new definitions.
 
LLVMErrorRef LLVMOrcMaterializationResponsibilityReplace (LLVMOrcMaterializationResponsibilityRef MR, LLVMOrcMaterializationUnitRef MU)
 Transfers responsibility to the given MaterializationUnit for all symbols defined by that MaterializationUnit.
 
LLVMErrorRef LLVMOrcMaterializationResponsibilityDelegate (LLVMOrcMaterializationResponsibilityRef MR, LLVMOrcSymbolStringPoolEntryRef *Symbols, size_t NumSymbols, LLVMOrcMaterializationResponsibilityRef *Result)
 Delegates responsibility for the given symbols to the returned materialization responsibility.
 
void LLVMOrcMaterializationResponsibilityFailMaterialization (LLVMOrcMaterializationResponsibilityRef MR)
 Notify all not-yet-emitted covered by this MaterializationResponsibility instance that an error has occurred.
 
void LLVMOrcIRTransformLayerEmit (LLVMOrcIRTransformLayerRef IRLayer, LLVMOrcMaterializationResponsibilityRef MR, LLVMOrcThreadSafeModuleRef TSM)
 
LLVMOrcJITDylibRef LLVMOrcExecutionSessionCreateBareJITDylib (LLVMOrcExecutionSessionRef ES, const char *Name)
 Create a "bare" JITDylib.
 
LLVMErrorRef LLVMOrcExecutionSessionCreateJITDylib (LLVMOrcExecutionSessionRef ES, LLVMOrcJITDylibRef *Result, const char *Name)
 Create a JITDylib.
 
LLVMOrcJITDylibRef LLVMOrcExecutionSessionGetJITDylibByName (LLVMOrcExecutionSessionRef ES, const char *Name)
 Returns the JITDylib with the given name, or NULL if no such JITDylib exists.
 
LLVMErrorRef LLVMOrcJITDylibDefine (LLVMOrcJITDylibRef JD, LLVMOrcMaterializationUnitRef MU)
 Add the given MaterializationUnit to the given JITDylib.
 
LLVMErrorRef LLVMOrcJITDylibClear (LLVMOrcJITDylibRef JD)
 Calls remove on all trackers associated with this JITDylib, see JITDylib::clear().
 
void LLVMOrcJITDylibAddGenerator (LLVMOrcJITDylibRef JD, LLVMOrcDefinitionGeneratorRef DG)
 Add a DefinitionGenerator to the given JITDylib.
 
LLVMOrcDefinitionGeneratorRef LLVMOrcCreateCustomCAPIDefinitionGenerator (LLVMOrcCAPIDefinitionGeneratorTryToGenerateFunction F, void *Ctx, LLVMOrcDisposeCAPIDefinitionGeneratorFunction Dispose)
 Create a custom generator.
 
void LLVMOrcLookupStateContinueLookup (LLVMOrcLookupStateRef S, LLVMErrorRef Err)
 Continue a lookup that was suspended in a generator (see LLVMOrcCAPIDefinitionGeneratorTryToGenerateFunction).
 
LLVMErrorRef LLVMOrcCreateDynamicLibrarySearchGeneratorForProcess (LLVMOrcDefinitionGeneratorRef *Result, char GlobalPrefix, LLVMOrcSymbolPredicate Filter, void *FilterCtx)
 Get a DynamicLibrarySearchGenerator that will reflect process symbols into the JITDylib.
 
LLVMErrorRef LLVMOrcCreateDynamicLibrarySearchGeneratorForPath (LLVMOrcDefinitionGeneratorRef *Result, const char *FileName, char GlobalPrefix, LLVMOrcSymbolPredicate Filter, void *FilterCtx)
 Get a LLVMOrcCreateDynamicLibararySearchGeneratorForPath that will reflect library symbols into the JITDylib.
 
LLVMErrorRef LLVMOrcCreateStaticLibrarySearchGeneratorForPath (LLVMOrcDefinitionGeneratorRef *Result, LLVMOrcObjectLayerRef ObjLayer, const char *FileName)
 
LLVMOrcThreadSafeContextRef LLVMOrcCreateNewThreadSafeContext (void)
 Create a ThreadSafeContext containing a new LLVMContext.
 
LLVMContextRef LLVMOrcThreadSafeContextGetContext (LLVMOrcThreadSafeContextRef TSCtx)
 Get a reference to the wrapped LLVMContext.
 
void LLVMOrcDisposeThreadSafeContext (LLVMOrcThreadSafeContextRef TSCtx)
 Dispose of a ThreadSafeContext.
 
LLVMErrorRef LLVMOrcThreadSafeModuleWithModuleDo (LLVMOrcThreadSafeModuleRef TSM, LLVMOrcGenericIRModuleOperationFunction F, void *Ctx)
 Apply the given function to the module contained in this ThreadSafeModule.
 
LLVMOrcThreadSafeModuleRef LLVMOrcCreateNewThreadSafeModule (LLVMModuleRef M, LLVMOrcThreadSafeContextRef TSCtx)
 Create a ThreadSafeModule wrapper around the given LLVM module.
 
void LLVMOrcDisposeThreadSafeModule (LLVMOrcThreadSafeModuleRef TSM)
 Dispose of a ThreadSafeModule.
 
LLVMErrorRef LLVMOrcJITTargetMachineBuilderDetectHost (LLVMOrcJITTargetMachineBuilderRef *Result)
 Create a JITTargetMachineBuilder by detecting the host.
 
LLVMOrcJITTargetMachineBuilderRef LLVMOrcJITTargetMachineBuilderCreateFromTargetMachine (LLVMTargetMachineRef TM)
 Create a JITTargetMachineBuilder from the given TargetMachine template.
 
void LLVMOrcDisposeJITTargetMachineBuilder (LLVMOrcJITTargetMachineBuilderRef JTMB)
 Dispose of a JITTargetMachineBuilder.
 
charLLVMOrcJITTargetMachineBuilderGetTargetTriple (LLVMOrcJITTargetMachineBuilderRef JTMB)
 Returns the target triple for the given JITTargetMachineBuilder as a string.
 
void LLVMOrcJITTargetMachineBuilderSetTargetTriple (LLVMOrcJITTargetMachineBuilderRef JTMB, const char *TargetTriple)
 Sets the target triple for the given JITTargetMachineBuilder to the given string.
 
LLVMErrorRef LLVMOrcObjectLayerAddObjectFile (LLVMOrcObjectLayerRef ObjLayer, LLVMOrcJITDylibRef JD, LLVMMemoryBufferRef ObjBuffer)
 Add an object to an ObjectLayer to the given JITDylib.
 
LLVMErrorRef LLVMOrcObjectLayerAddObjectFileWithRT (LLVMOrcObjectLayerRef ObjLayer, LLVMOrcResourceTrackerRef RT, LLVMMemoryBufferRef ObjBuffer)
 Add an object to an ObjectLayer using the given ResourceTracker.
 
void LLVMOrcObjectLayerEmit (LLVMOrcObjectLayerRef ObjLayer, LLVMOrcMaterializationResponsibilityRef R, LLVMMemoryBufferRef ObjBuffer)
 Emit an object buffer to an ObjectLayer.
 
void LLVMOrcDisposeObjectLayer (LLVMOrcObjectLayerRef ObjLayer)
 Dispose of an ObjectLayer.
 
void LLVMOrcIRTransformLayerSetTransform (LLVMOrcIRTransformLayerRef IRTransformLayer, LLVMOrcIRTransformLayerTransformFunction TransformFunction, void *Ctx)
 Set the transform function of the provided transform layer, passing through a pointer to user provided context.
 
void LLVMOrcObjectTransformLayerSetTransform (LLVMOrcObjectTransformLayerRef ObjTransformLayer, LLVMOrcObjectTransformLayerTransformFunction TransformFunction, void *Ctx)
 Set the transform function on an LLVMOrcObjectTransformLayer.
 
LLVMOrcDumpObjectsRef LLVMOrcCreateDumpObjects (const char *DumpDir, const char *IdentifierOverride)
 Create a DumpObjects instance.
 
void LLVMOrcDisposeDumpObjects (LLVMOrcDumpObjectsRef DumpObjects)
 Dispose of a DumpObjects instance.
 
LLVMErrorRef LLVMOrcDumpObjects_CallOperator (LLVMOrcDumpObjectsRef DumpObjects, LLVMMemoryBufferRef *ObjBuffer)
 Dump the contents of the given MemoryBuffer.
 
LLVMOrcLLJITBuilderRef LLVMOrcCreateLLJITBuilder (void)
 Create an LLVMOrcLLJITBuilder.
 
void LLVMOrcDisposeLLJITBuilder (LLVMOrcLLJITBuilderRef Builder)
 Dispose of an LLVMOrcLLJITBuilderRef.
 
void LLVMOrcLLJITBuilderSetJITTargetMachineBuilder (LLVMOrcLLJITBuilderRef Builder, LLVMOrcJITTargetMachineBuilderRef JTMB)
 Set the JITTargetMachineBuilder to be used when constructing the LLJIT instance.
 
void LLVMOrcLLJITBuilderSetObjectLinkingLayerCreator (LLVMOrcLLJITBuilderRef Builder, LLVMOrcLLJITBuilderObjectLinkingLayerCreatorFunction F, void *Ctx)
 Set an ObjectLinkingLayer creator function for this LLJIT instance.
 
LLVMErrorRef LLVMOrcCreateLLJIT (LLVMOrcLLJITRef *Result, LLVMOrcLLJITBuilderRef Builder)
 Create an LLJIT instance from an LLJITBuilder.
 
LLVMErrorRef LLVMOrcDisposeLLJIT (LLVMOrcLLJITRef J)
 Dispose of an LLJIT instance.
 
LLVMOrcExecutionSessionRef LLVMOrcLLJITGetExecutionSession (LLVMOrcLLJITRef J)
 Get a reference to the ExecutionSession for this LLJIT instance.
 
LLVMOrcJITDylibRef LLVMOrcLLJITGetMainJITDylib (LLVMOrcLLJITRef J)
 Return a reference to the Main JITDylib.
 
const charLLVMOrcLLJITGetTripleString (LLVMOrcLLJITRef J)
 Return the target triple for this LLJIT instance.
 
char LLVMOrcLLJITGetGlobalPrefix (LLVMOrcLLJITRef J)
 Returns the global prefix character according to the LLJIT's DataLayout.
 
LLVMOrcSymbolStringPoolEntryRef LLVMOrcLLJITMangleAndIntern (LLVMOrcLLJITRef J, const char *UnmangledName)
 Mangles the given string according to the LLJIT instance's DataLayout, then interns the result in the SymbolStringPool and returns a reference to the pool entry.
 
LLVMErrorRef LLVMOrcLLJITAddObjectFile (LLVMOrcLLJITRef J, LLVMOrcJITDylibRef JD, LLVMMemoryBufferRef ObjBuffer)
 Add a buffer representing an object file to the given JITDylib in the given LLJIT instance.
 
LLVMErrorRef LLVMOrcLLJITAddObjectFileWithRT (LLVMOrcLLJITRef J, LLVMOrcResourceTrackerRef RT, LLVMMemoryBufferRef ObjBuffer)
 Add a buffer representing an object file to the given ResourceTracker's JITDylib in the given LLJIT instance.
 
LLVMErrorRef LLVMOrcLLJITAddLLVMIRModule (LLVMOrcLLJITRef J, LLVMOrcJITDylibRef JD, LLVMOrcThreadSafeModuleRef TSM)
 Add an IR module to the given JITDylib in the given LLJIT instance.
 
LLVMErrorRef LLVMOrcLLJITAddLLVMIRModuleWithRT (LLVMOrcLLJITRef J, LLVMOrcResourceTrackerRef RT, LLVMOrcThreadSafeModuleRef TSM)
 Add an IR module to the given ResourceTracker's JITDylib in the given LLJIT instance.
 
LLVMErrorRef LLVMOrcLLJITLookup (LLVMOrcLLJITRef J, LLVMOrcJITTargetAddress *Result, const char *Name)
 Look up the given symbol in the main JITDylib of the given LLJIT instance.
 
LLVMOrcObjectLayerRef LLVMOrcLLJITGetObjLinkingLayer (LLVMOrcLLJITRef J)
 Returns a non-owning reference to the LLJIT instance's object linking layer.
 
LLVMOrcObjectTransformLayerRef LLVMOrcLLJITGetObjTransformLayer (LLVMOrcLLJITRef J)
 Returns a non-owning reference to the LLJIT instance's object linking layer.
 
LLVMOrcObjectLayerRef LLVMOrcCreateRTDyldObjectLinkingLayerWithSectionMemoryManager (LLVMOrcExecutionSessionRef ES)
 Create a RTDyldObjectLinkingLayer instance using the standard SectionMemoryManager for memory management.
 
LLVMOrcObjectLayerRef LLVMOrcCreateRTDyldObjectLinkingLayerWithMCJITMemoryManagerLikeCallbacks (LLVMOrcExecutionSessionRef ES, void *CreateContextCtx, LLVMMemoryManagerCreateContextCallback CreateContext, LLVMMemoryManagerNotifyTerminatingCallback NotifyTerminating, LLVMMemoryManagerAllocateCodeSectionCallback AllocateCodeSection, LLVMMemoryManagerAllocateDataSectionCallback AllocateDataSection, LLVMMemoryManagerFinalizeMemoryCallback FinalizeMemory, LLVMMemoryManagerDestroyCallback Destroy)
 Create a RTDyldObjectLinkingLayer instance using MCJIT-memory-manager-like callbacks.
 
void LLVMOrcRTDyldObjectLinkingLayerRegisterJITEventListener (LLVMOrcObjectLayerRef RTDyldObjLinkingLayer, LLVMJITEventListenerRef Listener)
 Add the given listener to the given RTDyldObjectLinkingLayer.
 
LLVMOrcIRTransformLayerRef LLVMOrcLLJITGetIRTransformLayer (LLVMOrcLLJITRef J)
 Returns a non-owning reference to the LLJIT instance's IR transform layer.
 
const charLLVMOrcLLJITGetDataLayoutStr (LLVMOrcLLJITRef J)
 Get the LLJIT instance's default data layout string.
 
LLVMOrcIndirectStubsManagerRef LLVMOrcCreateLocalIndirectStubsManager (const char *TargetTriple)
 Create a LocalIndirectStubsManager from the given target triple.
 
void LLVMOrcDisposeIndirectStubsManager (LLVMOrcIndirectStubsManagerRef ISM)
 Dispose of an IndirectStubsManager.
 
LLVMErrorRef LLVMOrcCreateLocalLazyCallThroughManager (const char *TargetTriple, LLVMOrcExecutionSessionRef ES, LLVMOrcJITTargetAddress ErrorHandlerAddr, LLVMOrcLazyCallThroughManagerRef *Result)
 
void LLVMOrcDisposeLazyCallThroughManager (LLVMOrcLazyCallThroughManagerRef LCM)
 Dispose of an LazyCallThroughManager.
 

Function Documentation

◆ DEFINE_SIMPLE_CONVERSION_FUNCTIONS() [1/4]

◆ DEFINE_SIMPLE_CONVERSION_FUNCTIONS() [2/4]

◆ DEFINE_SIMPLE_CONVERSION_FUNCTIONS() [3/4]

◆ DEFINE_SIMPLE_CONVERSION_FUNCTIONS() [4/4]

DEFINE_SIMPLE_CONVERSION_FUNCTIONS ( MaterializationUnit  ,
LLVMOrcMaterializationUnitRef   
)

◆ LLVMOrcCreateStaticLibrarySearchGeneratorForPath()

LLVMErrorRef LLVMOrcCreateStaticLibrarySearchGeneratorForPath ( LLVMOrcDefinitionGeneratorRef Result,
LLVMOrcObjectLayerRef  ObjLayer,
const char FileName 
)

◆ unwrap()

Definition at line 47 of file OrcV2CBindings.cpp.

Referenced by LLVMOrcCreateCustomMaterializationUnit(), LLVMOrcCreateLLJIT(), LLVMOrcCreateLocalLazyCallThroughManager(), LLVMOrcCreateNewThreadSafeModule(), LLVMOrcCreateRTDyldObjectLinkingLayerWithMCJITMemoryManagerLikeCallbacks(), LLVMOrcCreateRTDyldObjectLinkingLayerWithSectionMemoryManager(), LLVMOrcCreateStaticLibrarySearchGeneratorForPath(), LLVMOrcDisposeDefinitionGenerator(), LLVMOrcDisposeDumpObjects(), LLVMOrcDisposeIndirectStubsManager(), LLVMOrcDisposeJITTargetMachineBuilder(), LLVMOrcDisposeLazyCallThroughManager(), LLVMOrcDisposeLLJIT(), LLVMOrcDisposeLLJITBuilder(), LLVMOrcDisposeMaterializationResponsibility(), LLVMOrcDisposeMaterializationUnit(), LLVMOrcDisposeObjectLayer(), LLVMOrcDisposeThreadSafeContext(), LLVMOrcDisposeThreadSafeModule(), LLVMOrcDumpObjects_CallOperator(), LLVMOrcExecutionSessionCreateBareJITDylib(), LLVMOrcExecutionSessionCreateJITDylib(), LLVMOrcExecutionSessionGetJITDylibByName(), LLVMOrcExecutionSessionGetSymbolStringPool(), LLVMOrcExecutionSessionIntern(), LLVMOrcExecutionSessionLookup(), LLVMOrcExecutionSessionSetErrorReporter(), LLVMOrcIRTransformLayerEmit(), LLVMOrcIRTransformLayerSetTransform(), LLVMOrcJITDylibAddGenerator(), LLVMOrcJITDylibClear(), LLVMOrcJITDylibCreateResourceTracker(), LLVMOrcJITDylibDefine(), LLVMOrcJITDylibGetDefaultResourceTracker(), LLVMOrcJITTargetMachineBuilderCreateFromTargetMachine(), LLVMOrcJITTargetMachineBuilderGetTargetTriple(), LLVMOrcJITTargetMachineBuilderSetTargetTriple(), LLVMOrcLazyReexports(), LLVMOrcLLJITAddLLVMIRModule(), LLVMOrcLLJITAddLLVMIRModuleWithRT(), LLVMOrcLLJITAddObjectFile(), LLVMOrcLLJITAddObjectFileWithRT(), LLVMOrcLLJITBuilderSetJITTargetMachineBuilder(), LLVMOrcLLJITBuilderSetObjectLinkingLayerCreator(), LLVMOrcLLJITGetDataLayoutStr(), LLVMOrcLLJITGetExecutionSession(), LLVMOrcLLJITGetGlobalPrefix(), LLVMOrcLLJITGetIRTransformLayer(), LLVMOrcLLJITGetMainJITDylib(), LLVMOrcLLJITGetObjLinkingLayer(), LLVMOrcLLJITGetObjTransformLayer(), LLVMOrcLLJITGetTripleString(), LLVMOrcLLJITLookup(), LLVMOrcLLJITMangleAndIntern(), LLVMOrcLookupStateContinueLookup(), LLVMOrcMaterializationResponsibilityDefineMaterializing(), LLVMOrcMaterializationResponsibilityDelegate(), LLVMOrcMaterializationResponsibilityFailMaterialization(), LLVMOrcMaterializationResponsibilityGetExecutionSession(), LLVMOrcMaterializationResponsibilityGetInitializerSymbol(), LLVMOrcMaterializationResponsibilityGetRequestedSymbols(), LLVMOrcMaterializationResponsibilityGetSymbols(), LLVMOrcMaterializationResponsibilityGetTargetDylib(), LLVMOrcMaterializationResponsibilityNotifyEmitted(), LLVMOrcMaterializationResponsibilityNotifyResolved(), LLVMOrcMaterializationResponsibilityReplace(), LLVMOrcObjectLayerAddObjectFile(), LLVMOrcObjectLayerAddObjectFileWithRT(), LLVMOrcObjectLayerEmit(), LLVMOrcObjectTransformLayerSetTransform(), LLVMOrcReleaseResourceTracker(), LLVMOrcReleaseSymbolStringPoolEntry(), LLVMOrcResourceTrackerRemove(), LLVMOrcResourceTrackerTransferTo(), LLVMOrcRetainSymbolStringPoolEntry(), LLVMOrcRTDyldObjectLinkingLayerRegisterJITEventListener(), LLVMOrcSymbolStringPoolClearDeadEntries(), LLVMOrcSymbolStringPoolEntryStr(), LLVMOrcThreadSafeContextGetContext(), LLVMOrcThreadSafeModuleWithModuleDo(), LLVMOrcLazyCallThroughManagerRef::toSymbolDependenceMap(), LLVMOrcLazyCallThroughManagerRef::toSymbolMap(), and LLVMOrcLazyCallThroughManagerRef::toSymbolNameSet().

◆ wrap()

Definition at line 43 of file OrcV2CBindings.cpp.

References llvm::orc::SymbolStringPoolEntryUnsafe::rawPtr().

Referenced by LLVMOrcAbsoluteSymbols(), LLVMOrcCreateCustomCAPIDefinitionGenerator(), LLVMOrcCreateCustomMaterializationUnit(), LLVMOrcCreateDumpObjects(), LLVMOrcCreateDynamicLibrarySearchGeneratorForPath(), LLVMOrcCreateDynamicLibrarySearchGeneratorForProcess(), LLVMOrcCreateLLJIT(), LLVMOrcCreateLLJITBuilder(), LLVMOrcCreateLocalIndirectStubsManager(), LLVMOrcCreateLocalLazyCallThroughManager(), LLVMOrcCreateNewThreadSafeContext(), LLVMOrcCreateNewThreadSafeModule(), LLVMOrcCreateRTDyldObjectLinkingLayerWithMCJITMemoryManagerLikeCallbacks(), LLVMOrcCreateRTDyldObjectLinkingLayerWithSectionMemoryManager(), LLVMOrcCreateStaticLibrarySearchGeneratorForPath(), LLVMOrcDumpObjects_CallOperator(), LLVMOrcExecutionSessionCreateBareJITDylib(), LLVMOrcExecutionSessionCreateJITDylib(), LLVMOrcExecutionSessionGetJITDylibByName(), LLVMOrcExecutionSessionGetSymbolStringPool(), LLVMOrcExecutionSessionIntern(), LLVMOrcExecutionSessionLookup(), LLVMOrcExecutionSessionSetErrorReporter(), LLVMOrcIRTransformLayerSetTransform(), LLVMOrcJITDylibClear(), LLVMOrcJITDylibCreateResourceTracker(), LLVMOrcJITDylibDefine(), LLVMOrcJITDylibGetDefaultResourceTracker(), LLVMOrcJITTargetMachineBuilderCreateFromTargetMachine(), LLVMOrcJITTargetMachineBuilderDetectHost(), LLVMOrcLazyReexports(), LLVMOrcLLJITAddLLVMIRModule(), LLVMOrcLLJITAddLLVMIRModuleWithRT(), LLVMOrcLLJITAddObjectFile(), LLVMOrcLLJITAddObjectFileWithRT(), LLVMOrcLLJITBuilderSetObjectLinkingLayerCreator(), LLVMOrcLLJITGetExecutionSession(), LLVMOrcLLJITGetIRTransformLayer(), LLVMOrcLLJITGetMainJITDylib(), LLVMOrcLLJITGetObjLinkingLayer(), LLVMOrcLLJITGetObjTransformLayer(), LLVMOrcLLJITLookup(), LLVMOrcLLJITMangleAndIntern(), LLVMOrcMaterializationResponsibilityDefineMaterializing(), LLVMOrcMaterializationResponsibilityDelegate(), LLVMOrcMaterializationResponsibilityGetExecutionSession(), LLVMOrcMaterializationResponsibilityGetInitializerSymbol(), LLVMOrcMaterializationResponsibilityGetRequestedSymbols(), LLVMOrcMaterializationResponsibilityGetSymbols(), LLVMOrcMaterializationResponsibilityGetTargetDylib(), LLVMOrcMaterializationResponsibilityNotifyEmitted(), LLVMOrcMaterializationResponsibilityNotifyResolved(), LLVMOrcMaterializationResponsibilityReplace(), LLVMOrcObjectLayerAddObjectFile(), LLVMOrcObjectLayerAddObjectFileWithRT(), LLVMOrcObjectTransformLayerSetTransform(), LLVMOrcResourceTrackerRemove(), LLVMOrcThreadSafeContextGetContext(), and LLVMOrcThreadSafeModuleWithModuleDo().