Project Alice
Loading...
Searching...
No Matches
Orc.h File Reference
#include "llvm-c/Error.h"
#include "llvm-c/TargetMachine.h"
#include "llvm-c/Types.h"
Include dependency graph for Orc.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  LLVMJITSymbolFlags
 
struct  LLVMJITEvaluatedSymbol
 
struct  LLVMOrcCSymbolFlagsMapPair
 
struct  LLVMOrcCSymbolMapPair
 
struct  LLVMOrcCSymbolAliasMapEntry
 
struct  LLVMOrcCSymbolAliasMapPair
 
struct  LLVMOrcCSymbolsList
 
struct  LLVMOrcCDependenceMapPair
 
struct  LLVMOrcCJITDylibSearchOrderElement
 
struct  LLVMOrcCLookupSetElement
 

Typedefs

typedef uint64_t LLVMOrcJITTargetAddress
 
typedef uint64_t LLVMOrcExecutorAddress
 
typedef uint8_t LLVMJITSymbolTargetFlags
 
typedef struct LLVMOrcOpaqueExecutionSession * LLVMOrcExecutionSessionRef
 
typedef void(* LLVMOrcErrorReporterFunction) (void *Ctx, LLVMErrorRef Err)
 
typedef struct LLVMOrcOpaqueSymbolStringPool * LLVMOrcSymbolStringPoolRef
 
typedef struct LLVMOrcOpaqueSymbolStringPoolEntry * LLVMOrcSymbolStringPoolEntryRef
 
typedef LLVMOrcCSymbolFlagsMapPairLLVMOrcCSymbolFlagsMapPairs
 
typedef LLVMOrcCSymbolMapPairLLVMOrcCSymbolMapPairs
 
typedef LLVMOrcCSymbolAliasMapPairLLVMOrcCSymbolAliasMapPairs
 
typedef struct LLVMOrcOpaqueJITDylib * LLVMOrcJITDylibRef
 
typedef LLVMOrcCDependenceMapPairLLVMOrcCDependenceMapPairs
 
typedef LLVMOrcCJITDylibSearchOrderElementLLVMOrcCJITDylibSearchOrder
 
typedef LLVMOrcCLookupSetElementLLVMOrcCLookupSet
 
typedef struct LLVMOrcOpaqueMaterializationUnit * LLVMOrcMaterializationUnitRef
 
typedef struct LLVMOrcOpaqueMaterializationResponsibility * LLVMOrcMaterializationResponsibilityRef
 
typedef void(* LLVMOrcMaterializationUnitMaterializeFunction) (void *Ctx, LLVMOrcMaterializationResponsibilityRef MR)
 
typedef void(* LLVMOrcMaterializationUnitDiscardFunction) (void *Ctx, LLVMOrcJITDylibRef JD, LLVMOrcSymbolStringPoolEntryRef Symbol)
 
typedef void(* LLVMOrcMaterializationUnitDestroyFunction) (void *Ctx)
 
typedef struct LLVMOrcOpaqueResourceTracker * LLVMOrcResourceTrackerRef
 
typedef struct LLVMOrcOpaqueDefinitionGenerator * LLVMOrcDefinitionGeneratorRef
 
typedef struct LLVMOrcOpaqueLookupState * LLVMOrcLookupStateRef
 
typedef LLVMErrorRef(* LLVMOrcCAPIDefinitionGeneratorTryToGenerateFunction) (LLVMOrcDefinitionGeneratorRef GeneratorObj, void *Ctx, LLVMOrcLookupStateRef *LookupState, LLVMOrcLookupKind Kind, LLVMOrcJITDylibRef JD, LLVMOrcJITDylibLookupFlags JDLookupFlags, LLVMOrcCLookupSet LookupSet, size_t LookupSetSize)
 
typedef void(* LLVMOrcDisposeCAPIDefinitionGeneratorFunction) (void *Ctx)
 
typedef int(* LLVMOrcSymbolPredicate) (void *Ctx, LLVMOrcSymbolStringPoolEntryRef Sym)
 
