@NonnullDefault
Package org.lwjgl.llvm
Contains bindings to LLVM, a collection of modular and reusable compiler and toolchain technologies.
UNSTABLE API
Until these bindings are sufficiently tested, this API should be considered unstable.
BINDINGS ONLY
LWJGL does not currently include pre-built LLVM/Clang binaries. The user must download or build LLVM separately and use
Configuration to point LWJGL to the appropriate binaries.
-
Interface Summary Interface Description CXCursorAndRangeVisitI Instances of this interface may be set to thevisitfield of theCXCursorAndRangeVisitorstruct.CXCursorVisitorI Instances of this interface may be passed to thevisitChildrenmethod.CXExecuteOnThreadI Instances of this interface may be passed to theexecuteOnThreadmethod.CXFieldVisitorI Instances of this interface may be passed to theType_visitFieldsmethod.CXInclusionVisitorI Instances of this interface may be passed to thegetInclusionsmethod.IndexerAbortQueryI Instances of this interface may be set to theabortQueryfield of theIndexerCallbacksstruct.IndexerDiagnosticI Instances of this interface may be set to thediagnosticfield of theIndexerCallbacksstruct.IndexerEnteredMainFileI Instances of this interface may be set to theenteredMainFilefield of theIndexerCallbacksstruct.IndexerImportedASTFileI Instances of this interface may be set to theimportedASTFilefield of theIndexerCallbacksstruct.IndexerIncludedFileI Instances of this interface may be set to theppIncludedFilefield of theIndexerCallbacksstruct.IndexerIndexDeclarationI Instances of this interface may be set to theindexDeclarationfield of theIndexerCallbacksstruct.IndexerIndexEntityReferenceI Instances of this interface may be set to theindexEntityReferencefield of theIndexerCallbacksstruct.IndexerStartedTranslationUnitI Instances of this interface may be set to thestartedTranslationUnitfield of theIndexerCallbacksstruct.LLVMDiagnosticHandlerI Instances of this interface may be passed to theContextSetDiagnosticHandlermethod.LLVMFatalErrorHandlerI Instances of this interface may be passed to theInstallFatalErrorHandlermethod.LLVMMemoryManagerAllocateCodeSectionCallbackI Instances of this interface may be passed to theCreateSimpleMCJITMemoryManagermethod.LLVMMemoryManagerAllocateDataSectionCallbackI Instances of this interface may be passed to theCreateSimpleMCJITMemoryManagermethod.LLVMMemoryManagerDestroyCallbackI Instances of this interface may be passed to theCreateSimpleMCJITMemoryManagermethod.LLVMMemoryManagerFinalizeMemoryCallbackI Instances of this interface may be passed to theCreateSimpleMCJITMemoryManagermethod.LLVMMustPreserveI Instances of this interface may be passed to theAddInternalizePassWithMustPreservePredicatemethod.LLVMOpInfoCallbackI Instances of this interface may be passed to theCreateDisasm,CreateDisasmCPUandCreateDisasmCPUFeaturesmethods.LLVMOrcCAPIDefinitionGeneratorTryToGenerateFunctionI Instances of this interface may be passed to theOrcCreateCustomCAPIDefinitionGeneratormethod.LLVMOrcErrorReporterFunctionI Instances of this interface may be passed to theOrcExecutionSessionSetErrorReportermethod.LLVMOrcGenericIRModuleOperationFunctionI Instances of this interface may be passed to theOrcThreadSafeModuleWithModuleDomethod.LLVMOrcIRTransformLayerTransformFunctionI Instances of this interface may be passed to theOrcIRTransformLayerSetTransformmethod.LLVMOrcLLJITBuilderObjectLinkingLayerCreatorFunctionI Instances of this interface may be passed to theOrcLLJITBuilderSetObjectLinkingLayerCreatormethod.LLVMOrcMaterializationUnitDestroyFunctionI Instances of this interface may be passed to theOrcCreateCustomMaterializationUnitmethod.LLVMOrcMaterializationUnitDiscardFunctionI Instances of this interface may be passed to theOrcCreateCustomMaterializationUnitmethod.LLVMOrcMaterializationUnitMaterializeFunctionI Instances of this interface may be passed to theOrcCreateCustomMaterializationUnitmethod.LLVMOrcObjectTransformLayerTransformFunctionI Instances of this interface may be passed to theOrcObjectTransformLayerSetTransformmethod.LLVMOrcSymbolPredicateI Instances of this interface may be passed to theOrcCreateDynamicLibrarySearchGeneratorForProcessmethod.LLVMSymbolLookupCallbackI Instances of this interface may be passed to theCreateDisasm,CreateDisasmCPUandCreateDisasmCPUFeaturesmethods.LLVMYieldCallbackI Instances of this interface may be passed to theContextSetYieldCallbackmethod.LTODiagnosticHandlerI Instances of this interface may be passed to thecodegen_set_diagnostic_handlermethod. -
Class Summary Class Description ClangBuildSystem ClangBuildSystem.Functions Contains the function pointers loaded fromClangIndex.getLibrary().ClangCompilationDatabase ClangCompilationDatabase.Functions Contains the function pointers loaded fromClangIndex.getLibrary().ClangDocumentation ClangDocumentation.Functions Contains the function pointers loaded fromClangIndex.getLibrary().ClangFatalErrorHandler Requires Clang 10 or higher.ClangFatalErrorHandler.Functions Contains the function pointers loaded from the CLANGSharedLibrary.ClangIndex ClangIndex.Functions Contains the function pointers loaded from the CLANGSharedLibrary.ClangRewrite Requires Clang 12 or higher.ClangRewrite.Functions Contains the function pointers loaded from the CLANGSharedLibrary.CXCodeCompleteResults Contains the results of code-completion.CXCodeCompleteResults.Buffer An array ofCXCodeCompleteResultsstructs.CXComment A parsed comment.CXComment.Buffer An array ofCXCommentstructs.CXCompletionResult A single result of code completion.CXCompletionResult.Buffer An array ofCXCompletionResultstructs.CXCursor A cursor representing some element in the abstract syntax tree for a translation unit.CXCursor.Buffer An array ofCXCursorstructs.CXCursorAndRangeVisit Instances of this class may be set to thevisitfield of theCXCursorAndRangeVisitorstruct.CXCursorAndRangeVisitor LayoutCXCursorAndRangeVisitor.Buffer An array ofCXCursorAndRangeVisitorstructs.CXCursorVisitor Instances of this class may be passed to thevisitChildrenmethod.CXExecuteOnThread Instances of this class may be passed to theexecuteOnThreadmethod.CXFieldVisitor Instances of this class may be passed to theType_visitFieldsmethod.CXFileUniqueID Uniquely identifies a CXFile, that refers to the same underlying file, across an indexing session.CXFileUniqueID.Buffer An array ofCXFileUniqueIDstructs.CXIdxAttrInfo LayoutCXIdxAttrInfo.Buffer An array ofCXIdxAttrInfostructs.CXIdxBaseClassInfo LayoutCXIdxBaseClassInfo.Buffer An array ofCXIdxBaseClassInfostructs.CXIdxContainerInfo LayoutCXIdxContainerInfo.Buffer An array ofCXIdxContainerInfostructs.CXIdxCXXClassDeclInfo LayoutCXIdxCXXClassDeclInfo.Buffer An array ofCXIdxCXXClassDeclInfostructs.CXIdxDeclInfo LayoutCXIdxDeclInfo.Buffer An array ofCXIdxDeclInfostructs.CXIdxEntityInfo LayoutCXIdxEntityInfo.Buffer An array ofCXIdxEntityInfostructs.CXIdxEntityRefInfo Data forIndexerCallbacks.indexEntityReference().CXIdxEntityRefInfo.Buffer An array ofCXIdxEntityRefInfostructs.CXIdxIBOutletCollectionAttrInfo LayoutCXIdxIBOutletCollectionAttrInfo.Buffer An array ofCXIdxIBOutletCollectionAttrInfostructs.CXIdxImportedASTFileInfo Data for IndexerCallbacks#importedASTFile.CXIdxImportedASTFileInfo.Buffer An array ofCXIdxImportedASTFileInfostructs.CXIdxIncludedFileInfo Data forppIncludedFilecallback.CXIdxIncludedFileInfo.Buffer An array ofCXIdxIncludedFileInfostructs.CXIdxLoc Source location passed to index callbacks.CXIdxLoc.Buffer An array ofCXIdxLocstructs.CXIdxObjCCategoryDeclInfo LayoutCXIdxObjCCategoryDeclInfo.Buffer An array ofCXIdxObjCCategoryDeclInfostructs.CXIdxObjCContainerDeclInfo LayoutCXIdxObjCContainerDeclInfo.Buffer An array ofCXIdxObjCContainerDeclInfostructs.CXIdxObjCInterfaceDeclInfo LayoutCXIdxObjCInterfaceDeclInfo.Buffer An array ofCXIdxObjCInterfaceDeclInfostructs.CXIdxObjCPropertyDeclInfo LayoutCXIdxObjCPropertyDeclInfo.Buffer An array ofCXIdxObjCPropertyDeclInfostructs.CXIdxObjCProtocolRefInfo LayoutCXIdxObjCProtocolRefInfo.Buffer An array ofCXIdxObjCProtocolRefInfostructs.CXIdxObjCProtocolRefListInfo LayoutCXIdxObjCProtocolRefListInfo.Buffer An array ofCXIdxObjCProtocolRefListInfostructs.CXInclusionVisitor Instances of this class may be passed to thegetInclusionsmethod.CXPlatformAvailability Describes the availability of a given entity on a particular platform, e.g., a particular class might only be available on Mac OS 10.7 or newer.CXPlatformAvailability.Buffer An array ofCXPlatformAvailabilitystructs.CXSourceLocation Identifies a specific source location within a translation unit.CXSourceLocation.Buffer An array ofCXSourceLocationstructs.CXSourceRange Identifies a half-open character range in the source code.CXSourceRange.Buffer An array ofCXSourceRangestructs.CXSourceRangeList Identifies an array of ranges.CXSourceRangeList.Buffer An array ofCXSourceRangeListstructs.CXString A character string.CXString.Buffer An array ofCXStringstructs.CXStringSet LayoutCXStringSet.Buffer An array ofCXStringSetstructs.CXToken Describes a single preprocessing token.CXToken.Buffer An array ofCXTokenstructs.CXTUResourceUsage The memory usage of a CXTranslationUnit, broken into categories.CXTUResourceUsage.Buffer An array ofCXTUResourceUsagestructs.CXTUResourceUsageEntry LayoutCXTUResourceUsageEntry.Buffer An array ofCXTUResourceUsageEntrystructs.CXType The type of an element in the abstract syntax tree.CXType.Buffer An array ofCXTypestructs.CXUnsavedFile Provides the contents of a file that has not yet been saved to disk.CXUnsavedFile.Buffer An array ofCXUnsavedFilestructs.CXVersion Describes a version number of the formmajor.minor.subminor.CXVersion.Buffer An array ofCXVersionstructs.IndexerAbortQuery Instances of this class may be set to theabortQueryfield of theIndexerCallbacksstruct.IndexerCallbacks A group of callbacks used byindexSourceFileandindexTranslationUnit.IndexerCallbacks.Buffer An array ofIndexerCallbacksstructs.IndexerDiagnostic Instances of this class may be set to thediagnosticfield of theIndexerCallbacksstruct.IndexerEnteredMainFile Instances of this class may be set to theenteredMainFilefield of theIndexerCallbacksstruct.IndexerImportedASTFile Instances of this class may be set to theimportedASTFilefield of theIndexerCallbacksstruct.IndexerIncludedFile Instances of this class may be set to theppIncludedFilefield of theIndexerCallbacksstruct.IndexerIndexDeclaration Instances of this class may be set to theindexDeclarationfield of theIndexerCallbacksstruct.IndexerIndexEntityReference Instances of this class may be set to theindexEntityReferencefield of theIndexerCallbacksstruct.IndexerStartedTranslationUnit Instances of this class may be set to thestartedTranslationUnitfield of theIndexerCallbacksstruct.LLVMAnalysis LLVMAnalysis.Functions Contains the function pointers loaded fromLLVMCore.getLibrary().LLVMBitReader LLVMBitReader.Functions Contains the function pointers loaded fromLLVMCore.getLibrary().LLVMBitWriter LLVMBitWriter.Functions Contains the function pointers loaded fromLLVMCore.getLibrary().LLVMComdat LLVMComdat.Functions Contains the function pointers loaded fromLLVMCore.getLibrary().LLVMCore LLVMCore.Functions Contains the function pointers loaded from the LLVMSharedLibrary.LLVMDebugInfo LLVMDebugInfo.Functions Contains the function pointers loaded fromLLVMCore.getLibrary().LLVMDiagnosticHandler Instances of this class may be passed to theContextSetDiagnosticHandlermethod.LLVMDisassembler LLVMDisassembler.Functions Contains the function pointers loaded fromLLVMCore.getLibrary().LLVMError LLVMError.Functions Contains the function pointers loaded fromLLVMCore.getLibrary().LLVMErrorHandling LLVMErrorHandling.Functions Contains the function pointers loaded fromLLVMCore.getLibrary().LLVMExecutionEngine LLVMExecutionEngine.Functions Contains the function pointers loaded fromLLVMCore.getLibrary().LLVMFatalErrorHandler Instances of this class may be passed to theInstallFatalErrorHandlermethod.LLVMInitialization LLVMInitialization.Functions Contains the function pointers loaded fromLLVMCore.getLibrary().LLVMIRReader LLVMIRReader.Functions Contains the function pointers loaded fromLLVMCore.getLibrary().LLVMJITCSymbolMapPair Represents a pair of a symbol name and an evaluated symbol.LLVMJITCSymbolMapPair.Buffer An array ofLLVMJITCSymbolMapPairstructs.LLVMJITEvaluatedSymbol Represents an evaluated symbol address and flags.LLVMJITEvaluatedSymbol.Buffer An array ofLLVMJITEvaluatedSymbolstructs.LLVMJITSymbolFlags Represents the linkage flags for a symbol definition.LLVMJITSymbolFlags.Buffer An array ofLLVMJITSymbolFlagsstructs.LLVMLinker LLVMLinker.Functions Contains the function pointers loaded fromLLVMCore.getLibrary().LLVMLLJIT Requires LLVM 11.0 or higher.LLVMLLJIT.Functions Contains the function pointers loaded fromLLVMCore.getLibrary().LLVMLTO LLVMLTO.Functions Contains the function pointers loaded from the LTOSharedLibrary.LLVMMCJITCompilerOptions LayoutLLVMMCJITCompilerOptions.Buffer An array ofLLVMMCJITCompilerOptionsstructs.LLVMMemoryManagerAllocateCodeSectionCallback Instances of this class may be passed to theCreateSimpleMCJITMemoryManagermethod.LLVMMemoryManagerAllocateDataSectionCallback Instances of this class may be passed to theCreateSimpleMCJITMemoryManagermethod.LLVMMemoryManagerDestroyCallback Instances of this class may be passed to theCreateSimpleMCJITMemoryManagermethod.LLVMMemoryManagerFinalizeMemoryCallback Instances of this class may be passed to theCreateSimpleMCJITMemoryManagermethod.LLVMMustPreserve Instances of this class may be passed to theAddInternalizePassWithMustPreservePredicatemethod.LLVMObject LLVMObject.Functions Contains the function pointers loaded fromLLVMCore.getLibrary().LLVMOpInfo1 LayoutLLVMOpInfo1.Buffer An array ofLLVMOpInfo1structs.LLVMOpInfoCallback Instances of this class may be passed to theCreateDisasm,CreateDisasmCPUandCreateDisasmCPUFeaturesmethods.LLVMOpInfoSymbol1 The initial support in LLVM MC for the most general form of a relocatable expression is "AddSymbol - SubtractSymbol + Offset".LLVMOpInfoSymbol1.Buffer An array ofLLVMOpInfoSymbol1structs.LLVMOrc Requires LLVM 12 or higher.LLVMOrc.Functions Contains the function pointers loaded fromLLVMCore.getLibrary().LLVMOrcCAPIDefinitionGeneratorTryToGenerateFunction Instances of this class may be passed to theOrcCreateCustomCAPIDefinitionGeneratormethod.LLVMOrcCDependenceMapPair Represents a pair of aJITDylibandLLVMOrcCSymbolsList.LLVMOrcCDependenceMapPair.Buffer An array ofLLVMOrcCDependenceMapPairstructs.LLVMOrcCLookupSetElement An element type for a symbol lookup set.LLVMOrcCLookupSetElement.Buffer An array ofLLVMOrcCLookupSetElementstructs.LLVMOrcCSymbolAliasMapEntry Represents aSymbolAliasMapEntryLLVMOrcCSymbolAliasMapEntry.Buffer An array ofLLVMOrcCSymbolAliasMapEntrystructs.LLVMOrcCSymbolAliasMapPair Represents a pair of a symbol name andSymbolAliasMapEntry.LLVMOrcCSymbolAliasMapPair.Buffer An array ofLLVMOrcCSymbolAliasMapPairstructs.LLVMOrcCSymbolFlagsMapPair Represents a pair of a symbol name andLLVMJITSymbolFlags.LLVMOrcCSymbolFlagsMapPair.Buffer An array ofLLVMOrcCSymbolFlagsMapPairstructs.LLVMOrcCSymbolsList Represents a list ofLLVMOrcSymbolStringPoolEntryRefand the associated length.LLVMOrcCSymbolsList.Buffer An array ofLLVMOrcCSymbolsListstructs.LLVMOrcEE Requires LLVM 12 or higher.LLVMOrcEE.Functions Contains the function pointers loaded fromLLVMCore.getLibrary().LLVMOrcErrorReporterFunction Instances of this class may be passed to theOrcExecutionSessionSetErrorReportermethod.LLVMOrcGenericIRModuleOperationFunction Instances of this class may be passed to theOrcThreadSafeModuleWithModuleDomethod.LLVMOrcIRTransformLayerTransformFunction Instances of this class may be passed to theOrcIRTransformLayerSetTransformmethod.LLVMOrcLLJITBuilderObjectLinkingLayerCreatorFunction Instances of this class may be passed to theOrcLLJITBuilderSetObjectLinkingLayerCreatormethod.LLVMOrcMaterializationUnitDestroyFunction Instances of this class may be passed to theOrcCreateCustomMaterializationUnitmethod.LLVMOrcMaterializationUnitDiscardFunction Instances of this class may be passed to theOrcCreateCustomMaterializationUnitmethod.LLVMOrcMaterializationUnitMaterializeFunction Instances of this class may be passed to theOrcCreateCustomMaterializationUnitmethod.LLVMOrcObjectTransformLayerTransformFunction Instances of this class may be passed to theOrcObjectTransformLayerSetTransformmethod.LLVMOrcSymbolPredicate Instances of this class may be passed to theOrcCreateDynamicLibrarySearchGeneratorForProcessmethod.LLVMRemarks Requires LLVM 9 or higher.LLVMRemarks.Functions Contains the function pointers loaded fromLLVMCore.getLibrary().LLVMSupport LLVMSupport.Functions Contains the function pointers loaded fromLLVMCore.getLibrary().LLVMSymbolLookupCallback Instances of this class may be passed to theCreateDisasm,CreateDisasmCPUandCreateDisasmCPUFeaturesmethods.LLVMTarget LLVMTarget.Functions Contains the function pointers loaded fromLLVMCore.getLibrary().LLVMTargetMachine LLVMTargetMachine.Functions Contains the function pointers loaded fromLLVMCore.getLibrary().LLVMTargetX86 LLVMTargetX86.Functions Contains the function pointers loaded fromLLVMCore.getLibrary().LLVMTransforms LLVMTransforms.Functions Contains the function pointers loaded fromLLVMCore.getLibrary().LLVMYieldCallback Instances of this class may be passed to theContextSetYieldCallbackmethod.LTODiagnosticHandler Instances of this class may be passed to thecodegen_set_diagnostic_handlermethod.LTOObjectBuffer Type to wrap a single object returned byThinLTO.LTOObjectBuffer.Buffer An array ofLTOObjectBufferstructs.