|
typedef uint64_t | LLVMOrcJITTargetAddress |
| Represents an address in the executor process.
|
|
typedef uint64_t | LLVMOrcExecutorAddress |
| Represents an address in the executor process.
|
|
typedef uint8_t | LLVMJITSymbolTargetFlags |
| Represents target specific flags for a symbol definition.
|
|
typedef struct LLVMOrcOpaqueExecutionSession * | LLVMOrcExecutionSessionRef |
| A reference to an orc::ExecutionSession instance.
|
|
typedef void(* | LLVMOrcErrorReporterFunction) (void *Ctx, LLVMErrorRef Err) |
| Error reporter function.
|
|
typedef struct LLVMOrcOpaqueSymbolStringPool * | LLVMOrcSymbolStringPoolRef |
| A reference to an orc::SymbolStringPool.
|
|
typedef struct LLVMOrcOpaqueSymbolStringPoolEntry * | LLVMOrcSymbolStringPoolEntryRef |
| A reference to an orc::SymbolStringPool table entry.
|
|
typedef LLVMOrcCSymbolFlagsMapPair * | LLVMOrcCSymbolFlagsMapPairs |
| Represents a list of (SymbolStringPtr, JITSymbolFlags) pairs that can be used to construct a SymbolFlagsMap.
|
|
typedef LLVMOrcCSymbolMapPair * | LLVMOrcCSymbolMapPairs |
| Represents a list of (SymbolStringPtr, JITEvaluatedSymbol) pairs that can be used to construct a SymbolMap.
|
|
typedef LLVMOrcCSymbolAliasMapPair * | LLVMOrcCSymbolAliasMapPairs |
| Represents a list of (SymbolStringPtr, (SymbolStringPtr, JITSymbolFlags)) pairs that can be used to construct a SymbolFlagsMap.
|
|
typedef struct LLVMOrcOpaqueJITDylib * | LLVMOrcJITDylibRef |
| A reference to an orc::JITDylib instance.
|
|
typedef LLVMOrcCDependenceMapPair * | LLVMOrcCDependenceMapPairs |
| Represents a list of (JITDylibRef, (LLVMOrcSymbolStringPoolEntryRef*, size_t)) pairs that can be used to construct a SymbolDependenceMap.
|
|
typedef LLVMOrcCJITDylibSearchOrderElement * | LLVMOrcCJITDylibSearchOrder |
| A JITDylib search order.
|
|
typedef LLVMOrcCLookupSetElement * | LLVMOrcCLookupSet |
| A set of symbols to look up / generate.
|
|
typedef struct LLVMOrcOpaqueMaterializationUnit * | LLVMOrcMaterializationUnitRef |
| A reference to a uniquely owned orc::MaterializationUnit instance.
|
|
typedef struct LLVMOrcOpaqueMaterializationResponsibility * | LLVMOrcMaterializationResponsibilityRef |
| A reference to a uniquely owned orc::MaterializationResponsibility instance.
|
|
typedef void(* | LLVMOrcMaterializationUnitMaterializeFunction) (void *Ctx, LLVMOrcMaterializationResponsibilityRef MR) |
| A MaterializationUnit materialize callback.
|
|
typedef void(* | LLVMOrcMaterializationUnitDiscardFunction) (void *Ctx, LLVMOrcJITDylibRef JD, LLVMOrcSymbolStringPoolEntryRef Symbol) |
| A MaterializationUnit discard callback.
|
|
typedef void(* | LLVMOrcMaterializationUnitDestroyFunction) (void *Ctx) |
| A MaterializationUnit destruction callback.
|
|
typedef struct LLVMOrcOpaqueResourceTracker * | LLVMOrcResourceTrackerRef |
| A reference to an orc::ResourceTracker instance.
|
|
typedef struct LLVMOrcOpaqueDefinitionGenerator * | LLVMOrcDefinitionGeneratorRef |
| A reference to an orc::DefinitionGenerator.
|
|
typedef struct LLVMOrcOpaqueLookupState * | LLVMOrcLookupStateRef |
| An opaque lookup state object.
|
|
typedef LLVMErrorRef(* | LLVMOrcCAPIDefinitionGeneratorTryToGenerateFunction) (LLVMOrcDefinitionGeneratorRef GeneratorObj, void *Ctx, LLVMOrcLookupStateRef *LookupState, LLVMOrcLookupKind Kind, LLVMOrcJITDylibRef JD, LLVMOrcJITDylibLookupFlags JDLookupFlags, LLVMOrcCLookupSet LookupSet, size_t LookupSetSize) |
| A custom generator function.
|
|
typedef void(* | LLVMOrcDisposeCAPIDefinitionGeneratorFunction) (void *Ctx) |
| Disposer for a custom generator.
|
|
typedef int(* | LLVMOrcSymbolPredicate) (void *Ctx, LLVMOrcSymbolStringPoolEntryRef Sym) |
| Predicate function for SymbolStringPoolEntries.
|
|
typedef struct LLVMOrcOpaqueThreadSafeContext * | LLVMOrcThreadSafeContextRef |
| A reference to an orc::ThreadSafeContext instance.
|
|
typedef struct LLVMOrcOpaqueThreadSafeModule * | LLVMOrcThreadSafeModuleRef |
| A reference to an orc::ThreadSafeModule instance.
|
|
typedef LLVMErrorRef(* | LLVMOrcGenericIRModuleOperationFunction) (void *Ctx, LLVMModuleRef M) |
| A function for inspecting/mutating IR modules, suitable for use with LLVMOrcThreadSafeModuleWithModuleDo.
|
|
typedef struct LLVMOrcOpaqueJITTargetMachineBuilder * | LLVMOrcJITTargetMachineBuilderRef |
| A reference to an orc::JITTargetMachineBuilder instance.
|
|
typedef struct LLVMOrcOpaqueObjectLayer * | LLVMOrcObjectLayerRef |
| A reference to an orc::ObjectLayer instance.
|
|
typedef struct LLVMOrcOpaqueObjectLinkingLayer * | LLVMOrcObjectLinkingLayerRef |
| A reference to an orc::ObjectLinkingLayer instance.
|
|
typedef struct LLVMOrcOpaqueIRTransformLayer * | LLVMOrcIRTransformLayerRef |
| A reference to an orc::IRTransformLayer instance.
|
|
typedef LLVMErrorRef(* | LLVMOrcIRTransformLayerTransformFunction) (void *Ctx, LLVMOrcThreadSafeModuleRef *ModInOut, LLVMOrcMaterializationResponsibilityRef MR) |
| A function for applying transformations as part of an transform layer.
|
|
typedef struct LLVMOrcOpaqueObjectTransformLayer * | LLVMOrcObjectTransformLayerRef |
| A reference to an orc::ObjectTransformLayer instance.
|
|
typedef LLVMErrorRef(* | LLVMOrcObjectTransformLayerTransformFunction) (void *Ctx, LLVMMemoryBufferRef *ObjInOut) |
| A function for applying transformations to an object file buffer.
|
|
typedef struct LLVMOrcOpaqueIndirectStubsManager * | LLVMOrcIndirectStubsManagerRef |
| A reference to an orc::IndirectStubsManager instance.
|
|
typedef struct LLVMOrcOpaqueLazyCallThroughManager * | LLVMOrcLazyCallThroughManagerRef |
| A reference to an orc::LazyCallThroughManager instance.
|
|
typedef struct LLVMOrcOpaqueDumpObjects * | LLVMOrcDumpObjectsRef |
| A reference to an orc::DumpObjects object.
|
|
typedef void(* | LLVMOrcExecutionSessionLookupHandleResultFunction) (LLVMErrorRef Err, LLVMOrcCSymbolMapPairs Result, size_t NumPairs, void *Ctx) |
| Callback type for ExecutionSession lookups.
|
|
|
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 char * | LLVMOrcSymbolStringPoolEntryStr (LLVMOrcSymbolStringPoolEntryRef S) |
| Return the c-string for the given symbol.
|
|
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 SourceRef, 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.
|
|
LLVMOrcSymbolStringPoolEntryRef * | LLVMOrcMaterializationResponsibilityGetRequestedSymbols (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 NumPairs) |
| 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 Pairs, size_t NumPairs) |
| Attempt to claim responsibility for new definitions.
|
|
void | LLVMOrcMaterializationResponsibilityFailMaterialization (LLVMOrcMaterializationResponsibilityRef MR) |
| Notify all not-yet-emitted covered by this MaterializationResponsibility instance that an error has occurred.
|
|
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.
|
|
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.
|
|
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.
|
|
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 GlobalPrefx, 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, const char *TargetTriple) |
| Get a LLVMOrcCreateStaticLibrarySearchGeneratorForPath that will reflect static library symbols into the JITDylib.
|
|
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.
|
|
LLVMOrcThreadSafeModuleRef | LLVMOrcCreateNewThreadSafeModule (LLVMModuleRef M, LLVMOrcThreadSafeContextRef TSCtx) |
| Create a ThreadSafeModule wrapper around the given LLVM module.
|
|
void | LLVMOrcDisposeThreadSafeModule (LLVMOrcThreadSafeModuleRef TSM) |
| Dispose of a ThreadSafeModule.
|
|
LLVMErrorRef | LLVMOrcThreadSafeModuleWithModuleDo (LLVMOrcThreadSafeModuleRef TSM, LLVMOrcGenericIRModuleOperationFunction F, void *Ctx) |
| Apply the given function to the module contained in this 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.
|
|
char * | LLVMOrcJITTargetMachineBuilderGetTargetTriple (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 | LLVMOrcIRTransformLayerEmit (LLVMOrcIRTransformLayerRef IRTransformLayer, LLVMOrcMaterializationResponsibilityRef MR, LLVMOrcThreadSafeModuleRef TSM) |
|
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.
|
|
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 *LCTM) |
|
void | LLVMOrcDisposeLazyCallThroughManager (LLVMOrcLazyCallThroughManagerRef LCTM) |
| Dispose of an LazyCallThroughManager.
|
|
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.
|
|