typedef struct LLVMOrcOpaqueThreadSafeContext * LLVMOrcThreadSafeContextRef
 
typedef struct LLVMOrcOpaqueThreadSafeModule * LLVMOrcThreadSafeModuleRef
 
typedef LLVMErrorRef(* LLVMOrcGenericIRModuleOperationFunction) (void *Ctx, LLVMModuleRef M)
 
typedef struct LLVMOrcOpaqueJITTargetMachineBuilder * LLVMOrcJITTargetMachineBuilderRef
 
typedef struct LLVMOrcOpaqueObjectLayer * LLVMOrcObjectLayerRef
 
typedef struct LLVMOrcOpaqueObjectLinkingLayer * LLVMOrcObjectLinkingLayerRef
 
typedef struct LLVMOrcOpaqueIRTransformLayer * LLVMOrcIRTransformLayerRef
 
typedef LLVMErrorRef(* LLVMOrcIRTransformLayerTransformFunction) (void *Ctx, LLVMOrcThreadSafeModuleRef *ModInOut, LLVMOrcMaterializationResponsibilityRef MR)
 
typedef struct LLVMOrcOpaqueObjectTransformLayer * LLVMOrcObjectTransformLayerRef
 
typedef LLVMErrorRef(* LLVMOrcObjectTransformLayerTransformFunction) (void *Ctx, LLVMMemoryBufferRef *ObjInOut)
 
typedef struct LLVMOrcOpaqueIndirectStubsManager * LLVMOrcIndirectStubsManagerRef
 
typedef struct LLVMOrcOpaqueLazyCallThroughManager * LLVMOrcLazyCallThroughManagerRef
 
typedef struct LLVMOrcOpaqueDumpObjects * LLVMOrcDumpObjectsRef
 
typedef void(* LLVMOrcExecutionSessionLookupHandleResultFunction) (LLVMErrorRef Err, LLVMOrcCSymbolMapPairs Result, size_t NumPairs, void *Ctx)
 

Enumerations

enum  LLVMJITSymbolGenericFlags {
  LLVMJITSymbolGenericFlagsNone = 0 , LLVMJITSymbolGenericFlagsExported = 1U << 0 , LLVMJITSymbolGenericFlagsWeak = 1U << 1 , LLVMJITSymbolGenericFlagsCallable = 1U << 2 ,
  LLVMJITSymbolGenericFlagsMaterializationSideEffectsOnly = 1U << 3
}
 
enum  LLVMOrcLookupKind { LLVMOrcLookupKindStatic , LLVMOrcLookupKindDLSym }
 
enum  LLVMOrcJITDylibLookupFlags { LLVMOrcJITDylibLookupFlagsMatchExportedSymbolsOnly , LLVMOrcJITDylibLookupFlagsMatchAllSymbols }
 
enum  LLVMOrcSymbolLookupFlags { LLVMOrcSymbolLookupFlagsRequiredSymbol , LLVMOrcSymbolLookupFlagsWeaklyReferencedSymbol }
 

Functions

void LLVMOrcExecutionSessionSetErrorReporter (LLVMOrcExecutionSessionRef ES, LLVMOrcErrorReporterFunction ReportError, void *Ctx)
 
LLVMOrcSymbolStringPoolRef LLVMOrcExecutionSessionGetSymbolStringPool (LLVMOrcExecutionSessionRef ES)
 
void LLVMOrcSymbolStringPoolClearDeadEntries (LLVMOrcSymbolStringPoolRef SSP)
 
LLVMOrcSymbolStringPoolEntryRef LLVMOrcExecutionSessionIntern (LLVMOrcExecutionSessionRef ES, const char *Name)
 
void LLVMOrcExecutionSessionLookup (LLVMOrcExecutionSessionRef ES, LLVMOrcLookupKind K, LLVMOrcCJITDylibSearchOrder SearchOrder, size_t SearchOrderSize, LLVMOrcCLookupSet Symbols, size_t SymbolsSize, LLVMOrcExecutionSessionLookupHandleResultFunction HandleResult, void *Ctx)
 
void LLVMOrcRetainSymbolStringPoolEntry (LLVMOrcSymbolStringPoolEntryRef S)
 
void LLVMOrcReleaseSymbolStringPoolEntry (LLVMOrcSymbolStringPoolEntryRef S)
 
const char * LLVMOrcSymbolStringPoolEntryStr (LLVMOrcSymbolStringPoolEntryRef S)
 
void LLVMOrcReleaseResourceTracker (LLVMOrcResourceTrackerRef RT)
 
void LLVMOrcResourceTrackerTransferTo (LLVMOrcResourceTrackerRef SrcRT, LLVMOrcResourceTrackerRef DstRT)
 
LLVMErrorRef LLVMOrcResourceTrackerRemove (LLVMOrcResourceTrackerRef RT)
 
void LLVMOrcDisposeDefinitionGenerator (LLVMOrcDefinitionGeneratorRef DG)
 
void LLVMOrcDisposeMaterializationUnit (LLVMOrcMaterializationUnitRef MU)
 
LLVMOrcMaterializationUnitRef LLVMOrcCreateCustomMaterializationUnit (const char *Name, void *Ctx, LLVMOrcCSymbolFlagsMapPairs Syms, size_t NumSyms, LLVMOrcSymbolStringPoolEntryRef InitSym, LLVMOrcMaterializationUnitMaterializeFunction Materialize, LLVMOrcMaterializationUnitDiscardFunction Discard, LLVMOrcMaterializationUnitDestroyFunction Destroy)
 
LLVMOrcMaterializationUnitRef LLVMOrcAbsoluteSymbols (LLVMOrcCSymbolMapPairs Syms, size_t NumPairs)
 
LLVMOrcMaterializationUnitRef LLVMOrcLazyReexports (LLVMOrcLazyCallThroughManagerRef LCTM, LLVMOrcIndirectStubsManagerRef ISM, LLVMOrcJITDylibRef SourceRef, LLVMOrcCSymbolAliasMapPairs CallableAliases, size_t NumPairs)
 
void LLVMOrcDisposeMaterializationResponsibility (LLVMOrcMaterializationResponsibilityRef MR)
 
LLVMOrcJITDylibRef LLVMOrcMaterializationResponsibilityGetTargetDylib (LLVMOrcMaterializationResponsibilityRef MR)
 
LLVMOrcExecutionSessionRef LLVMOrcMaterializationResponsibilityGetExecutionSession (LLVMOrcMaterializationResponsibilityRef MR)
 
LLVMOrcCSymbolFlagsMapPairs LLVMOrcMaterializationResponsibilityGetSymbols (LLVMOrcMaterializationResponsibilityRef MR, size_t *NumPairs)
 
void LLVMOrcDisposeCSymbolFlagsMap (LLVMOrcCSymbolFlagsMapPairs Pairs)
 
LLVMOrcSymbolStringPoolEntryRef LLVMOrcMaterializationResponsibilityGetInitializerSymbol (LLVMOrcMaterializationResponsibilityRef MR)
 
LLVMOrcSymbolStringPoolEntryRefLLVMOrcMaterializationResponsibilityGetRequestedSymbols (LLVMOrcMaterializationResponsibilityRef MR, size_t *NumSymbols)
 
void LLVMOrcDisposeSymbols (LLVMOrcSymbolStringPoolEntryRef *Symbols)
 
LLVMErrorRef LLVMOrcMaterializationResponsibilityNotifyResolved (LLVMOrcMaterializationResponsibilityRef MR, LLVMOrcCSymbolMapPairs Symbols, size_t NumPairs)
 
LLVMErrorRef LLVMOrcMaterializationResponsibilityNotifyEmitted (LLVMOrcMaterializationResponsibilityRef MR)
 
LLVMErrorRef LLVMOrcMaterializationResponsibilityDefineMaterializing (LLVMOrcMaterializationResponsibilityRef MR, LLVMOrcCSymbolFlagsMapPairs Pairs, size_t NumPairs)
 
void LLVMOrcMaterializationResponsibilityFailMaterialization (LLVMOrcMaterializationResponsibilityRef MR)
 
LLVMErrorRef LLVMOrcMaterializationResponsibilityReplace (LLVMOrcMaterializationResponsibilityRef MR, LLVMOrcMaterializationUnitRef MU)
 
LLVMErrorRef LLVMOrcMaterializationResponsibilityDelegate (LLVMOrcMaterializationResponsibilityRef MR, LLVMOrcSymbolStringPoolEntryRef *Symbols, size_t NumSymbols, LLVMOrcMaterializationResponsibilityRef *Result)
 
void LLVMOrcMaterializationResponsibilityAddDependencies (LLVMOrcMaterializationResponsibilityRef MR, LLVMOrcSymbolStringPoolEntryRef Name, LLVMOrcCDependenceMapPairs Dependencies, size_t NumPairs)
 
void LLVMOrcMaterializationResponsibilityAddDependenciesForAll (LLVMOrcMaterializationResponsibilityRef MR, LLVMOrcCDependenceMapPairs Dependencies, size_t NumPairs)
 
LLVMOrcJITDylibRef LLVMOrcExecutionSessionCreateBareJITDylib (LLVMOrcExecutionSessionRef ES, const char *Name)
 
LLVMErrorRef LLVMOrcExecutionSessionCreateJITDylib (LLVMOrcExecutionSessionRef ES, LLVMOrcJITDylibRef *Result, const char *Name)
 
LLVMOrcJITDylibRef LLVMOrcExecutionSessionGetJITDylibByName (LLVMOrcExecutionSessionRef ES, const char *Name)
 
LLVMOrcResourceTrackerRef LLVMOrcJITDylibCreateResourceTracker (LLVMOrcJITDylibRef JD)
 
LLVMOrcResourceTrackerRef LLVMOrcJITDylibGetDefaultResourceTracker (LLVMOrcJITDylibRef JD)
 
LLVMErrorRef LLVMOrcJITDylibDefine (LLVMOrcJITDylibRef JD, LLVMOrcMaterializationUnitRef MU)
 
LLVMErrorRef LLVMOrcJITDylibClear (LLVMOrcJITDylibRef JD)
 
void LLVMOrcJITDylibAddGenerator (LLVMOrcJITDylibRef JD, LLVMOrcDefinitionGeneratorRef DG)
 
LLVMOrcDefinitionGeneratorRef LLVMOrcCreateCustomCAPIDefinitionGenerator (LLVMOrcCAPIDefinitionGeneratorTryToGenerateFunction F, void *Ctx, LLVMOrcDisposeCAPIDefinitionGeneratorFunction Dispose)
 
void LLVMOrcLookupStateContinueLookup (LLVMOrcLookupStateRef S, LLVMErrorRef Err)
 
LLVMErrorRef LLVMOrcCreateDynamicLibrarySearchGeneratorForProcess (LLVMOrcDefinitionGeneratorRef *Result, char GlobalPrefx, LLVMOrcSymbolPredicate Filter, void *FilterCtx)
 
LLVMErrorRef LLVMOrcCreateDynamicLibrarySearchGeneratorForPath (LLVMOrcDefinitionGeneratorRef *Result, const char *FileName, char GlobalPrefix, LLVMOrcSymbolPredicate Filter, void *FilterCtx)
 
LLVMErrorRef LLVMOrcCreateStaticLibrarySearchGeneratorForPath (LLVMOrcDefinitionGeneratorRef *Result, LLVMOrcObjectLayerRef ObjLayer, const char *FileName, const char *TargetTriple)
 
LLVMOrcThreadSafeContextRef LLVMOrcCreateNewThreadSafeContext (void)
 
LLVMContextRef LLVMOrcThreadSafeContextGetContext (LLVMOrcThreadSafeContextRef TSCtx)
 
void LLVMOrcDisposeThreadSafeContext (LLVMOrcThreadSafeContextRef TSCtx)
 
LLVMOrcThreadSafeModuleRef LLVMOrcCreateNewThreadSafeModule (LLVMModuleRef M, LLVMOrcThreadSafeContextRef TSCtx)
 
void LLVMOrcDisposeThreadSafeModule (LLVMOrcThreadSafeModuleRef TSM)
 
LLVMErrorRef LLVMOrcThreadSafeModuleWithModuleDo (LLVMOrcThreadSafeModuleRef TSM, LLVMOrcGenericIRModuleOperationFunction F, void *Ctx)
 
LLVMErrorRef LLVMOrcJITTargetMachineBuilderDetectHost (LLVMOrcJITTargetMachineBuilderRef *Result)
 
LLVMOrcJITTargetMachineBuilderRef LLVMOrcJITTargetMachineBuilderCreateFromTargetMachine (LLVMTargetMachineRef TM)
 
void LLVMOrcDisposeJITTargetMachineBuilder (LLVMOrcJITTargetMachineBuilderRef JTMB)
 
char * LLVMOrcJITTargetMachineBuilderGetTargetTriple (LLVMOrcJITTargetMachineBuilderRef JTMB)
 
void LLVMOrcJITTargetMachineBuilderSetTargetTriple (LLVMOrcJITTargetMachineBuilderRef JTMB, const char *TargetTriple)
 
LLVMErrorRef LLVMOrcObjectLayerAddObjectFile (LLVMOrcObjectLayerRef ObjLayer, LLVMOrcJITDylibRef JD, LLVMMemoryBufferRef ObjBuffer)
 
LLVMErrorRef LLVMOrcObjectLayerAddObjectFileWithRT (LLVMOrcObjectLayerRef ObjLayer, LLVMOrcResourceTrackerRef RT, LLVMMemoryBufferRef ObjBuffer)
 
void LLVMOrcObjectLayerEmit (LLVMOrcObjectLayerRef ObjLayer, LLVMOrcMaterializationResponsibilityRef R, LLVMMemoryBufferRef ObjBuffer)
 
void LLVMOrcDisposeObjectLayer (LLVMOrcObjectLayerRef ObjLayer)
 
void LLVMOrcIRTransformLayerEmit (LLVMOrcIRTransformLayerRef IRTransformLayer, LLVMOrcMaterializationResponsibilityRef MR, LLVMOrcThreadSafeModuleRef TSM)
 
void LLVMOrcIRTransformLayerSetTransform (LLVMOrcIRTransformLayerRef IRTransformLayer, LLVMOrcIRTransformLayerTransformFunction TransformFunction, void *Ctx)
 
void LLVMOrcObjectTransformLayerSetTransform (LLVMOrcObjectTransformLayerRef ObjTransformLayer, LLVMOrcObjectTransformLayerTransformFunction TransformFunction, void *Ctx)
 
LLVMOrcIndirectStubsManagerRef LLVMOrcCreateLocalIndirectStubsManager (const char *TargetTriple)
 
void LLVMOrcDisposeIndirectStubsManager (LLVMOrcIndirectStubsManagerRef ISM)
 
LLVMErrorRef LLVMOrcCreateLocalLazyCallThroughManager (const char *TargetTriple, LLVMOrcExecutionSessionRef ES, LLVMOrcJITTargetAddress ErrorHandlerAddr, LLVMOrcLazyCallThroughManagerRef *LCTM)
 
void LLVMOrcDisposeLazyCallThroughManager (LLVMOrcLazyCallThroughManagerRef LCTM)
 
LLVMOrcDumpObjectsRef LLVMOrcCreateDumpObjects (const char *DumpDir, const char *IdentifierOverride)
 
void LLVMOrcDisposeDumpObjects (LLVMOrcDumpObjectsRef DumpObjects)
 
LLVMErrorRef LLVMOrcDumpObjects_CallOperator (LLVMOrcDumpObjectsRef DumpObjects, LLVMMemoryBufferRef *ObjBuffer)