From 8ea9101345e709667b9516f6bab721584401b1ba Mon Sep 17 00:00:00 2001 From: Samuel Audet Date: Sun, 20 Aug 2023 08:24:27 +0900 Subject: [PATCH] * Upgrade presets for DNNL 3.2.1, LLVM 17.0.0, TensorFlow Lite 2.14.0, TVM 0.13.0 --- .github/actions/deploy-ubuntu/action.yml | 6 + CHANGELOG.md | 2 +- README.md | 8 +- dnnl/README.md | 6 +- dnnl/cppbuild.sh | 2 +- dnnl/platform/pom.xml | 2 +- dnnl/pom.xml | 2 +- dnnl/samples/pom.xml | 2 +- .../java/org/bytedeco/dnnl/IntMemoryMap.java | 2 +- .../org/bytedeco/dnnl/augru_backward.java | 2 +- .../java/org/bytedeco/dnnl/augru_forward.java | 2 +- .../dnnl/batch_normalization_backward.java | 2 +- .../dnnl/batch_normalization_forward.java | 2 +- .../gen/java/org/bytedeco/dnnl/binary.java | 2 +- .../gen/java/org/bytedeco/dnnl/concat.java | 2 +- .../dnnl/convolution_backward_data.java | 2 +- .../dnnl/convolution_backward_weights.java | 2 +- .../bytedeco/dnnl/convolution_forward.java | 2 +- .../dnnl/deconvolution_backward_data.java | 2 +- .../dnnl/deconvolution_backward_weights.java | 2 +- .../bytedeco/dnnl/deconvolution_forward.java | 2 +- .../java/org/bytedeco/dnnl/dnnl_engine.java | 2 +- .../org/bytedeco/dnnl/dnnl_engine_handle.java | 2 +- .../org/bytedeco/dnnl/dnnl_exec_arg_t.java | 2 +- .../java/org/bytedeco/dnnl/dnnl_memory.java | 2 +- .../org/bytedeco/dnnl/dnnl_memory_desc.java | 2 +- .../dnnl/dnnl_memory_desc_handle.java | 2 +- .../dnnl/dnnl_memory_desc_vector.java | 4 +- .../org/bytedeco/dnnl/dnnl_memory_handle.java | 2 +- .../java/org/bytedeco/dnnl/dnnl_post_ops.java | 2 +- .../bytedeco/dnnl/dnnl_post_ops_handle.java | 2 +- .../org/bytedeco/dnnl/dnnl_primitive.java | 2 +- .../bytedeco/dnnl/dnnl_primitive_attr.java | 2 +- .../dnnl/dnnl_primitive_attr_handle.java | 2 +- .../bytedeco/dnnl/dnnl_primitive_desc.java | 2 +- .../dnnl/dnnl_primitive_desc_handle.java | 2 +- .../dnnl/dnnl_primitive_desc_vector.java | 4 +- .../bytedeco/dnnl/dnnl_primitive_handle.java | 2 +- .../java/org/bytedeco/dnnl/dnnl_stream.java | 2 +- .../org/bytedeco/dnnl/dnnl_stream_handle.java | 2 +- .../org/bytedeco/dnnl/dnnl_version_t.java | 9 +- .../org/bytedeco/dnnl/eltwise_backward.java | 2 +- .../org/bytedeco/dnnl/eltwise_forward.java | 2 +- .../gen/java/org/bytedeco/dnnl/engine.java | 2 +- .../src/gen/java/org/bytedeco/dnnl/error.java | 2 +- .../java/org/bytedeco/dnnl/global/dnnl.java | 333 ++++++--- .../java/org/bytedeco/dnnl/gru_backward.java | 2 +- .../java/org/bytedeco/dnnl/gru_forward.java | 2 +- .../dnnl/inner_product_backward_data.java | 2 +- .../dnnl/inner_product_backward_weights.java | 2 +- .../bytedeco/dnnl/inner_product_forward.java | 2 +- .../dnnl/layer_normalization_backward.java | 2 +- .../dnnl/layer_normalization_forward.java | 2 +- .../org/bytedeco/dnnl/lbr_augru_backward.java | 2 +- .../org/bytedeco/dnnl/lbr_augru_forward.java | 2 +- .../org/bytedeco/dnnl/lbr_gru_backward.java | 2 +- .../org/bytedeco/dnnl/lbr_gru_forward.java | 2 +- .../java/org/bytedeco/dnnl/lrn_backward.java | 2 +- .../java/org/bytedeco/dnnl/lrn_forward.java | 2 +- .../java/org/bytedeco/dnnl/lstm_backward.java | 2 +- .../java/org/bytedeco/dnnl/lstm_forward.java | 2 +- .../gen/java/org/bytedeco/dnnl/matmul.java | 2 +- .../gen/java/org/bytedeco/dnnl/memory.java | 112 +++- .../org/bytedeco/dnnl/memory_desc_vector.java | 4 +- .../org/bytedeco/dnnl/pooling_backward.java | 2 +- .../org/bytedeco/dnnl/pooling_forward.java | 2 +- .../gen/java/org/bytedeco/dnnl/post_ops.java | 2 +- .../org/bytedeco/dnnl/prelu_backward.java | 2 +- .../java/org/bytedeco/dnnl/prelu_forward.java | 2 +- .../gen/java/org/bytedeco/dnnl/primitive.java | 2 +- .../org/bytedeco/dnnl/primitive_attr.java | 2 +- .../org/bytedeco/dnnl/primitive_desc.java | 2 +- .../bytedeco/dnnl/primitive_desc_base.java | 2 +- .../org/bytedeco/dnnl/primitive_vector.java | 4 +- .../gen/java/org/bytedeco/dnnl/reduction.java | 2 +- .../gen/java/org/bytedeco/dnnl/reorder.java | 2 +- .../bytedeco/dnnl/resampling_backward.java | 2 +- .../org/bytedeco/dnnl/resampling_forward.java | 2 +- .../dnnl/rnn_primitive_desc_base.java | 2 +- .../org/bytedeco/dnnl/shuffle_backward.java | 2 +- .../org/bytedeco/dnnl/shuffle_forward.java | 2 +- .../org/bytedeco/dnnl/softmax_backward.java | 2 +- .../org/bytedeco/dnnl/softmax_forward.java | 2 +- .../gen/java/org/bytedeco/dnnl/stream.java | 4 +- dnnl/src/gen/java/org/bytedeco/dnnl/sum.java | 2 +- .../bytedeco/dnnl/vanilla_rnn_backward.java | 2 +- .../bytedeco/dnnl/vanilla_rnn_forward.java | 2 +- .../java/org/bytedeco/dnnl/presets/dnnl.java | 1 + llvm/README.md | 4 +- llvm/cppbuild.sh | 9 +- llvm/platform/pom.xml | 2 +- llvm/pom.xml | 2 +- llvm/samples/clang/pom.xml | 2 +- llvm/samples/llvm/EmitBitcode.java | 4 +- llvm/samples/llvm/Factorial.java | 6 +- llvm/samples/llvm/OrcJit.java | 11 +- llvm/samples/llvm/pom.xml | 2 +- llvm/samples/polly/pom.xml | 2 +- .../bytedeco/llvm/LLVM/LLVMAttributeRef.java | 2 +- .../bytedeco/llvm/LLVM/LLVMBasicBlockRef.java | 2 +- .../org/bytedeco/llvm/LLVM/LLVMBinaryRef.java | 2 +- .../bytedeco/llvm/LLVM/LLVMBuilderRef.java | 2 +- .../org/bytedeco/llvm/LLVM/LLVMComdatRef.java | 2 +- .../bytedeco/llvm/LLVM/LLVMContextRef.java | 2 +- .../bytedeco/llvm/LLVM/LLVMDIBuilderRef.java | 2 +- .../llvm/LLVM/LLVMDiagnosticHandler.java | 2 +- .../llvm/LLVM/LLVMDiagnosticInfoRef.java | 2 +- .../llvm/LLVM/LLVMDisasmContextRef.java | 2 +- .../org/bytedeco/llvm/LLVM/LLVMErrorRef.java | 2 +- .../bytedeco/llvm/LLVM/LLVMErrorTypeId.java | 2 +- .../llvm/LLVM/LLVMExecutionEngineRef.java | 2 +- .../llvm/LLVM/LLVMFatalErrorHandler.java | 2 +- .../llvm/LLVM/LLVMGenericValueRef.java | 2 +- .../llvm/LLVM/LLVMJITEvaluatedSymbol.java | 2 +- .../llvm/LLVM/LLVMJITEventListenerRef.java | 2 +- .../llvm/LLVM/LLVMJITSymbolFlags.java | 2 +- .../llvm/LLVM/LLVMMCJITCompilerOptions.java | 2 +- .../llvm/LLVM/LLVMMCJITMemoryManagerRef.java | 2 +- .../llvm/LLVM/LLVMMemoryBufferRef.java | 2 +- ...oryManagerAllocateCodeSectionCallback.java | 2 +- ...oryManagerAllocateDataSectionCallback.java | 2 +- ...LVMMemoryManagerCreateContextCallback.java | 2 +- .../LLVMMemoryManagerDestroyCallback.java | 2 +- ...VMMemoryManagerFinalizeMemoryCallback.java | 2 +- ...emoryManagerNotifyTerminatingCallback.java | 2 +- .../bytedeco/llvm/LLVM/LLVMMetadataRef.java | 2 +- .../llvm/LLVM/LLVMModuleFlagEntry.java | 2 +- .../llvm/LLVM/LLVMModuleProviderRef.java | 2 +- .../org/bytedeco/llvm/LLVM/LLVMModuleRef.java | 2 +- .../llvm/LLVM/LLVMNamedMDNodeRef.java | 2 +- .../bytedeco/llvm/LLVM/LLVMObjectFileRef.java | 2 +- .../org/bytedeco/llvm/LLVM/LLVMOpInfo1.java | 2 +- .../llvm/LLVM/LLVMOpInfoCallback.java | 2 +- .../bytedeco/llvm/LLVM/LLVMOpInfoSymbol1.java | 2 +- ...initionGeneratorTryToGenerateFunction.java | 2 +- .../llvm/LLVM/LLVMOrcCDependenceMapPair.java | 2 +- .../LLVMOrcCJITDylibSearchOrderElement.java | 2 +- .../llvm/LLVM/LLVMOrcCLookupSetElement.java | 2 +- .../LLVM/LLVMOrcCSymbolAliasMapEntry.java | 2 +- .../llvm/LLVM/LLVMOrcCSymbolAliasMapPair.java | 2 +- .../llvm/LLVM/LLVMOrcCSymbolFlagsMapPair.java | 2 +- .../llvm/LLVM/LLVMOrcCSymbolMapPair.java | 2 +- .../llvm/LLVM/LLVMOrcCSymbolsList.java | 2 +- .../LLVM/LLVMOrcDefinitionGeneratorRef.java | 2 +- ...isposeCAPIDefinitionGeneratorFunction.java | 2 +- .../llvm/LLVM/LLVMOrcDumpObjectsRef.java | 2 +- .../LLVM/LLVMOrcErrorReporterFunction.java | 2 +- ...tionSessionLookupHandleResultFunction.java | 2 +- .../llvm/LLVM/LLVMOrcExecutionSessionRef.java | 2 +- ...VMOrcGenericIRModuleOperationFunction.java | 2 +- .../llvm/LLVM/LLVMOrcIRTransformLayerRef.java | 2 +- ...MOrcIRTransformLayerTransformFunction.java | 2 +- .../LLVM/LLVMOrcIndirectStubsManagerRef.java | 2 +- .../llvm/LLVM/LLVMOrcJITDylibRef.java | 2 +- .../LLVMOrcJITTargetMachineBuilderRef.java | 2 +- ...lderObjectLinkingLayerCreatorFunction.java | 2 +- .../llvm/LLVM/LLVMOrcLLJITBuilderRef.java | 2 +- .../bytedeco/llvm/LLVM/LLVMOrcLLJITRef.java | 2 +- .../LLVMOrcLazyCallThroughManagerRef.java | 2 +- .../llvm/LLVM/LLVMOrcLookupStateRef.java | 2 +- ...VMOrcMaterializationResponsibilityRef.java | 2 +- ...OrcMaterializationUnitDestroyFunction.java | 2 +- ...OrcMaterializationUnitDiscardFunction.java | 2 +- ...aterializationUnitMaterializeFunction.java | 2 +- .../LLVM/LLVMOrcMaterializationUnitRef.java | 2 +- .../llvm/LLVM/LLVMOrcObjectLayerRef.java | 2 +- .../LLVM/LLVMOrcObjectTransformLayerRef.java | 2 +- ...ObjectTransformLayerTransformFunction.java | 2 +- .../LLVM/LLVMOrcOpaqueObjectLinkingLayer.java | 2 +- .../llvm/LLVM/LLVMOrcResourceTrackerRef.java | 2 +- .../llvm/LLVM/LLVMOrcSymbolPredicate.java | 2 +- .../LLVM/LLVMOrcSymbolStringPoolEntryRef.java | 2 +- .../llvm/LLVM/LLVMOrcSymbolStringPoolRef.java | 2 +- .../LLVM/LLVMOrcThreadSafeContextRef.java | 2 +- .../llvm/LLVM/LLVMOrcThreadSafeModuleRef.java | 2 +- .../llvm/LLVM/LLVMPassBuilderOptionsRef.java | 2 +- .../llvm/LLVM/LLVMPassManagerBuilderRef.java | 20 - .../llvm/LLVM/LLVMPassManagerRef.java | 2 +- .../llvm/LLVM/LLVMPassRegistryRef.java | 21 - .../llvm/LLVM/LLVMRelocationIteratorRef.java | 2 +- .../bytedeco/llvm/LLVM/LLVMRemarkArgRef.java | 2 +- .../llvm/LLVM/LLVMRemarkDebugLocRef.java | 2 +- .../llvm/LLVM/LLVMRemarkEntryRef.java | 2 +- .../llvm/LLVM/LLVMRemarkParserRef.java | 2 +- .../llvm/LLVM/LLVMRemarkStringRef.java | 2 +- .../llvm/LLVM/LLVMSectionIteratorRef.java | 2 +- .../llvm/LLVM/LLVMSymbolIteratorRef.java | 2 +- .../llvm/LLVM/LLVMSymbolLookupCallback.java | 2 +- .../bytedeco/llvm/LLVM/LLVMTargetDataRef.java | 2 +- .../llvm/LLVM/LLVMTargetLibraryInfoRef.java | 2 +- .../llvm/LLVM/LLVMTargetMachineRef.java | 2 +- .../org/bytedeco/llvm/LLVM/LLVMTargetRef.java | 2 +- .../org/bytedeco/llvm/LLVM/LLVMTypeRef.java | 2 +- .../org/bytedeco/llvm/LLVM/LLVMUseRef.java | 2 +- .../llvm/LLVM/LLVMValueMetadataEntry.java | 2 +- .../org/bytedeco/llvm/LLVM/LLVMValueRef.java | 2 +- .../bytedeco/llvm/LLVM/LLVMYieldCallback.java | 2 +- .../bytedeco/llvm/LLVM/LTOObjectBuffer.java | 2 +- .../MustPreserve_LLVMValueRef_Pointer.java | 32 - .../gen/java/org/bytedeco/llvm/LLVM/Pass.java | 2 +- .../org/bytedeco/llvm/LLVM/PassRegistry.java | 2 +- .../llvm/LLVM/PollyForcePassLinking.java | 2 +- .../bytedeco/llvm/LLVM/lto_code_gen_t.java | 2 +- .../llvm/LLVM/lto_diagnostic_handler_t.java | 2 +- .../org/bytedeco/llvm/LLVM/lto_input_t.java | 2 +- .../org/bytedeco/llvm/LLVM/lto_module_t.java | 2 +- .../llvm/LLVM/thinlto_code_gen_t.java | 2 +- .../org/bytedeco/llvm/clang/CXAPISet.java | 2 +- .../org/bytedeco/llvm/clang/CXClientData.java | 2 +- .../llvm/clang/CXCodeCompleteResults.java | 2 +- .../org/bytedeco/llvm/clang/CXComment.java | 2 +- .../llvm/clang/CXCompilationDatabase.java | 2 +- .../bytedeco/llvm/clang/CXCompileCommand.java | 2 +- .../llvm/clang/CXCompileCommands.java | 2 +- .../llvm/clang/CXCompletionResult.java | 2 +- .../llvm/clang/CXCompletionString.java | 2 +- .../org/bytedeco/llvm/clang/CXCursor.java | 2 +- .../llvm/clang/CXCursorAndRangeVisitor.java | 2 +- .../org/bytedeco/llvm/clang/CXCursorSet.java | 2 +- .../bytedeco/llvm/clang/CXCursorVisitor.java | 2 +- .../org/bytedeco/llvm/clang/CXDiagnostic.java | 2 +- .../bytedeco/llvm/clang/CXDiagnosticSet.java | 2 +- .../org/bytedeco/llvm/clang/CXEvalResult.java | 2 +- .../bytedeco/llvm/clang/CXFieldVisitor.java | 2 +- .../java/org/bytedeco/llvm/clang/CXFile.java | 2 +- .../bytedeco/llvm/clang/CXFileUniqueID.java | 2 +- .../bytedeco/llvm/clang/CXIdxAttrInfo.java | 2 +- .../llvm/clang/CXIdxBaseClassInfo.java | 2 +- .../llvm/clang/CXIdxCXXClassDeclInfo.java | 2 +- .../llvm/clang/CXIdxClientASTFile.java | 2 +- .../llvm/clang/CXIdxClientContainer.java | 2 +- .../llvm/clang/CXIdxClientEntity.java | 2 +- .../bytedeco/llvm/clang/CXIdxClientFile.java | 8 +- .../llvm/clang/CXIdxContainerInfo.java | 2 +- .../bytedeco/llvm/clang/CXIdxDeclInfo.java | 2 +- .../bytedeco/llvm/clang/CXIdxEntityInfo.java | 2 +- .../llvm/clang/CXIdxEntityRefInfo.java | 2 +- .../CXIdxIBOutletCollectionAttrInfo.java | 2 +- .../llvm/clang/CXIdxImportedASTFileInfo.java | 2 +- .../llvm/clang/CXIdxIncludedFileInfo.java | 2 +- .../org/bytedeco/llvm/clang/CXIdxLoc.java | 2 +- .../llvm/clang/CXIdxObjCCategoryDeclInfo.java | 2 +- .../clang/CXIdxObjCContainerDeclInfo.java | 2 +- .../clang/CXIdxObjCInterfaceDeclInfo.java | 2 +- .../llvm/clang/CXIdxObjCPropertyDeclInfo.java | 2 +- .../llvm/clang/CXIdxObjCProtocolRefInfo.java | 2 +- .../clang/CXIdxObjCProtocolRefListInfo.java | 2 +- .../llvm/clang/CXInclusionVisitor.java | 2 +- .../java/org/bytedeco/llvm/clang/CXIndex.java | 3 +- .../bytedeco/llvm/clang/CXIndexAction.java | 2 +- .../bytedeco/llvm/clang/CXIndexOptions.java | 102 +++ .../org/bytedeco/llvm/clang/CXModule.java | 2 +- .../llvm/clang/CXModuleMapDescriptor.java | 2 +- .../llvm/clang/CXPlatformAvailability.java | 2 +- .../bytedeco/llvm/clang/CXPrintingPolicy.java | 2 +- .../org/bytedeco/llvm/clang/CXRemapping.java | 2 +- .../bytedeco/llvm/clang/CXSourceLocation.java | 2 +- .../bytedeco/llvm/clang/CXSourceRange.java | 2 +- .../llvm/clang/CXSourceRangeList.java | 2 +- .../org/bytedeco/llvm/clang/CXString.java | 2 +- .../org/bytedeco/llvm/clang/CXStringSet.java | 2 +- .../llvm/clang/CXTUResourceUsage.java | 2 +- .../llvm/clang/CXTUResourceUsageEntry.java | 2 +- .../org/bytedeco/llvm/clang/CXTargetInfo.java | 2 +- .../java/org/bytedeco/llvm/clang/CXToken.java | 2 +- .../llvm/clang/CXTranslationUnit.java | 2 +- .../java/org/bytedeco/llvm/clang/CXType.java | 2 +- .../bytedeco/llvm/clang/CXUnsavedFile.java | 2 +- .../org/bytedeco/llvm/clang/CXVersion.java | 2 +- .../llvm/clang/CXVirtualFileOverlay.java | 2 +- .../org/bytedeco/llvm/clang/Fn_Pointer.java | 2 +- .../bytedeco/llvm/clang/IndexerCallbacks.java | 2 +- .../llvm/clang/_CXChildVisitResult.java | 33 + .../clang/_CXCursorAndRangeVisitorBlock.java | 24 + .../java/org/bytedeco/llvm/global/LLVM.java | 630 ++---------------- .../java/org/bytedeco/llvm/global/clang.java | 309 ++++++++- .../java/org/bytedeco/llvm/presets/LLVM.java | 10 +- .../java/org/bytedeco/llvm/presets/clang.java | 3 +- .../bytedeco/llvm/include/FullOptimization.h | 28 +- onnxruntime/cppbuild.sh | 2 +- onnxruntime/platform/gpu/pom.xml | 2 +- onnxruntime/platform/pom.xml | 2 +- onnxruntime/pom.xml | 4 +- platform/pom.xml | 8 +- tensorflow-lite/README.md | 6 +- tensorflow-lite/cppbuild.sh | 4 +- tensorflow-lite/platform/pom.xml | 2 +- tensorflow-lite/pom.xml | 4 +- tensorflow-lite/samples/pom.xml | 2 +- .../CommonOpaqueConversionUtil.java | 2 +- .../Find_builtin_op_Pointer_int_int.java | 27 +- ...d_builtin_op_external_Pointer_int_int.java | 5 + .../Find_builtin_op_v3_Pointer_int_int.java | 27 + ...ind_custom_op_Pointer_BytePointer_int.java | 3 +- .../Find_custom_op_Pointer_String_int.java | 3 +- ..._custom_op_v3_Pointer_BytePointer_int.java | 21 + .../Find_custom_op_v3_Pointer_String_int.java | 21 + .../tensorflowlite/FlatBufferModel.java | 4 + .../Free_TfLiteOpaqueContext_Pointer.java | 15 +- ..._TfLiteOpaqueContext_BytePointer_long.java | 11 +- .../bytedeco/tensorflowlite/Interpreter.java | 64 +- .../tensorflowlite/InterpreterBuilder.java | 6 +- ..._TfLiteOpaqueContext_TfLiteOpaqueNode.java | 11 +- .../tensorflowlite/NodeSubsetVector.java | 2 + .../bytedeco/tensorflowlite/OpResolver.java | 14 +- .../tensorflowlite/OpResolverInternal.java | 19 + ..._TfLiteOpaqueContext_TfLiteOpaqueNode.java | 11 +- .../RegistrationExternalsCache.java | 39 ++ .../tensorflowlite/SignatureRunner.java | 87 ++- .../tensorflowlite/SignatureRunnerHelper.java | 10 - .../SignatureRunnerJNIHelper.java | 2 +- .../bytedeco/tensorflowlite/StringVector.java | 2 + .../org/bytedeco/tensorflowlite/Subgraph.java | 72 +- .../tensorflowlite/SubgraphVector.java | 2 + .../tensorflowlite/TfLiteArrayDeleter.java | 34 + .../tensorflowlite/TfLiteArrayInfo.java | 32 + .../tensorflowlite/TfLiteContext.java | 39 +- .../TfLiteDelegatePtrVector.java | 2 + .../bytedeco/tensorflowlite/TfLiteModel.java | 4 + .../tensorflowlite/TfLiteOpaqueContext.java | 2 +- .../TfLiteOpaqueDelegateStruct.java | 14 +- .../tensorflowlite/TfLiteOpaqueNode.java | 2 +- .../tensorflowlite/TfLiteOpaqueTensor.java | 2 +- .../TfLiteQuantizationParams.java | 12 +- .../tensorflowlite/TfLiteRegistration.java | 9 +- .../TfLiteRegistrationExternal.java | 10 +- .../tensorflowlite/TfLiteRegistration_V3.java | 90 +++ ...yDeleter.java => TfLiteTensorDeleter.java} | 19 +- .../bytedeco/tensorflowlite/VariantData.java | 88 +++ .../tensorflowlite/global/tensorflowlite.java | 495 ++++++++++---- .../presets/tensorflowlite.java | 10 +- tvm/README.md | 6 +- tvm/cppbuild.sh | 5 +- tvm/platform/gpu/pom.xml | 4 +- tvm/platform/pom.xml | 4 +- tvm/pom.xml | 6 +- tvm/samples/pom.xml | 4 +- tvm/src/gen/java/org/bytedeco/tvm/ADT.java | 5 +- tvm/src/gen/java/org/bytedeco/tvm/ADTObj.java | 2 +- .../gen/java/org/bytedeco/tvm/ADTObjBase.java | 2 +- .../gen/java/org/bytedeco/tvm/ArrayNode.java | 2 +- .../java/org/bytedeco/tvm/ArrayNodeBase.java | 2 +- .../java/org/bytedeco/tvm/ArrayNodePtr.java | 2 +- .../gen/java/org/bytedeco/tvm/Closure.java | 2 +- .../gen/java/org/bytedeco/tvm/ClosureObj.java | 2 +- .../gen/java/org/bytedeco/tvm/Container.java | 2 +- .../java/org/bytedeco/tvm/ContainerBase.java | 2 +- .../gen/java/org/bytedeco/tvm/DLDataType.java | 2 +- .../gen/java/org/bytedeco/tvm/DLDevice.java | 2 +- .../org/bytedeco/tvm/DLManagedTensor.java | 2 +- .../gen/java/org/bytedeco/tvm/DLTensor.java | 2 +- .../gen/java/org/bytedeco/tvm/DataType.java | 21 +- .../java/org/bytedeco/tvm/DenseMapNode.java | 2 +- tvm/src/gen/java/org/bytedeco/tvm/Error.java | 2 +- tvm/src/gen/java/org/bytedeco/tvm/FSig.java | 2 +- .../gen/java/org/bytedeco/tvm/FileInfo.java | 2 +- .../gen/java/org/bytedeco/tvm/FileSystem.java | 2 +- .../gen/java/org/bytedeco/tvm/Handler.java | 2 +- .../gen/java/org/bytedeco/tvm/InputSplit.java | 2 +- .../gen/java/org/bytedeco/tvm/MapNode.java | 2 +- .../gen/java/org/bytedeco/tvm/MapNodePtr.java | 2 +- tvm/src/gen/java/org/bytedeco/tvm/Module.java | 14 +- .../gen/java/org/bytedeco/tvm/ModuleNode.java | 26 +- .../gen/java/org/bytedeco/tvm/NDArray.java | 2 +- .../java/org/bytedeco/tvm/NullOptType.java | 2 +- .../java/org/bytedeco/tvm/ObjectEqual.java | 2 +- .../gen/java/org/bytedeco/tvm/ObjectHash.java | 2 +- .../gen/java/org/bytedeco/tvm/ObjectPtr.java | 2 +- .../java/org/bytedeco/tvm/ObjectPtrEqual.java | 2 +- .../java/org/bytedeco/tvm/ObjectPtrHash.java | 2 +- .../gen/java/org/bytedeco/tvm/ObjectRef.java | 30 +- .../gen/java/org/bytedeco/tvm/PackedFunc.java | 2 +- .../java/org/bytedeco/tvm/PackedFuncObj.java | 2 +- .../tvm/PackedFuncValueConverter.java | 2 +- .../gen/java/org/bytedeco/tvm/Registry.java | 16 +- .../gen/java/org/bytedeco/tvm/SeekStream.java | 2 +- .../java/org/bytedeco/tvm/Serializable.java | 2 +- .../gen/java/org/bytedeco/tvm/ShapeTuple.java | 2 +- .../java/org/bytedeco/tvm/ShapeTupleObj.java | 2 +- .../org/bytedeco/tvm/SimpleObjAllocator.java | 2 +- .../bytedeco/tvm/SimpleObjAllocatorBase.java | 2 +- .../java/org/bytedeco/tvm/SmallMapNode.java | 2 +- .../org/bytedeco/tvm/SmallMapNodeBase.java | 2 +- tvm/src/gen/java/org/bytedeco/tvm/Stream.java | 2 +- .../gen/java/org/bytedeco/tvm/StringObj.java | 2 +- .../java/org/bytedeco/tvm/StringVector.java | 4 +- .../java/org/bytedeco/tvm/TVMArgValue.java | 2 +- .../gen/java/org/bytedeco/tvm/TVMArgs.java | 2 +- .../java/org/bytedeco/tvm/TVMArgsSetter.java | 2 +- .../java/org/bytedeco/tvm/TVMByteArray.java | 2 +- .../tvm/TVMExtensionFuncDeclarer.java | 2 +- .../org/bytedeco/tvm/TVMFunctionHandle.java | 2 +- .../org/bytedeco/tvm/TVMModuleHandle.java | 2 +- .../org/bytedeco/tvm/TVMMovableArgValue_.java | 2 +- .../gen/java/org/bytedeco/tvm/TVMObject.java | 2 +- .../org/bytedeco/tvm/TVMObjectHandle.java | 2 +- .../java/org/bytedeco/tvm/TVMPODValue_.java | 2 +- .../java/org/bytedeco/tvm/TVMPackedCFunc.java | 2 +- .../bytedeco/tvm/TVMPackedCFuncFinalizer.java | 2 +- .../java/org/bytedeco/tvm/TVMRetValue.java | 2 +- .../org/bytedeco/tvm/TVMRetValueHandle.java | 2 +- .../org/bytedeco/tvm/TVMStreamHandle.java | 2 +- .../gen/java/org/bytedeco/tvm/TVMString.java | 2 +- .../org/bytedeco/tvm/TVMStringOptional.java | 2 +- .../gen/java/org/bytedeco/tvm/TVMValue.java | 2 +- .../gen/java/org/bytedeco/tvm/Type2Str.java | 2 +- .../gen/java/org/bytedeco/tvm/TypeIndex.java | 2 +- tvm/src/gen/java/org/bytedeco/tvm/URI.java | 2 +- .../org/bytedeco/tvm/global/tvm_runtime.java | 15 +- .../org/bytedeco/tvm/is_floating_point.java | 2 +- .../java/org/bytedeco/tvm/is_integral.java | 2 +- tvm/src/gen/java/org/bytedeco/tvm/is_pod.java | 2 +- .../gen/java/org/bytedeco/tvm/istream.java | 2 +- .../gen/java/org/bytedeco/tvm/ostream.java | 2 +- .../org/bytedeco/tvm/type_name_helper.java | 2 +- .../tvm/typed_packed_call_dispatcher.java | 2 +- 416 files changed, 2471 insertions(+), 1461 deletions(-) delete mode 100644 llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMPassManagerBuilderRef.java delete mode 100644 llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMPassRegistryRef.java delete mode 100644 llvm/src/gen/java/org/bytedeco/llvm/LLVM/MustPreserve_LLVMValueRef_Pointer.java create mode 100644 llvm/src/gen/java/org/bytedeco/llvm/clang/CXIndexOptions.java create mode 100644 llvm/src/gen/java/org/bytedeco/llvm/clang/_CXChildVisitResult.java create mode 100644 llvm/src/gen/java/org/bytedeco/llvm/clang/_CXCursorAndRangeVisitorBlock.java create mode 100644 tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/Find_builtin_op_v3_Pointer_int_int.java create mode 100644 tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/Find_custom_op_v3_Pointer_BytePointer_int.java create mode 100644 tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/Find_custom_op_v3_Pointer_String_int.java create mode 100644 tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/OpResolverInternal.java create mode 100644 tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/RegistrationExternalsCache.java create mode 100644 tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/TfLiteArrayDeleter.java create mode 100644 tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/TfLiteArrayInfo.java create mode 100644 tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/TfLiteRegistration_V3.java rename tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/{TfLiteIntArrayDeleter.java => TfLiteTensorDeleter.java} (52%) create mode 100644 tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/VariantData.java diff --git a/.github/actions/deploy-ubuntu/action.yml b/.github/actions/deploy-ubuntu/action.yml index acc4b82ddaf..dbc5b85093f 100644 --- a/.github/actions/deploy-ubuntu/action.yml +++ b/.github/actions/deploy-ubuntu/action.yml @@ -68,6 +68,12 @@ runs: $SUDO apt-add-repository -y ppa:ondrej/php $SUDO apt-get -y install ppa-purge $SUDO ppa-purge -y ppa:ondrej/php + + # https://github.com/actions/runner-images/issues/675 + $SUDO gem install apt-spy2 + $SUDO apt-spy2 check + $SUDO apt-spy2 fix --commit + $SUDO apt-get update fi if [[ "$ARCH" == "i386" ]]; then diff --git a/CHANGELOG.md b/CHANGELOG.md index b60cda84e25..5fe524c26c9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,7 +3,7 @@ * Refactor and improve presets for PyTorch ([pull #1360](https://github.com/bytedeco/javacpp-presets/pull/1360)) * Include `mkl_lapack.h` header file in presets for MKL ([issue #1388](https://github.com/bytedeco/javacpp-presets/issues/1388)) * Map new higher-level C++ API of Triton Inference Server ([pull #1361](https://github.com/bytedeco/javacpp-presets/pull/1361)) - * Upgrade presets for OpenCV 4.8.0, DNNL 3.1.1, CPython 3.11.4, NumPy 1.25.1, SciPy 1.11.1, LLVM 16.0.6, TensorFlow Lite 2.13.0, Triton Inference Server 2.34.0, ONNX Runtime 1.15.1, and their dependencies + * Upgrade presets for OpenCV 4.8.0, DNNL 3.2.1, CPython 3.11.4, NumPy 1.25.1, SciPy 1.11.1, LLVM 17.0.0, TensorFlow Lite 2.14.0, Triton Inference Server 2.34.0, ONNX Runtime 1.15.1, TVM 0.13.0, and their dependencies ### June 6, 2023 version 1.5.9 * Virtualize `nvinfer1::IGpuAllocator` from TensorRT to allow customization ([pull #1367](https://github.com/bytedeco/javacpp-presets/pull/1367)) diff --git a/README.md b/README.md index 18fd0479dca..1f78efca2ca 100644 --- a/README.md +++ b/README.md @@ -198,7 +198,7 @@ Each child module in turn relies by default on the included [`cppbuild.sh` scrip * LZ4 1.9.x https://github.com/lz4/lz4 * MKL 2023.x https://software.intel.com/mkl * MKL-DNN 0.21.x https://github.com/oneapi-src/oneDNN - * DNNL 3.1.x https://github.com/oneapi-src/oneDNN + * DNNL 3.2.x https://github.com/oneapi-src/oneDNN * OpenBLAS 0.3.23 http://www.openblas.net/ * ARPACK-NG 3.9.0 https://github.com/opencollab/arpack-ng * CMINPACK 1.3.8 https://github.com/devernay/cminpack @@ -208,7 +208,7 @@ Each child module in turn relies by default on the included [`cppbuild.sh` scrip * NumPy 1.25.x https://github.com/numpy/numpy * SciPy 1.11.x https://github.com/scipy/scipy * Gym 0.26.x https://github.com/openai/gym - * LLVM 16.0.x http://llvm.org/releases/download.html + * LLVM 17.0.x http://llvm.org/releases/download.html * libffi 3.4.x https://github.com/libffi/libffi * libpostal 1.1 https://github.com/openvenues/libpostal * LibRaw 0.21.x https://www.libraw.org/download @@ -225,7 +225,7 @@ Each child module in turn relies by default on the included [`cppbuild.sh` scrip * PyTorch 2.0.x https://github.com/pytorch/pytorch * SentencePiece 0.1.99 https://github.com/google/sentencepiece * TensorFlow 1.15.x https://github.com/tensorflow/tensorflow - * TensorFlow Lite 2.13.x https://github.com/tensorflow/tensorflow + * TensorFlow Lite 2.14.x https://github.com/tensorflow/tensorflow * TensorRT 8.6.x https://developer.nvidia.com/tensorrt * Triton Inference Server 2.34.x https://developer.nvidia.com/nvidia-triton-inference-server * The Arcade Learning Environment 0.8.x https://github.com/mgbellemare/Arcade-Learning-Environment @@ -233,7 +233,7 @@ Each child module in turn relies by default on the included [`cppbuild.sh` scrip * ONNX 1.14.x https://github.com/onnx/onnx * nGraph 0.26.0 https://github.com/NervanaSystems/ngraph * ONNX Runtime 1.15.x https://github.com/microsoft/onnxruntime - * TVM 0.12.x https://github.com/apache/tvm + * TVM 0.13.x https://github.com/apache/tvm * Bullet Physics SDK 3.25 https://pybullet.org * LiquidFun http://google.github.io/liquidfun/ * Qt 5.15.x https://download.qt.io/archive/qt/ diff --git a/dnnl/README.md b/dnnl/README.md index 51cf0950181..de0c6df56c4 100644 --- a/dnnl/README.md +++ b/dnnl/README.md @@ -9,7 +9,7 @@ Introduction ------------ This directory contains the JavaCPP Presets module for: - * DNNL 3.1.1 https://01.org/dnnl + * DNNL 3.2.1 https://01.org/dnnl Please refer to the parent README.md file for more detailed information about the JavaCPP Presets. @@ -25,7 +25,7 @@ Sample Usage ------------ Here is a simple example of DNNL ported to Java from this C++ source file: - * https://github.com/oneapi-src/oneDNN/blob/v3.1.1/examples/cnn_inference_int8.cpp + * https://github.com/oneapi-src/oneDNN/blob/v3.2.1/examples/cnn_inference_int8.cpp We can use [Maven 3](http://maven.apache.org/) to download and install automatically all the class files as well as the native binaries. To run this sample code, after creating the `pom.xml` and `CpuCnnInferenceInt8.java` source files below, simply execute on the command line: ```bash @@ -46,7 +46,7 @@ We can use [Maven 3](http://maven.apache.org/) to download and install automatic org.bytedeco dnnl-platform - 3.1.1-1.5.10-SNAPSHOT + 3.2.1-1.5.10-SNAPSHOT diff --git a/dnnl/cppbuild.sh b/dnnl/cppbuild.sh index 5df212c3a79..9d2629df1ae 100755 --- a/dnnl/cppbuild.sh +++ b/dnnl/cppbuild.sh @@ -11,7 +11,7 @@ export DNNL_CPU_RUNTIME="OMP" # or TBB export DNNL_GPU_RUNTIME="OCL" TBB_VERSION=2020.3 -MKLDNN_VERSION=3.1.1 +MKLDNN_VERSION=3.2.1 download https://github.com/oneapi-src/oneTBB/archive/v$TBB_VERSION.tar.gz oneTBB-$TBB_VERSION.tar.bz2 download https://github.com/oneapi-src/oneDNN/archive/v$MKLDNN_VERSION.tar.gz oneDNN-$MKLDNN_VERSION.tar.bz2 diff --git a/dnnl/platform/pom.xml b/dnnl/platform/pom.xml index 76c7b97a1ac..377cd342ca0 100644 --- a/dnnl/platform/pom.xml +++ b/dnnl/platform/pom.xml @@ -12,7 +12,7 @@ org.bytedeco dnnl-platform - 3.1.1-${project.parent.version} + 3.2.1-${project.parent.version} JavaCPP Presets Platform for DNNL diff --git a/dnnl/pom.xml b/dnnl/pom.xml index 0f3ef5b6c42..df808fa4a0a 100644 --- a/dnnl/pom.xml +++ b/dnnl/pom.xml @@ -11,7 +11,7 @@ org.bytedeco dnnl - 3.1.1-${project.parent.version} + 3.2.1-${project.parent.version} JavaCPP Presets for DNNL diff --git a/dnnl/samples/pom.xml b/dnnl/samples/pom.xml index c36f20d3c7e..184087f0ab0 100644 --- a/dnnl/samples/pom.xml +++ b/dnnl/samples/pom.xml @@ -12,7 +12,7 @@ org.bytedeco dnnl-platform - 3.1.1-1.5.10-SNAPSHOT + 3.2.1-1.5.10-SNAPSHOT diff --git a/dnnl/src/gen/java/org/bytedeco/dnnl/IntMemoryMap.java b/dnnl/src/gen/java/org/bytedeco/dnnl/IntMemoryMap.java index cded4bda7b2..e6cccaf4935 100644 --- a/dnnl/src/gen/java/org/bytedeco/dnnl/IntMemoryMap.java +++ b/dnnl/src/gen/java/org/bytedeco/dnnl/IntMemoryMap.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.dnnl; diff --git a/dnnl/src/gen/java/org/bytedeco/dnnl/augru_backward.java b/dnnl/src/gen/java/org/bytedeco/dnnl/augru_backward.java index 217d3331a08..fcb836e529b 100644 --- a/dnnl/src/gen/java/org/bytedeco/dnnl/augru_backward.java +++ b/dnnl/src/gen/java/org/bytedeco/dnnl/augru_backward.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.dnnl; diff --git a/dnnl/src/gen/java/org/bytedeco/dnnl/augru_forward.java b/dnnl/src/gen/java/org/bytedeco/dnnl/augru_forward.java index 0c4eb7e1709..65f7dcdbd88 100644 --- a/dnnl/src/gen/java/org/bytedeco/dnnl/augru_forward.java +++ b/dnnl/src/gen/java/org/bytedeco/dnnl/augru_forward.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.dnnl; diff --git a/dnnl/src/gen/java/org/bytedeco/dnnl/batch_normalization_backward.java b/dnnl/src/gen/java/org/bytedeco/dnnl/batch_normalization_backward.java index a5d958a6446..ea61ccf53b5 100644 --- a/dnnl/src/gen/java/org/bytedeco/dnnl/batch_normalization_backward.java +++ b/dnnl/src/gen/java/org/bytedeco/dnnl/batch_normalization_backward.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.dnnl; diff --git a/dnnl/src/gen/java/org/bytedeco/dnnl/batch_normalization_forward.java b/dnnl/src/gen/java/org/bytedeco/dnnl/batch_normalization_forward.java index a2d21068a09..6c51f00f9ac 100644 --- a/dnnl/src/gen/java/org/bytedeco/dnnl/batch_normalization_forward.java +++ b/dnnl/src/gen/java/org/bytedeco/dnnl/batch_normalization_forward.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.dnnl; diff --git a/dnnl/src/gen/java/org/bytedeco/dnnl/binary.java b/dnnl/src/gen/java/org/bytedeco/dnnl/binary.java index 29bedbdb44d..616e54e6789 100644 --- a/dnnl/src/gen/java/org/bytedeco/dnnl/binary.java +++ b/dnnl/src/gen/java/org/bytedeco/dnnl/binary.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.dnnl; diff --git a/dnnl/src/gen/java/org/bytedeco/dnnl/concat.java b/dnnl/src/gen/java/org/bytedeco/dnnl/concat.java index a6fdc72e03c..ed17edad8ae 100644 --- a/dnnl/src/gen/java/org/bytedeco/dnnl/concat.java +++ b/dnnl/src/gen/java/org/bytedeco/dnnl/concat.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.dnnl; diff --git a/dnnl/src/gen/java/org/bytedeco/dnnl/convolution_backward_data.java b/dnnl/src/gen/java/org/bytedeco/dnnl/convolution_backward_data.java index 2c7e517c9ab..c90176744ba 100644 --- a/dnnl/src/gen/java/org/bytedeco/dnnl/convolution_backward_data.java +++ b/dnnl/src/gen/java/org/bytedeco/dnnl/convolution_backward_data.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.dnnl; diff --git a/dnnl/src/gen/java/org/bytedeco/dnnl/convolution_backward_weights.java b/dnnl/src/gen/java/org/bytedeco/dnnl/convolution_backward_weights.java index 7fe29b6c801..9d70db58ecb 100644 --- a/dnnl/src/gen/java/org/bytedeco/dnnl/convolution_backward_weights.java +++ b/dnnl/src/gen/java/org/bytedeco/dnnl/convolution_backward_weights.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.dnnl; diff --git a/dnnl/src/gen/java/org/bytedeco/dnnl/convolution_forward.java b/dnnl/src/gen/java/org/bytedeco/dnnl/convolution_forward.java index 3efdeca602b..e0a914ae2c8 100644 --- a/dnnl/src/gen/java/org/bytedeco/dnnl/convolution_forward.java +++ b/dnnl/src/gen/java/org/bytedeco/dnnl/convolution_forward.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.dnnl; diff --git a/dnnl/src/gen/java/org/bytedeco/dnnl/deconvolution_backward_data.java b/dnnl/src/gen/java/org/bytedeco/dnnl/deconvolution_backward_data.java index 5b0b7526cbe..cb52264a931 100644 --- a/dnnl/src/gen/java/org/bytedeco/dnnl/deconvolution_backward_data.java +++ b/dnnl/src/gen/java/org/bytedeco/dnnl/deconvolution_backward_data.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.dnnl; diff --git a/dnnl/src/gen/java/org/bytedeco/dnnl/deconvolution_backward_weights.java b/dnnl/src/gen/java/org/bytedeco/dnnl/deconvolution_backward_weights.java index 7812470d7f1..3038732823d 100644 --- a/dnnl/src/gen/java/org/bytedeco/dnnl/deconvolution_backward_weights.java +++ b/dnnl/src/gen/java/org/bytedeco/dnnl/deconvolution_backward_weights.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.dnnl; diff --git a/dnnl/src/gen/java/org/bytedeco/dnnl/deconvolution_forward.java b/dnnl/src/gen/java/org/bytedeco/dnnl/deconvolution_forward.java index c0f0d79c2a1..2e3f980f306 100644 --- a/dnnl/src/gen/java/org/bytedeco/dnnl/deconvolution_forward.java +++ b/dnnl/src/gen/java/org/bytedeco/dnnl/deconvolution_forward.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.dnnl; diff --git a/dnnl/src/gen/java/org/bytedeco/dnnl/dnnl_engine.java b/dnnl/src/gen/java/org/bytedeco/dnnl/dnnl_engine.java index c657c583be3..cec3273d8cb 100644 --- a/dnnl/src/gen/java/org/bytedeco/dnnl/dnnl_engine.java +++ b/dnnl/src/gen/java/org/bytedeco/dnnl/dnnl_engine.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.dnnl; diff --git a/dnnl/src/gen/java/org/bytedeco/dnnl/dnnl_engine_handle.java b/dnnl/src/gen/java/org/bytedeco/dnnl/dnnl_engine_handle.java index 5ba8f435ec3..fd4f156035d 100644 --- a/dnnl/src/gen/java/org/bytedeco/dnnl/dnnl_engine_handle.java +++ b/dnnl/src/gen/java/org/bytedeco/dnnl/dnnl_engine_handle.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.dnnl; diff --git a/dnnl/src/gen/java/org/bytedeco/dnnl/dnnl_exec_arg_t.java b/dnnl/src/gen/java/org/bytedeco/dnnl/dnnl_exec_arg_t.java index b5fe20a60e2..231e701cf18 100644 --- a/dnnl/src/gen/java/org/bytedeco/dnnl/dnnl_exec_arg_t.java +++ b/dnnl/src/gen/java/org/bytedeco/dnnl/dnnl_exec_arg_t.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.dnnl; diff --git a/dnnl/src/gen/java/org/bytedeco/dnnl/dnnl_memory.java b/dnnl/src/gen/java/org/bytedeco/dnnl/dnnl_memory.java index c1e959ef6ab..7940b83999b 100644 --- a/dnnl/src/gen/java/org/bytedeco/dnnl/dnnl_memory.java +++ b/dnnl/src/gen/java/org/bytedeco/dnnl/dnnl_memory.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.dnnl; diff --git a/dnnl/src/gen/java/org/bytedeco/dnnl/dnnl_memory_desc.java b/dnnl/src/gen/java/org/bytedeco/dnnl/dnnl_memory_desc.java index c2b66802b82..b4364ec6a53 100644 --- a/dnnl/src/gen/java/org/bytedeco/dnnl/dnnl_memory_desc.java +++ b/dnnl/src/gen/java/org/bytedeco/dnnl/dnnl_memory_desc.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.dnnl; diff --git a/dnnl/src/gen/java/org/bytedeco/dnnl/dnnl_memory_desc_handle.java b/dnnl/src/gen/java/org/bytedeco/dnnl/dnnl_memory_desc_handle.java index f150a33df76..a2b7258b982 100644 --- a/dnnl/src/gen/java/org/bytedeco/dnnl/dnnl_memory_desc_handle.java +++ b/dnnl/src/gen/java/org/bytedeco/dnnl/dnnl_memory_desc_handle.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.dnnl; diff --git a/dnnl/src/gen/java/org/bytedeco/dnnl/dnnl_memory_desc_vector.java b/dnnl/src/gen/java/org/bytedeco/dnnl/dnnl_memory_desc_vector.java index 6b29ebf3734..b718a19cc53 100644 --- a/dnnl/src/gen/java/org/bytedeco/dnnl/dnnl_memory_desc_vector.java +++ b/dnnl/src/gen/java/org/bytedeco/dnnl/dnnl_memory_desc_vector.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.dnnl; @@ -30,6 +30,8 @@ public class dnnl_memory_desc_vector extends Pointer { public void clear() { resize(0); } public native void resize(@Cast("size_t") long n); + public dnnl_memory_desc front() { return get(0); } + public dnnl_memory_desc back() { return get(size() - 1); } @Index(function = "at") public native dnnl_memory_desc get(@Cast("size_t") long i); public native dnnl_memory_desc_vector put(@Cast("size_t") long i, dnnl_memory_desc value); diff --git a/dnnl/src/gen/java/org/bytedeco/dnnl/dnnl_memory_handle.java b/dnnl/src/gen/java/org/bytedeco/dnnl/dnnl_memory_handle.java index d4516c81836..b1f2b12f65a 100644 --- a/dnnl/src/gen/java/org/bytedeco/dnnl/dnnl_memory_handle.java +++ b/dnnl/src/gen/java/org/bytedeco/dnnl/dnnl_memory_handle.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.dnnl; diff --git a/dnnl/src/gen/java/org/bytedeco/dnnl/dnnl_post_ops.java b/dnnl/src/gen/java/org/bytedeco/dnnl/dnnl_post_ops.java index 7300ce038b0..8c4a34aa2ca 100644 --- a/dnnl/src/gen/java/org/bytedeco/dnnl/dnnl_post_ops.java +++ b/dnnl/src/gen/java/org/bytedeco/dnnl/dnnl_post_ops.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.dnnl; diff --git a/dnnl/src/gen/java/org/bytedeco/dnnl/dnnl_post_ops_handle.java b/dnnl/src/gen/java/org/bytedeco/dnnl/dnnl_post_ops_handle.java index f2cab77834e..c61e6272bd3 100644 --- a/dnnl/src/gen/java/org/bytedeco/dnnl/dnnl_post_ops_handle.java +++ b/dnnl/src/gen/java/org/bytedeco/dnnl/dnnl_post_ops_handle.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.dnnl; diff --git a/dnnl/src/gen/java/org/bytedeco/dnnl/dnnl_primitive.java b/dnnl/src/gen/java/org/bytedeco/dnnl/dnnl_primitive.java index 7ac0b8af49d..ec772275f46 100644 --- a/dnnl/src/gen/java/org/bytedeco/dnnl/dnnl_primitive.java +++ b/dnnl/src/gen/java/org/bytedeco/dnnl/dnnl_primitive.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.dnnl; diff --git a/dnnl/src/gen/java/org/bytedeco/dnnl/dnnl_primitive_attr.java b/dnnl/src/gen/java/org/bytedeco/dnnl/dnnl_primitive_attr.java index 1db4db5aa5b..0aeb35cc9dc 100644 --- a/dnnl/src/gen/java/org/bytedeco/dnnl/dnnl_primitive_attr.java +++ b/dnnl/src/gen/java/org/bytedeco/dnnl/dnnl_primitive_attr.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.dnnl; diff --git a/dnnl/src/gen/java/org/bytedeco/dnnl/dnnl_primitive_attr_handle.java b/dnnl/src/gen/java/org/bytedeco/dnnl/dnnl_primitive_attr_handle.java index 7bc58d04de2..6b6ffc93fb0 100644 --- a/dnnl/src/gen/java/org/bytedeco/dnnl/dnnl_primitive_attr_handle.java +++ b/dnnl/src/gen/java/org/bytedeco/dnnl/dnnl_primitive_attr_handle.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.dnnl; diff --git a/dnnl/src/gen/java/org/bytedeco/dnnl/dnnl_primitive_desc.java b/dnnl/src/gen/java/org/bytedeco/dnnl/dnnl_primitive_desc.java index 17d61ea8a30..2efdbf0b977 100644 --- a/dnnl/src/gen/java/org/bytedeco/dnnl/dnnl_primitive_desc.java +++ b/dnnl/src/gen/java/org/bytedeco/dnnl/dnnl_primitive_desc.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.dnnl; diff --git a/dnnl/src/gen/java/org/bytedeco/dnnl/dnnl_primitive_desc_handle.java b/dnnl/src/gen/java/org/bytedeco/dnnl/dnnl_primitive_desc_handle.java index 58a44652623..bef9e08cb82 100644 --- a/dnnl/src/gen/java/org/bytedeco/dnnl/dnnl_primitive_desc_handle.java +++ b/dnnl/src/gen/java/org/bytedeco/dnnl/dnnl_primitive_desc_handle.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.dnnl; diff --git a/dnnl/src/gen/java/org/bytedeco/dnnl/dnnl_primitive_desc_vector.java b/dnnl/src/gen/java/org/bytedeco/dnnl/dnnl_primitive_desc_vector.java index 61c2b3c7cf3..bf73b21dcb3 100644 --- a/dnnl/src/gen/java/org/bytedeco/dnnl/dnnl_primitive_desc_vector.java +++ b/dnnl/src/gen/java/org/bytedeco/dnnl/dnnl_primitive_desc_vector.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.dnnl; @@ -30,6 +30,8 @@ public class dnnl_primitive_desc_vector extends Pointer { public void clear() { resize(0); } public native void resize(@Cast("size_t") long n); + public dnnl_primitive_desc front() { return get(0); } + public dnnl_primitive_desc back() { return get(size() - 1); } @Index(function = "at") public native dnnl_primitive_desc get(@Cast("size_t") long i); public native dnnl_primitive_desc_vector put(@Cast("size_t") long i, dnnl_primitive_desc value); diff --git a/dnnl/src/gen/java/org/bytedeco/dnnl/dnnl_primitive_handle.java b/dnnl/src/gen/java/org/bytedeco/dnnl/dnnl_primitive_handle.java index 3e10685d2dd..bb9e16af288 100644 --- a/dnnl/src/gen/java/org/bytedeco/dnnl/dnnl_primitive_handle.java +++ b/dnnl/src/gen/java/org/bytedeco/dnnl/dnnl_primitive_handle.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.dnnl; diff --git a/dnnl/src/gen/java/org/bytedeco/dnnl/dnnl_stream.java b/dnnl/src/gen/java/org/bytedeco/dnnl/dnnl_stream.java index 2a018026fa9..e39af55f0ab 100644 --- a/dnnl/src/gen/java/org/bytedeco/dnnl/dnnl_stream.java +++ b/dnnl/src/gen/java/org/bytedeco/dnnl/dnnl_stream.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.dnnl; diff --git a/dnnl/src/gen/java/org/bytedeco/dnnl/dnnl_stream_handle.java b/dnnl/src/gen/java/org/bytedeco/dnnl/dnnl_stream_handle.java index 63e17570af7..400b4750685 100644 --- a/dnnl/src/gen/java/org/bytedeco/dnnl/dnnl_stream_handle.java +++ b/dnnl/src/gen/java/org/bytedeco/dnnl/dnnl_stream_handle.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.dnnl; diff --git a/dnnl/src/gen/java/org/bytedeco/dnnl/dnnl_version_t.java b/dnnl/src/gen/java/org/bytedeco/dnnl/dnnl_version_t.java index 7e907efc90f..eb820258b04 100644 --- a/dnnl/src/gen/java/org/bytedeco/dnnl/dnnl_version_t.java +++ b/dnnl/src/gen/java/org/bytedeco/dnnl/dnnl_version_t.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.dnnl; @@ -13,7 +13,12 @@ import static org.bytedeco.dnnl.global.dnnl.*; -/** Structure containing version information as per [Semantic +/** \} dnnl_api_stream +

+ * \addtogroup dnnl_api_service + * \{ +

+ * Structure containing version information as per [Semantic * Versioning](https://semver.org) */ @Properties(inherit = org.bytedeco.dnnl.presets.dnnl.class) public class dnnl_version_t extends Pointer { diff --git a/dnnl/src/gen/java/org/bytedeco/dnnl/eltwise_backward.java b/dnnl/src/gen/java/org/bytedeco/dnnl/eltwise_backward.java index 9ee99cce015..b7ffa7b0092 100644 --- a/dnnl/src/gen/java/org/bytedeco/dnnl/eltwise_backward.java +++ b/dnnl/src/gen/java/org/bytedeco/dnnl/eltwise_backward.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.dnnl; diff --git a/dnnl/src/gen/java/org/bytedeco/dnnl/eltwise_forward.java b/dnnl/src/gen/java/org/bytedeco/dnnl/eltwise_forward.java index 90f7f95e6f7..0a228d56300 100644 --- a/dnnl/src/gen/java/org/bytedeco/dnnl/eltwise_forward.java +++ b/dnnl/src/gen/java/org/bytedeco/dnnl/eltwise_forward.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.dnnl; diff --git a/dnnl/src/gen/java/org/bytedeco/dnnl/engine.java b/dnnl/src/gen/java/org/bytedeco/dnnl/engine.java index 2ee46dbc998..0d27739c385 100644 --- a/dnnl/src/gen/java/org/bytedeco/dnnl/engine.java +++ b/dnnl/src/gen/java/org/bytedeco/dnnl/engine.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.dnnl; diff --git a/dnnl/src/gen/java/org/bytedeco/dnnl/error.java b/dnnl/src/gen/java/org/bytedeco/dnnl/error.java index 645a5d0095f..f34747510a3 100644 --- a/dnnl/src/gen/java/org/bytedeco/dnnl/error.java +++ b/dnnl/src/gen/java/org/bytedeco/dnnl/error.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.dnnl; diff --git a/dnnl/src/gen/java/org/bytedeco/dnnl/global/dnnl.java b/dnnl/src/gen/java/org/bytedeco/dnnl/global/dnnl.java index ad5d1905a2c..5313d549e93 100644 --- a/dnnl/src/gen/java/org/bytedeco/dnnl/global/dnnl.java +++ b/dnnl/src/gen/java/org/bytedeco/dnnl/global/dnnl.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.dnnl.global; @@ -33,7 +33,7 @@ public class dnnl extends org.bytedeco.dnnl.presets.dnnl { // Parsed from oneapi/dnnl/dnnl_common_types.h /******************************************************************************* -* Copyright 2022 Intel Corporation +* Copyright 2022-2023 Intel Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -60,6 +60,9 @@ public class dnnl extends org.bytedeco.dnnl.presets.dnnl { /** \cond DO_NOT_DOCUMENT_THIS */ // #include // #include + +// #include "oneapi/dnnl/dnnl_config.h" + /** \endcond

* \addtogroup dnnl_api oneDNN API @@ -121,6 +124,8 @@ public class dnnl extends org.bytedeco.dnnl.presets.dnnl { dnnl_u8 = 6, /** 64-bit/double-precision floating point. */ dnnl_f64 = 7, + /** Boolean data type. Size is C++ implementation defined. */ + dnnl_boolean = 8, /** Parameter to allow internal only data_types without undefined behavior. * This parameter is chosen to be valid for so long as sizeof(int) >= 2. */ @@ -149,7 +154,7 @@ public class dnnl extends org.bytedeco.dnnl.presets.dnnl { dnnl_fpmath_mode_bf16 = 1, /** Implicit f32->f16 conversions allowed */ dnnl_fpmath_mode_f16 = 2, - /** Implicit f32->f16 or f32->bf16 conversions allowed */ + /** Implicit f32->f16, f32->tf32 or f32->bf16 conversions allowed */ dnnl_fpmath_mode_any = 3, /** Implicit f32->tf32 conversions allowed */ dnnl_fpmath_mode_tf32 = 4; @@ -189,40 +194,13 @@ public class dnnl extends org.bytedeco.dnnl.presets.dnnl { dnnl_stream_out_of_order = 0x2, /** Default stream configuration. */ dnnl_stream_default_flags = dnnl_stream_in_order; +// #ifdef DNNL_EXPERIMENTAL_PROFILING +// #endif // Targeting ../dnnl_stream.java /** An execution stream handle. */ /** A constant execution stream handle. */ - -/** \} dnnl_api_stream -

- * \addtogroup dnnl_api_service - * \{ -

- * No runtime (disabled) */ -public static final int DNNL_RUNTIME_NONE = 0; - -/** Sequential runtime (CPU only) */ -public static final int DNNL_RUNTIME_SEQ = 1; - -/** OpenMP runtime (CPU only) */ -public static final int DNNL_RUNTIME_OMP = 2; - -/** TBB runtime (CPU only) */ -public static final int DNNL_RUNTIME_TBB = 4; - -/** Threadpool runtime (CPU only) */ -public static final int DNNL_RUNTIME_THREADPOOL = 8; - -/** OpenCL runtime */ -public static final int DNNL_RUNTIME_OCL = 256; - -/** SYCL runtime */ -public static final int DNNL_RUNTIME_SYCL = 512; - -/** DPC++ runtime */ -public static final int DNNL_RUNTIME_DPCPP = DNNL_RUNTIME_SYCL; // Targeting ../dnnl_version_t.java @@ -304,6 +282,10 @@ public class dnnl extends org.bytedeco.dnnl.presets.dnnl { // #ifdef DNNL_EXPERIMENTAL_SPARSE // #endif +// #ifdef DNNL_EXPERIMENTAL_PROFILING + +// #endif + /** Memory format tag specification. * * oneDNN formats describe physical data layout. The physical layout @@ -1166,10 +1148,70 @@ public class dnnl extends org.bytedeco.dnnl.presets.dnnl { dnnl_ABcd4b24a4b = 699, dnnl_ABcde4b8a4b = 700, dnnl_ABcde4b24a4b = 701, + dnnl_AB8b24a2b = 702, + dnnl_ABc8b24a2b = 703, + dnnl_ABcd8b24a2b = 704, + dnnl_ABcde8b24a2b = 705, + dnnl_AB8b8a2b = 706, + dnnl_ABc8b8a2b = 707, + dnnl_ABcd8b8a2b = 708, + dnnl_ABcde8b8a2b = 709, + dnnl_AcB24a4b = 710, + dnnl_AcdB24a4b = 711, + dnnl_AcdeB24a4b = 712, + dnnl_aBdC24b4c = 713, + dnnl_aBdeC24b4c = 714, + dnnl_aBdefC24b4c = 715, + dnnl_AcB8a4b = 716, + dnnl_AcdB8a4b = 717, + dnnl_AcdeB8a4b = 718, + dnnl_aBdC8b4c = 719, + dnnl_aBdeC8b4c = 720, + dnnl_aBdefC8b4c = 721, + dnnl_Bca8b = 722, + dnnl_BcA8b2a = 723, + dnnl_Bcda8b = 724, + dnnl_BcdA8b2a = 725, + dnnl_Bcdea8b = 726, + dnnl_BcdeA8b2a = 727, + dnnl_aCdb8c = 728, + dnnl_aCdB8c2b = 729, + dnnl_aCdeb8c = 730, + dnnl_aCdeB8c2b = 731, + dnnl_aCdefb8c = 732, + dnnl_aCdefB8c2b = 733, + dnnl_Bca24b = 734, + dnnl_BcA24b2a = 735, + dnnl_Bcda24b = 736, + dnnl_BcdA24b2a = 737, + dnnl_Bcdea24b = 738, + dnnl_BcdeA24b2a = 739, + dnnl_aCdb24c = 740, + dnnl_aCdB24c2b = 741, + dnnl_aCdeb24c = 742, + dnnl_aCdeB24c2b = 743, + dnnl_aCdefb24c = 744, + dnnl_aCdefB24c2b = 745, + dnnl_BcA8b4a = 746, + dnnl_BcdA8b4a = 747, + dnnl_BcdeA8b4a = 748, + dnnl_aCdB8c4b = 749, + dnnl_aCdeB8c4b = 750, + dnnl_aCdefB8c4b = 751, + dnnl_BcA24b4a = 752, + dnnl_BcdA24b4a = 753, + dnnl_BcdeA24b4a = 754, + dnnl_aCdB24c4b = 755, + dnnl_aCdeB24c4b = 756, + dnnl_aCdefB24c4b = 757, + dnnl_AB16b48a = 758, + dnnl_ABc16b48a = 759, + dnnl_ABcd16b48a = 760, + dnnl_ABcde16b48a = 761, /** Just a sentinel, not real memory format tag. Must be changed after new * format tag is added. */ - dnnl_format_tag_last = 702, + dnnl_format_tag_last = 762, // Aliases @@ -1373,8 +1415,11 @@ public class dnnl extends org.bytedeco.dnnl.presets.dnnl { // weights, 2D dnnl_OI16i16o = dnnl_AB16b16a, dnnl_OI16i32o = dnnl_AB16b32a, + dnnl_OI16i48o = dnnl_AB16b48a, dnnl_OI16i64o = dnnl_AB16b64a, + dnnl_OI8i8o2i = dnnl_AB8b8a2b, dnnl_OI8i16o2i = dnnl_AB8b16a2b, + dnnl_OI8i24o2i = dnnl_AB8b24a2b, dnnl_OI8i32o2i = dnnl_AB8b32a2b, dnnl_OI8i64o2i = dnnl_AB8b64a2b, dnnl_OI4i8o4i = dnnl_AB4b8a4b, @@ -1393,6 +1438,7 @@ public class dnnl extends org.bytedeco.dnnl.presets.dnnl { dnnl_IOw16i16o = dnnl_BAc16b16a, dnnl_OIw16i16o = dnnl_ABc16b16a, dnnl_OIw16i32o = dnnl_ABc16b32a, + dnnl_OIw16i48o = dnnl_ABc16b48a, dnnl_OIw16i64o = dnnl_ABc16b64a, dnnl_OIw16o16i = dnnl_ABc16a16b, dnnl_Oiw16o = dnnl_Abc16a, @@ -1408,7 +1454,9 @@ public class dnnl extends org.bytedeco.dnnl.presets.dnnl { dnnl_OIw4i4o = dnnl_ABc4b4a, dnnl_OIw4o4i = dnnl_ABc4a4b, dnnl_Oiw4o = dnnl_Abc4a, + dnnl_OIw8i8o2i = dnnl_ABc8b8a2b, dnnl_OIw8i16o2i = dnnl_ABc8b16a2b, + dnnl_OIw8i24o2i = dnnl_ABc8b24a2b, dnnl_OIw8i32o2i = dnnl_ABc8b32a2b, dnnl_OIw8i64o2i = dnnl_ABc8b64a2b, dnnl_OIw8i8o = dnnl_ABc8b8a, @@ -1419,15 +1467,22 @@ public class dnnl extends org.bytedeco.dnnl.presets.dnnl { dnnl_Owi16o = dnnl_Acb16a, dnnl_OwI16o2i = dnnl_AcB16a2b, dnnl_OwI16o4i = dnnl_AcB16a4b, + dnnl_Iwo8i = dnnl_Bca8b, + dnnl_IwO8i2o = dnnl_BcA8b2a, + dnnl_IwO8i4o = dnnl_BcA8b4a, dnnl_Iwo16i = dnnl_Bca16b, dnnl_IwO16i2o = dnnl_BcA16b2a, dnnl_IwO16i4o = dnnl_BcA16b4a, + dnnl_Iwo24i = dnnl_Bca24b, + dnnl_IwO24i2o = dnnl_BcA24b2a, + dnnl_IwO24i4o = dnnl_BcA24b4a, dnnl_Owi4o = dnnl_Acb4a, dnnl_Owi8o = dnnl_Acb8a, dnnl_OwI8o2i = dnnl_AcB8a2b, dnnl_OIw8i32o = dnnl_ABc8b32a, dnnl_OIw8i24o = dnnl_ABc8b24a, dnnl_OIw8i16o = dnnl_ABc8b16a, + dnnl_OwI8o4i = dnnl_AcB8a4b, // weights, 4D dnnl_IOhw16i16o = dnnl_BAcd16b16a, @@ -1435,16 +1490,24 @@ public class dnnl extends org.bytedeco.dnnl.presets.dnnl { dnnl_Ohwi16o = dnnl_Acdb16a, dnnl_OhwI16o2i = dnnl_AcdB16a2b, dnnl_OhwI16o4i = dnnl_AcdB16a4b, + dnnl_Ihwo8i = dnnl_Bcda8b, + dnnl_IhwO8i2o = dnnl_BcdA8b2a, + dnnl_IhwO8i4o = dnnl_BcdA8b4a, dnnl_Ihwo16i = dnnl_Bcda16b, dnnl_IhwO16i2o = dnnl_BcdA16b2a, dnnl_IhwO16i4o = dnnl_BcdA16b4a, + dnnl_Ihwo24i = dnnl_Bcda24b, + dnnl_IhwO24i2o = dnnl_BcdA24b2a, + dnnl_IhwO24i4o = dnnl_BcdA24b4a, dnnl_Ohwi24o = dnnl_Acdb24a, dnnl_Ohwi32o = dnnl_Acdb32a, dnnl_Ohwi4o = dnnl_Acdb4a, dnnl_Ohwi8o = dnnl_Acdb8a, dnnl_OhwI8o2i = dnnl_AcdB8a2b, + dnnl_OhwI8o4i = dnnl_AcdB8a4b, dnnl_OIhw16i16o = dnnl_ABcd16b16a, dnnl_OIhw16i32o = dnnl_ABcd16b32a, + dnnl_OIhw16i48o = dnnl_ABcd16b48a, dnnl_OIhw16i64o = dnnl_ABcd16b64a, dnnl_OIhw16o16i = dnnl_ABcd16a16b, dnnl_Oihw16o = dnnl_Abcd16a, @@ -1459,8 +1522,10 @@ public class dnnl extends org.bytedeco.dnnl.presets.dnnl { dnnl_OIhw4i4o = dnnl_ABcd4b4a, dnnl_OIhw4o4i = dnnl_ABcd4a4b, dnnl_Oihw4o = dnnl_Abcd4a, + dnnl_OIhw8i8o2i = dnnl_ABcd8b8a2b, dnnl_OIhw8i16o2i = dnnl_ABcd8b16a2b, dnnl_OIhw8i32o2i = dnnl_ABcd8b32a2b, + dnnl_OIhw8i24o2i = dnnl_ABcd8b24a2b, dnnl_OIhw8i64o2i = dnnl_ABcd8b64a2b, dnnl_OIhw8i8o = dnnl_ABcd8b8a, dnnl_OIhw8o16i2o = dnnl_ABcd8a16b2a, @@ -1477,23 +1542,33 @@ public class dnnl extends org.bytedeco.dnnl.presets.dnnl { dnnl_Odhwi16o = dnnl_Acdeb16a, dnnl_OdhwI16o2i = dnnl_AcdeB16a2b, dnnl_OdhwI16o4i = dnnl_AcdeB16a4b, + dnnl_Idhwo8i = dnnl_Bcdea8b, + dnnl_IdhwO8i2o = dnnl_BcdeA8b2a, + dnnl_IdhwO8i4o = dnnl_BcdeA8b4a, dnnl_Idhwo16i = dnnl_Bcdea16b, dnnl_IdhwO16i2o = dnnl_BcdeA16b2a, dnnl_IdhwO16i4o = dnnl_BcdeA16b4a, + dnnl_Idhwo24i = dnnl_Bcdea24b, + dnnl_IdhwO24i2o = dnnl_BcdeA24b2a, + dnnl_IdhwO24i4o = dnnl_BcdeA24b4a, dnnl_Odhwi4o = dnnl_Acdeb4a, dnnl_Odhwi8o = dnnl_Acdeb8a, dnnl_OdhwI8o2i = dnnl_AcdeB8a2b, + dnnl_OdhwI8o4i = dnnl_AcdeB8a4b, dnnl_Odwhi16o = dnnl_Acedb16a, dnnl_OIdhw16i16o = dnnl_ABcde16b16a, dnnl_OIdhw16i32o = dnnl_ABcde16b32a, + dnnl_OIdhw16i48o = dnnl_ABcde16b48a, dnnl_OIdhw16i64o = dnnl_ABcde16b64a, dnnl_OIdhw16o16i = dnnl_ABcde16a16b, dnnl_Oidhw16o = dnnl_Abcde16a, dnnl_OIdhw4i4o = dnnl_ABcde4b4a, dnnl_OIdhw4o4i = dnnl_ABcde4a4b, dnnl_Oidhw4o = dnnl_Abcde4a, + dnnl_OIdhw8i8o2i = dnnl_ABcde8b8a2b, dnnl_OIdhw8i16o2i = dnnl_ABcde8b16a2b, dnnl_OIdhw8i32o2i = dnnl_ABcde8b32a2b, + dnnl_OIdhw8i24o2i = dnnl_ABcde8b24a2b, dnnl_OIdhw8i64o2i = dnnl_ABcde8b64a2b, dnnl_OIdhw8i8o = dnnl_ABcde8b8a, dnnl_OIdhw8o16i2o = dnnl_ABcde8a16b2a, @@ -1542,12 +1617,19 @@ public class dnnl extends org.bytedeco.dnnl.presets.dnnl { dnnl_gOwi16o = dnnl_aBdc16b, dnnl_gOwI16o2i = dnnl_aBdC16b2c, dnnl_gOwI16o4i = dnnl_aBdC16b4c, + dnnl_gIwo8i = dnnl_aCdb8c, + dnnl_gIwO8i2o = dnnl_aCdB8c2b, + dnnl_gIwO8i4o = dnnl_aCdB8c4b, dnnl_gIwo16i = dnnl_aCdb16c, dnnl_gIwO16i2o = dnnl_aCdB16c2b, dnnl_gIwO16i4o = dnnl_aCdB16c4b, + dnnl_gIwo24i = dnnl_aCdb24c, + dnnl_gIwO24i2o = dnnl_aCdB24c2b, + dnnl_gIwO24i4o = dnnl_aCdB24c4b, dnnl_gOwi4o = dnnl_aBdc4b, dnnl_gOwi8o = dnnl_aBdc8b, dnnl_gOwI8o2i = dnnl_aBdC8b2c, + dnnl_gOwI8o4i = dnnl_aBdC8b4c, dnnl_Goiw32g = dnnl_Abcd32a, dnnl_gOIw2i4o2i = dnnl_aBCd2c4b2c, dnnl_gOIw2o4i2o = dnnl_aBCd2b4c2b, @@ -1562,15 +1644,23 @@ public class dnnl extends org.bytedeco.dnnl.presets.dnnl { dnnl_gOhwi16o = dnnl_aBdec16b, dnnl_gOhwI16o2i = dnnl_aBdeC16b2c, dnnl_gOhwI16o4i = dnnl_aBdeC16b4c, + dnnl_gIhwo8i = dnnl_aCdeb8c, + dnnl_gIhwO8i2o = dnnl_aCdeB8c2b, + dnnl_gIhwO8i4o = dnnl_aCdeB8c4b, dnnl_gIhwo16i = dnnl_aCdeb16c, dnnl_gIhwO16i2o = dnnl_aCdeB16c2b, dnnl_gIhwO16i4o = dnnl_aCdeB16c4b, + dnnl_gIhwo24i = dnnl_aCdeb24c, + dnnl_gIhwO24i2o = dnnl_aCdeB24c2b, + dnnl_gIhwO24i4o = dnnl_aCdeB24c4b, dnnl_gOhwi32o = dnnl_aBdec32b, dnnl_gOhwi24o = dnnl_aBdec24b, dnnl_gOhwI24o2i = dnnl_aBdeC24b2c, + dnnl_gOhwI24o4i = dnnl_aBdeC24b4c, dnnl_gOhwi4o = dnnl_aBdec4b, dnnl_gOhwi8o = dnnl_aBdec8b, dnnl_gOhwI8o2i = dnnl_aBdeC8b2c, + dnnl_gOhwI8o4i = dnnl_aBdeC8b4c, dnnl_Goihw16g = dnnl_Abcde16a, dnnl_gOIhw16i16o = dnnl_aBCde16c16b, dnnl_gOIhw16o16i = dnnl_aBCde16b16c, @@ -1621,12 +1711,19 @@ public class dnnl extends org.bytedeco.dnnl.presets.dnnl { dnnl_gOdhwi16o = dnnl_aBdefc16b, dnnl_gOdhwI16o2i = dnnl_aBdefC16b2c, dnnl_gOdhwI16o4i = dnnl_aBdefC16b4c, + dnnl_gIdhwo8i = dnnl_aCdefb8c, + dnnl_gIdhwO8i2o = dnnl_aCdefB8c2b, + dnnl_gIdhwO8i4o = dnnl_aCdefB8c4b, dnnl_gIdhwo16i = dnnl_aCdefb16c, dnnl_gIdhwO16i2o = dnnl_aCdefB16c2b, dnnl_gIdhwO16i4o = dnnl_aCdefB16c4b, + dnnl_gIdhwo24i = dnnl_aCdefb24c, + dnnl_gIdhwO24i2o = dnnl_aCdefB24c2b, + dnnl_gIdhwO24i4o = dnnl_aCdefB24c4b, dnnl_gOdhwi4o = dnnl_aBdefc4b, dnnl_gOdhwi8o = dnnl_aBdefc8b, dnnl_gOdhwI8o2i = dnnl_aBdefC8b2c, + dnnl_gOdhwI8o4i = dnnl_aBdefC8b4c, dnnl_gOdwhi16o = dnnl_aBdfec16b, dnnl_gOIdhw16i16o = dnnl_aBCdef16c16b, dnnl_gOIdhw4i16o4i = dnnl_aBCdef4c16b4c, @@ -1657,6 +1754,7 @@ public class dnnl extends org.bytedeco.dnnl.presets.dnnl { // weights, 3D dnnl_Owi24o = dnnl_Acb24a, dnnl_OwI24o2i = dnnl_AcB24a2b, + dnnl_OwI24o4i = dnnl_AcB24a4b, dnnl_Owi32o = dnnl_Acb32a, dnnl_OwI32o2i = dnnl_AcB32a2b, dnnl_OwI32o4i = dnnl_AcB32a4b, @@ -1679,6 +1777,7 @@ public class dnnl extends org.bytedeco.dnnl.presets.dnnl { dnnl_wIo4i = dnnl_cBa4b, dnnl_gOwi24o = dnnl_aBdc24b, dnnl_gOwI24o2i = dnnl_aBdC24b2c, + dnnl_gOwI24o4i = dnnl_aBdC24b4c, dnnl_gOwi32o = dnnl_aBdc32b, dnnl_gOwI32o2i = dnnl_aBdC32b2c, dnnl_gOwI32o4i = dnnl_aBdC32b4c, @@ -1703,6 +1802,7 @@ public class dnnl extends org.bytedeco.dnnl.presets.dnnl { // weights, 4D dnnl_OhwI24o = dnnl_Acdb24a, dnnl_OhwI24o2i = dnnl_AcdB24a2b, + dnnl_OhwI24o4i = dnnl_AcdB24a4b, dnnl_OhwI32o = dnnl_Acdb32a, dnnl_OhwI32o2i = dnnl_AcdB32a2b, dnnl_OhwI32o4i = dnnl_AcdB32a4b, @@ -1748,6 +1848,7 @@ public class dnnl extends org.bytedeco.dnnl.presets.dnnl { // weights, 5D dnnl_Odhwi24o = dnnl_Acdeb24a, dnnl_OdhwI24o2i = dnnl_AcdeB24a2b, + dnnl_OdhwI24o4i = dnnl_AcdeB24a4b, dnnl_Odhwi32o = dnnl_Acdeb32a, dnnl_OdhwI32o2i = dnnl_AcdeB32a2b, dnnl_OdhwI32o4i = dnnl_AcdeB32a4b, @@ -1770,6 +1871,7 @@ public class dnnl extends org.bytedeco.dnnl.presets.dnnl { dnnl_dhwIo4i = dnnl_cdeBa4b, dnnl_gOdhwi24o = dnnl_aBdefc24b, dnnl_gOdhwI24o2i = dnnl_aBdefC24b2c, + dnnl_gOdhwI24o4i = dnnl_aBdefC24b4c, dnnl_gOdhwi32o = dnnl_aBdefc32b, dnnl_gOdhwI32o2i = dnnl_aBdefC32b2c, dnnl_gOdhwI32o4i = dnnl_aBdefC32b4c, @@ -2833,7 +2935,7 @@ public class dnnl extends org.bytedeco.dnnl.presets.dnnl { * Disable profiling completely */ public static final int DNNL_JIT_PROFILE_NONE = 0; -/** Enable VTune Amplifier integration */ +/** Enable VTune Profiler integration */ public static final int DNNL_JIT_PROFILE_VTUNE = 1; /** Enable Linux perf integration via perfmap files */ @@ -3151,8 +3253,6 @@ public class dnnl extends org.bytedeco.dnnl.presets.dnnl { // #ifndef ONEAPI_DNNL_DNNL_CONFIG_H // #define ONEAPI_DNNL_DNNL_CONFIG_H -// #include "oneapi/dnnl/dnnl_common_types.h" - /** \cond DO_NOT_DOCUMENT_THIS */ // All symbols shall be internal unless marked as DNNL_API @@ -3191,6 +3291,35 @@ public class dnnl extends org.bytedeco.dnnl.presets.dnnl { // clang-format off +/** \addtogroup dnnl_api_service +/** \{ +

+/** No runtime (disabled) */ +public static final int DNNL_RUNTIME_NONE = 0; + +/** Sequential runtime (CPU only) */ +public static final int DNNL_RUNTIME_SEQ = 1; + +/** OpenMP runtime (CPU only) */ +public static final int DNNL_RUNTIME_OMP = 2; + +/** TBB runtime (CPU only) */ +public static final int DNNL_RUNTIME_TBB = 4; + +/** Threadpool runtime (CPU only) */ +public static final int DNNL_RUNTIME_THREADPOOL = 8; + +/** OpenCL runtime */ +public static final int DNNL_RUNTIME_OCL = 256; + +/** SYCL runtime */ +public static final int DNNL_RUNTIME_SYCL = 512; + +/** DPC++ runtime */ +public static final int DNNL_RUNTIME_DPCPP = DNNL_RUNTIME_SYCL; + +/** \} dnnl_api_service */ + // oneDNN CPU threading runtime public static final int DNNL_CPU_THREADING_RUNTIME = DNNL_RUNTIME_OMP; @@ -3252,6 +3381,12 @@ public class dnnl extends org.bytedeco.dnnl.presets.dnnl { // When defined, experimental functionality for sparse domain is enabled. /* #undef DNNL_EXPERIMENTAL_SPARSE */ +// When defined, graph component is enabled. +/* #undef ONEDNN_BUILD_GRAPH */ + +// When defined, experimental profiling capabilities are enabled. +/* #undef DNNL_EXPERIMENTAL_PROFILING */ + // List of configurating build controls // Workload controls public static final int BUILD_TRAINING = 1; @@ -3321,10 +3456,10 @@ public class dnnl extends org.bytedeco.dnnl.presets.dnnl { public static final int DNNL_VERSION_MAJOR = 3; /** Minor version */ -public static final int DNNL_VERSION_MINOR = 1; +public static final int DNNL_VERSION_MINOR = 2; /** Patch version */ -public static final int DNNL_VERSION_PATCH = 0; +public static final int DNNL_VERSION_PATCH = 1; /** Git commit hash */ public static native @MemberGetter String DNNL_VERSION_HASH(); @@ -7752,7 +7887,7 @@ public static native int dnnl_memory_desc_equal( * @see \ref dev_guide_profilers * * @param flags Profiling flags that can contain the following bits: - * - \ref DNNL_JIT_PROFILE_VTUNE -- integration with VTune Amplifier + * - \ref DNNL_JIT_PROFILE_VTUNE -- integration with VTune Profiler * (on by default) * - \ref DNNL_JIT_PROFILE_LINUX_JITDUMP -- produce Linux-specific * jit-pid.dump output (off by default). The location of the output @@ -7899,51 +8034,54 @@ public static native int dnnl_memory_desc_equal( /// public static native @Cast("dnnl_cpu_isa_hints_t") int dnnl_get_cpu_isa_hints(); -/** \} dnnl_api_service -

- * \addtogroup dnnl_api_blas - * \{ -

- * Performs single-precision matrix-matrix multiply. - * - * The operation is defined as: - * - * {@code C := alpha * op( A ) * op( B ) + beta * C} - * - * where - * - {@code op( X ) = X} or {@code op( X ) = X**T}, - * - {@code alpha} and {@code beta} are scalars, and - * - {@code A}, {@code B}, and {@code C} are matrices: - * - {@code op( A )} is an {@code MxK} matrix, - * - {@code op( B )} is an {@code KxN} matrix, - * - {@code C} is an {@code MxN} matrix. - * - * The matrices are assumed to be stored in row-major order (the elements in - * each of the matrix rows are contiguous in memory). - * - * \note - * This API does not support XERBLA. Instead, unlike the standard BLAS - * functions, this one returns a dnnl_status_t value to allow error - * handling. - * - * @param transa Transposition flag for matrix A: 'N' or 'n' means A is not - * transposed, and 'T' or 't' means that A is transposed. - * @param transb Transposition flag for matrix B: 'N' or 'n' means B is not - * transposed, and 'T' or 't' means that B is transposed. - * @param M The M dimension. - * @param N The N dimension. - * @param K The K dimension. - * @param alpha The alpha parameter that is used to scale the product of - * matrices A and B. - * @param A A pointer to the A matrix data. - * @param lda The leading dimension for the matrix A. - * @param B A pointer to the B matrix data. - * @param ldb The leading dimension for the matrix B. - * @param beta The beta parameter that is used to scale the matrix C. - * @param C A pointer to the C matrix data. - * @param ldc The leading dimension for the matrix C. - * @return #dnnl_success/#dnnl::status::success on success and a status - * describing the error otherwise. */ +/** \} dnnl_api_service */ + +// #ifdef DNNL_EXPERIMENTAL_PROFILING +// #endif + +/** \addtogroup dnnl_api_blas +/** \{ +

+/** Performs single-precision matrix-matrix multiply. +/** +/** The operation is defined as: +/** +/** {@code C := alpha * op( A ) * op( B ) + beta * C} +/** +/** where +/** - {@code op( X ) = X} or {@code op( X ) = X**T}, +/** - {@code alpha} and {@code beta} are scalars, and +/** - {@code A}, {@code B}, and {@code C} are matrices: +/** - {@code op( A )} is an {@code MxK} matrix, +/** - {@code op( B )} is an {@code KxN} matrix, +/** - {@code C} is an {@code MxN} matrix. +/** +/** The matrices are assumed to be stored in row-major order (the elements in +/** each of the matrix rows are contiguous in memory). +/** +/** \note +/** This API does not support XERBLA. Instead, unlike the standard BLAS +/** functions, this one returns a dnnl_status_t value to allow error +/** handling. +/** +/** @param transa Transposition flag for matrix A: 'N' or 'n' means A is not +/** transposed, and 'T' or 't' means that A is transposed. +/** @param transb Transposition flag for matrix B: 'N' or 'n' means B is not +/** transposed, and 'T' or 't' means that B is transposed. +/** @param M The M dimension. +/** @param N The N dimension. +/** @param K The K dimension. +/** @param alpha The alpha parameter that is used to scale the product of +/** matrices A and B. +/** @param A A pointer to the A matrix data. +/** @param lda The leading dimension for the matrix A. +/** @param B A pointer to the B matrix data. +/** @param ldb The leading dimension for the matrix B. +/** @param beta The beta parameter that is used to scale the matrix C. +/** @param C A pointer to the C matrix data. +/** @param ldc The leading dimension for the matrix C. +/** @return #dnnl_success/#dnnl::status::success on success and a status +/** describing the error otherwise. */ /// /// @@ -8135,7 +8273,7 @@ public static native int dnnl_memory_desc_equal( // Parsed from oneapi/dnnl/dnnl_common.hpp /******************************************************************************* -* Copyright 2022 Intel Corporation +* Copyright 2022-2023 Intel Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -8325,7 +8463,7 @@ public static native int dnnl_memory_desc_equal( f16(dnnl_fpmath_mode_f16), /** Implicit f32->tf32 conversions allowed */ tf32(dnnl_fpmath_mode_tf32), - /** Implicit f32->f16 or f32->bf16 conversions allowed */ + /** Implicit f32->f16, f32->tf32 or f32->bf16 conversions allowed */ any(dnnl_fpmath_mode_any); public final int value; @@ -9271,16 +9409,19 @@ public static native int dnnl_memory_desc_equal( /// @Namespace("dnnl") public static native cpu_isa_hints get_cpu_isa_hints(); -/** \} dnnl_api_service -

- * \addtogroup dnnl_api_primitive_cache Primitive Cache - * - * A set of functions that provide primitive cache control. - * - * \{ -

- * Returns the number of primitives that can be held in the primitive cache - * at the same time. */ +/** \} dnnl_api_service */ + +// #ifdef DNNL_EXPERIMENTAL_PROFILING +// #endif + +/** \addtogroup dnnl_api_primitive_cache Primitive Cache +/** +/** A set of functions that provide primitive cache control. +/** +/** \{ +

+/** Returns the number of primitives that can be held in the primitive cache +/** at the same time. */ @Namespace("dnnl") public static native int get_primitive_cache_capacity(); /** \copydoc dnnl_set_primitive_cache_capacity(int capacity) */ diff --git a/dnnl/src/gen/java/org/bytedeco/dnnl/gru_backward.java b/dnnl/src/gen/java/org/bytedeco/dnnl/gru_backward.java index 1cc570bfda8..b7d6d22f681 100644 --- a/dnnl/src/gen/java/org/bytedeco/dnnl/gru_backward.java +++ b/dnnl/src/gen/java/org/bytedeco/dnnl/gru_backward.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.dnnl; diff --git a/dnnl/src/gen/java/org/bytedeco/dnnl/gru_forward.java b/dnnl/src/gen/java/org/bytedeco/dnnl/gru_forward.java index 18422c5a986..7b5b5571976 100644 --- a/dnnl/src/gen/java/org/bytedeco/dnnl/gru_forward.java +++ b/dnnl/src/gen/java/org/bytedeco/dnnl/gru_forward.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.dnnl; diff --git a/dnnl/src/gen/java/org/bytedeco/dnnl/inner_product_backward_data.java b/dnnl/src/gen/java/org/bytedeco/dnnl/inner_product_backward_data.java index 17319df439f..79e5eca8577 100644 --- a/dnnl/src/gen/java/org/bytedeco/dnnl/inner_product_backward_data.java +++ b/dnnl/src/gen/java/org/bytedeco/dnnl/inner_product_backward_data.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.dnnl; diff --git a/dnnl/src/gen/java/org/bytedeco/dnnl/inner_product_backward_weights.java b/dnnl/src/gen/java/org/bytedeco/dnnl/inner_product_backward_weights.java index 40db92f4926..7084ec20c38 100644 --- a/dnnl/src/gen/java/org/bytedeco/dnnl/inner_product_backward_weights.java +++ b/dnnl/src/gen/java/org/bytedeco/dnnl/inner_product_backward_weights.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.dnnl; diff --git a/dnnl/src/gen/java/org/bytedeco/dnnl/inner_product_forward.java b/dnnl/src/gen/java/org/bytedeco/dnnl/inner_product_forward.java index 5e1bc716688..951dc39cc8d 100644 --- a/dnnl/src/gen/java/org/bytedeco/dnnl/inner_product_forward.java +++ b/dnnl/src/gen/java/org/bytedeco/dnnl/inner_product_forward.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.dnnl; diff --git a/dnnl/src/gen/java/org/bytedeco/dnnl/layer_normalization_backward.java b/dnnl/src/gen/java/org/bytedeco/dnnl/layer_normalization_backward.java index 067417f19c9..f6a4896368d 100644 --- a/dnnl/src/gen/java/org/bytedeco/dnnl/layer_normalization_backward.java +++ b/dnnl/src/gen/java/org/bytedeco/dnnl/layer_normalization_backward.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.dnnl; diff --git a/dnnl/src/gen/java/org/bytedeco/dnnl/layer_normalization_forward.java b/dnnl/src/gen/java/org/bytedeco/dnnl/layer_normalization_forward.java index af9468fcf43..d25e248c4e0 100644 --- a/dnnl/src/gen/java/org/bytedeco/dnnl/layer_normalization_forward.java +++ b/dnnl/src/gen/java/org/bytedeco/dnnl/layer_normalization_forward.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.dnnl; diff --git a/dnnl/src/gen/java/org/bytedeco/dnnl/lbr_augru_backward.java b/dnnl/src/gen/java/org/bytedeco/dnnl/lbr_augru_backward.java index 15527beef9c..2dcbced2606 100644 --- a/dnnl/src/gen/java/org/bytedeco/dnnl/lbr_augru_backward.java +++ b/dnnl/src/gen/java/org/bytedeco/dnnl/lbr_augru_backward.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.dnnl; diff --git a/dnnl/src/gen/java/org/bytedeco/dnnl/lbr_augru_forward.java b/dnnl/src/gen/java/org/bytedeco/dnnl/lbr_augru_forward.java index 974358bdecf..7ec375c04e1 100644 --- a/dnnl/src/gen/java/org/bytedeco/dnnl/lbr_augru_forward.java +++ b/dnnl/src/gen/java/org/bytedeco/dnnl/lbr_augru_forward.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.dnnl; diff --git a/dnnl/src/gen/java/org/bytedeco/dnnl/lbr_gru_backward.java b/dnnl/src/gen/java/org/bytedeco/dnnl/lbr_gru_backward.java index 66261d48697..eeb836b17bb 100644 --- a/dnnl/src/gen/java/org/bytedeco/dnnl/lbr_gru_backward.java +++ b/dnnl/src/gen/java/org/bytedeco/dnnl/lbr_gru_backward.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.dnnl; diff --git a/dnnl/src/gen/java/org/bytedeco/dnnl/lbr_gru_forward.java b/dnnl/src/gen/java/org/bytedeco/dnnl/lbr_gru_forward.java index 047e086ef93..972d57545f4 100644 --- a/dnnl/src/gen/java/org/bytedeco/dnnl/lbr_gru_forward.java +++ b/dnnl/src/gen/java/org/bytedeco/dnnl/lbr_gru_forward.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.dnnl; diff --git a/dnnl/src/gen/java/org/bytedeco/dnnl/lrn_backward.java b/dnnl/src/gen/java/org/bytedeco/dnnl/lrn_backward.java index 2266f487c53..f529eec6002 100644 --- a/dnnl/src/gen/java/org/bytedeco/dnnl/lrn_backward.java +++ b/dnnl/src/gen/java/org/bytedeco/dnnl/lrn_backward.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.dnnl; diff --git a/dnnl/src/gen/java/org/bytedeco/dnnl/lrn_forward.java b/dnnl/src/gen/java/org/bytedeco/dnnl/lrn_forward.java index d80b77a0352..bb764d581c1 100644 --- a/dnnl/src/gen/java/org/bytedeco/dnnl/lrn_forward.java +++ b/dnnl/src/gen/java/org/bytedeco/dnnl/lrn_forward.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.dnnl; diff --git a/dnnl/src/gen/java/org/bytedeco/dnnl/lstm_backward.java b/dnnl/src/gen/java/org/bytedeco/dnnl/lstm_backward.java index 4360a23e5ab..84a5eec3ae2 100644 --- a/dnnl/src/gen/java/org/bytedeco/dnnl/lstm_backward.java +++ b/dnnl/src/gen/java/org/bytedeco/dnnl/lstm_backward.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.dnnl; diff --git a/dnnl/src/gen/java/org/bytedeco/dnnl/lstm_forward.java b/dnnl/src/gen/java/org/bytedeco/dnnl/lstm_forward.java index 8cb026484f9..7ad52e99fbb 100644 --- a/dnnl/src/gen/java/org/bytedeco/dnnl/lstm_forward.java +++ b/dnnl/src/gen/java/org/bytedeco/dnnl/lstm_forward.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.dnnl; diff --git a/dnnl/src/gen/java/org/bytedeco/dnnl/matmul.java b/dnnl/src/gen/java/org/bytedeco/dnnl/matmul.java index ec054a85475..f0d88f6a90e 100644 --- a/dnnl/src/gen/java/org/bytedeco/dnnl/matmul.java +++ b/dnnl/src/gen/java/org/bytedeco/dnnl/matmul.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.dnnl; diff --git a/dnnl/src/gen/java/org/bytedeco/dnnl/memory.java b/dnnl/src/gen/java/org/bytedeco/dnnl/memory.java index 1f5564b9807..70c5af10bbe 100644 --- a/dnnl/src/gen/java/org/bytedeco/dnnl/memory.java +++ b/dnnl/src/gen/java/org/bytedeco/dnnl/memory.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.dnnl; @@ -466,6 +466,7 @@ public enum format_tag { AB16b16a(dnnl_AB16b16a), AB16b32a(dnnl_AB16b32a), + AB16b48a(dnnl_AB16b48a), AB16b64a(dnnl_AB16b64a), AB8b16a2b(dnnl_AB8b16a2b), AB8b32a2b(dnnl_AB8b32a2b), @@ -488,6 +489,7 @@ public enum format_tag { aBc32b(dnnl_aBc32b), ABc16b16a(dnnl_ABc16b16a), ABc16b32a(dnnl_ABc16b32a), + ABc16b48a(dnnl_ABc16b48a), ABc16b64a(dnnl_ABc16b64a), Abc4a(dnnl_Abc4a), aBc4b(dnnl_aBc4b), @@ -521,6 +523,7 @@ public enum format_tag { aBcd32b(dnnl_aBcd32b), ABcd16b16a(dnnl_ABcd16b16a), ABcd16b32a(dnnl_ABcd16b32a), + ABcd16b48a(dnnl_ABcd16b48a), ABcd16b64a(dnnl_ABcd16b64a), aBCd16b16c(dnnl_aBCd16b16c), aBCd16c16b(dnnl_aBCd16c16b), @@ -571,6 +574,7 @@ public enum format_tag { aBcde32b(dnnl_aBcde32b), ABcde16b16a(dnnl_ABcde16b16a), ABcde16b32a(dnnl_ABcde16b32a), + ABcde16b48a(dnnl_ABcde16b48a), ABcde16b64a(dnnl_ABcde16b64a), aBCde16b16c(dnnl_aBCde16b16c), aBCde16c16b(dnnl_aBCde16c16b), @@ -631,20 +635,24 @@ public enum format_tag { aBdc4b(dnnl_aBdc4b), aBdc8b(dnnl_aBdc8b), aBdC8b2c(dnnl_aBdC8b2c), + aBdC8b4c(dnnl_aBdC8b4c), aBdec16b(dnnl_aBdec16b), aBdec4b(dnnl_aBdec4b), aBdec8b(dnnl_aBdec8b), aBdeC8b2c(dnnl_aBdeC8b2c), + aBdeC8b4c(dnnl_aBdeC8b4c), aBdefc16b(dnnl_aBdefc16b), aCBdef16c16b(dnnl_aCBdef16c16b), aCBdef16b16c(dnnl_aCBdef16b16c), aBdefc4b(dnnl_aBdefc4b), aBdefc8b(dnnl_aBdefc8b), aBdefC8b2c(dnnl_aBdefC8b2c), + aBdefC8b4c(dnnl_aBdefC8b4c), Acb16a(dnnl_Acb16a), Acb4a(dnnl_Acb4a), Acb8a(dnnl_Acb8a), AcB8a2b(dnnl_AcB8a2b), + AcB8a4b(dnnl_AcB8a4b), aCBd16b16c(dnnl_aCBd16b16c), aCBd16c16b(dnnl_aCBd16c16b), aCBde16b16c(dnnl_aCBde16b16c), @@ -653,10 +661,12 @@ public enum format_tag { Acdb4a(dnnl_Acdb4a), Acdb8a(dnnl_Acdb8a), AcdB8a2b(dnnl_AcdB8a2b), + AcdB8a4b(dnnl_AcdB8a4b), Acdeb16a(dnnl_Acdeb16a), Acdeb4a(dnnl_Acdeb4a), Acdeb8a(dnnl_Acdeb8a), AcdeB8a2b(dnnl_AcdeB8a2b), + AcdeB8a4b(dnnl_AcdeB8a4b), BAc16a16b(dnnl_BAc16a16b), BAc16b16a(dnnl_BAc16b16a), BAcd16a16b(dnnl_BAcd16a16b), @@ -848,6 +858,12 @@ public enum format_tag { aBdC24b2c(dnnl_aBdC24b2c), aBdeC24b2c(dnnl_aBdeC24b2c), aBdefC24b2c(dnnl_aBdefC24b2c), + AcB24a4b(dnnl_AcB24a4b), + AcdB24a4b(dnnl_AcdB24a4b), + AcdeB24a4b(dnnl_AcdeB24a4b), + aBdC24b4c(dnnl_aBdC24b4c), + aBdeC24b4c(dnnl_aBdeC24b4c), + aBdefC24b4c(dnnl_aBdefC24b4c), AB8b32a(dnnl_AB8b32a), ABc8b32a(dnnl_ABc8b32a), ABcd8b32a(dnnl_ABcd8b32a), @@ -881,6 +897,7 @@ public enum format_tag { IOhw16i16o(dnnl_IOhw16i16o), OI16i16o(dnnl_OI16i16o), OI16i32o(dnnl_OI16i32o), + OI16i48o(dnnl_OI16i48o), OI16i64o(dnnl_OI16i64o), OI8i16o2i(dnnl_OI8i16o2i), OI8i32o2i(dnnl_OI8i32o2i), @@ -898,6 +915,7 @@ public enum format_tag { IOw16o16i(dnnl_IOw16o16i), OIw16i16o(dnnl_OIw16i16o), OIw16i32o(dnnl_OIw16i32o), + OIw16i48o(dnnl_OIw16i48o), OIw16i64o(dnnl_OIw16i64o), IOw16i16o(dnnl_IOw16i16o), gIOw16i16o(dnnl_gIOw16i16o), @@ -936,6 +954,7 @@ public enum format_tag { Owi4o(dnnl_Owi4o), Owi8o(dnnl_Owi8o), OwI8o2i(dnnl_OwI8o2i), + OwI8o4i(dnnl_OwI8o4i), IOhw16o16i(dnnl_IOhw16o16i), Ohwi16o(dnnl_Ohwi16o), OhwI16o2i(dnnl_OhwI16o2i), @@ -945,8 +964,10 @@ public enum format_tag { Ohwi4o(dnnl_Ohwi4o), Ohwi8o(dnnl_Ohwi8o), OhwI8o2i(dnnl_OhwI8o2i), + OhwI8o4i(dnnl_OhwI8o4i), OIhw16i16o(dnnl_OIhw16i16o), OIhw16i32o(dnnl_OIhw16i32o), + OIhw16i48o(dnnl_OIhw16i48o), OIhw16i64o(dnnl_OIhw16i64o), OIhw16o16i(dnnl_OIhw16o16i), Oihw16o(dnnl_Oihw16o), @@ -975,8 +996,10 @@ public enum format_tag { Odhwi4o(dnnl_Odhwi4o), Odhwi8o(dnnl_Odhwi8o), OdhwI8o2i(dnnl_OdhwI8o2i), + OdhwI8o4i(dnnl_OdhwI8o4i), OIdhw16i16o(dnnl_OIdhw16i16o), OIdhw16i32o(dnnl_OIdhw16i32o), + OIdhw16i48o(dnnl_OIdhw16i48o), OIdhw16i64o(dnnl_OIdhw16i64o), OIdhw16o16i(dnnl_OIdhw16o16i), OIdhw16o16i2o(dnnl_OIdhw16o16i2o), @@ -1029,6 +1052,7 @@ public enum format_tag { gOwi4o(dnnl_gOwi4o), gOwi8o(dnnl_gOwi8o), gOwI8o2i(dnnl_gOwI8o2i), + gOwI8o4i(dnnl_gOwI8o4i), Goiw8g(dnnl_Goiw8g), Goiw16g(dnnl_Goiw16g), gIOhw16o16i(dnnl_gIOhw16o16i), @@ -1040,6 +1064,7 @@ public enum format_tag { gOhwi4o(dnnl_gOhwi4o), gOhwi8o(dnnl_gOhwi8o), gOhwI8o2i(dnnl_gOhwI8o2i), + gOhwI8o4i(dnnl_gOhwI8o4i), Goihw16g(dnnl_Goihw16g), gOIhw16i16o(dnnl_gOIhw16i16o), gOIhw16o16i(dnnl_gOIhw16o16i), @@ -1085,6 +1110,7 @@ public enum format_tag { gOdhwi4o(dnnl_gOdhwi4o), gOdhwi8o(dnnl_gOdhwi8o), gOdhwI8o2i(dnnl_gOdhwI8o2i), + gOdhwI8o4i(dnnl_gOdhwI8o4i), gOIdhw16i16o(dnnl_gOIdhw16i16o), gOIdhw16o16i(dnnl_gOIdhw16o16i), gOIdhw16o16i2o(dnnl_gOIdhw16o16i2o), @@ -1712,6 +1738,12 @@ public enum format_tag { gOwI24o2i(dnnl_gOwI24o2i), gOhwI24o2i(dnnl_gOhwI24o2i), gOdhwI24o2i(dnnl_gOdhwI24o2i), + OwI24o4i(dnnl_OwI24o4i), + OhwI24o4i(dnnl_OhwI24o4i), + OdhwI24o4i(dnnl_OdhwI24o4i), + gOwI24o4i(dnnl_gOwI24o4i), + gOhwI24o4i(dnnl_gOhwI24o4i), + gOdhwI24o4i(dnnl_gOdhwI24o4i), OI8i32o(dnnl_OI8i32o), OIw8i32o(dnnl_OIw8i32o), OIhw8i32o(dnnl_OIhw8i32o), @@ -1733,8 +1765,84 @@ public enum format_tag { ABcd4b24a4b(dnnl_ABcd4b24a4b), ABcde4b8a4b(dnnl_ABcde4b8a4b), ABcde4b24a4b(dnnl_ABcde4b24a4b), + Bca8b(dnnl_Bca8b), + BcA8b2a(dnnl_BcA8b2a), + Bcda8b(dnnl_Bcda8b), + BcdA8b2a(dnnl_BcdA8b2a), + Bcdea8b(dnnl_Bcdea8b), + BcdeA8b2a(dnnl_BcdeA8b2a), + aCdb8c(dnnl_aCdb8c), + aCdB8c2b(dnnl_aCdB8c2b), + aCdeb8c(dnnl_aCdeb8c), + aCdeB8c2b(dnnl_aCdeB8c2b), + aCdefb8c(dnnl_aCdefb8c), + aCdefB8c2b(dnnl_aCdefB8c2b), + Bca24b(dnnl_Bca24b), + BcA24b2a(dnnl_BcA24b2a), + Bcda24b(dnnl_Bcda24b), + BcdA24b2a(dnnl_BcdA24b2a), + Bcdea24b(dnnl_Bcdea24b), + BcdeA24b2a(dnnl_BcdeA24b2a), + aCdb24c(dnnl_aCdb24c), + aCdB24c2b(dnnl_aCdB24c2b), + aCdeb24c(dnnl_aCdeb24c), + aCdeB24c2b(dnnl_aCdeB24c2b), + aCdefb24c(dnnl_aCdefb24c), + aCdefB24c2b(dnnl_aCdefB24c2b), + Iwo8i(dnnl_Iwo8i), + IwO8i2o(dnnl_IwO8i2o), + Iwo24i(dnnl_Iwo24i), + IwO24i2o(dnnl_IwO24i2o), + Ihwo8i(dnnl_Ihwo8i), + IhwO8i2o(dnnl_IhwO8i2o), + Ihwo24i(dnnl_Ihwo24i), + IhwO24i2o(dnnl_IhwO24i2o), + Idhwo8i(dnnl_Idhwo8i), + IdhwO8i2o(dnnl_IdhwO8i2o), + Idhwo24i(dnnl_Idhwo24i), + IdhwO24i2o(dnnl_IdhwO24i2o), + gIwo8i(dnnl_gIwo8i), + gIwO8i2o(dnnl_gIwO8i2o), + gIwo24i(dnnl_gIwo24i), + gIwO24i2o(dnnl_gIwO24i2o), + gIhwo8i(dnnl_gIhwo8i), + gIhwO8i2o(dnnl_gIhwO8i2o), + gIhwo24i(dnnl_gIhwo24i), + gIhwO24i2o(dnnl_gIhwO24i2o), + gIdhwo8i(dnnl_gIdhwo8i), + gIdhwO8i2o(dnnl_gIdhwO8i2o), + gIdhwo24i(dnnl_gIdhwo24i), + gIdhwO24i2o(dnnl_gIdhwO24i2o), OhwI24o(dnnl_OhwI24o), - gOhwI24o(dnnl_gOhwI24o); + gOhwI24o(dnnl_gOhwI24o), + AB8b24a2b(dnnl_AB8b24a2b), + ABc8b24a2b(dnnl_ABc8b24a2b), + ABcd8b24a2b(dnnl_ABcd8b24a2b), + ABcde8b24a2b(dnnl_ABcde8b24a2b), + AB8b8a2b(dnnl_AB8b8a2b), + ABc8b8a2b(dnnl_ABc8b8a2b), + ABcd8b8a2b(dnnl_ABcd8b8a2b), + ABcde8b8a2b(dnnl_ABcde8b8a2b), + OI8i8o2i(dnnl_OI8i8o2i), + OI8i24o2i(dnnl_OI8i24o2i), + OIw8i8o2i(dnnl_OIw8i8o2i), + OIw8i24o2i(dnnl_OIw8i24o2i), + OIhw8i8o2i(dnnl_OIhw8i8o2i), + OIhw8i24o2i(dnnl_OIhw8i24o2i), + OIdhw8i8o2i(dnnl_OIdhw8i8o2i), + OIdhw8i24o2i(dnnl_OIdhw8i24o2i), + BcA8b4a(dnnl_BcA8b4a), + BcdA8b4a(dnnl_BcdA8b4a), + BcdeA8b4a(dnnl_BcdeA8b4a), + aCdB8c4b(dnnl_aCdB8c4b), + aCdeB8c4b(dnnl_aCdeB8c4b), + aCdefB8c4b(dnnl_aCdefB8c4b), + BcA24b4a(dnnl_BcA24b4a), + BcdA24b4a(dnnl_BcdA24b4a), + BcdeA24b4a(dnnl_BcdeA24b4a), + aCdB24c4b(dnnl_aCdB24c4b), + aCdeB24c4b(dnnl_aCdeB24c4b), + aCdefB24c4b(dnnl_aCdefB24c4b); public final int value; private format_tag(int v) { this.value = v; } diff --git a/dnnl/src/gen/java/org/bytedeco/dnnl/memory_desc_vector.java b/dnnl/src/gen/java/org/bytedeco/dnnl/memory_desc_vector.java index 3949c3dd818..51df660177e 100644 --- a/dnnl/src/gen/java/org/bytedeco/dnnl/memory_desc_vector.java +++ b/dnnl/src/gen/java/org/bytedeco/dnnl/memory_desc_vector.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.dnnl; @@ -30,6 +30,8 @@ public class memory_desc_vector extends Pointer { public void clear() { resize(0); } public native void resize(@Cast("size_t") long n); + public org.bytedeco.dnnl.memory.desc front() { return get(0); } + public org.bytedeco.dnnl.memory.desc back() { return get(size() - 1); } @Index(function = "at") public native @ByRef org.bytedeco.dnnl.memory.desc get(@Cast("size_t") long i); public native memory_desc_vector put(@Cast("size_t") long i, org.bytedeco.dnnl.memory.desc value); diff --git a/dnnl/src/gen/java/org/bytedeco/dnnl/pooling_backward.java b/dnnl/src/gen/java/org/bytedeco/dnnl/pooling_backward.java index d1dd44241cc..28957f5786e 100644 --- a/dnnl/src/gen/java/org/bytedeco/dnnl/pooling_backward.java +++ b/dnnl/src/gen/java/org/bytedeco/dnnl/pooling_backward.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.dnnl; diff --git a/dnnl/src/gen/java/org/bytedeco/dnnl/pooling_forward.java b/dnnl/src/gen/java/org/bytedeco/dnnl/pooling_forward.java index 8fa7d0fc7d1..c1f6c641f10 100644 --- a/dnnl/src/gen/java/org/bytedeco/dnnl/pooling_forward.java +++ b/dnnl/src/gen/java/org/bytedeco/dnnl/pooling_forward.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.dnnl; diff --git a/dnnl/src/gen/java/org/bytedeco/dnnl/post_ops.java b/dnnl/src/gen/java/org/bytedeco/dnnl/post_ops.java index 6664f1efb3c..1cea0146f5f 100644 --- a/dnnl/src/gen/java/org/bytedeco/dnnl/post_ops.java +++ b/dnnl/src/gen/java/org/bytedeco/dnnl/post_ops.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.dnnl; diff --git a/dnnl/src/gen/java/org/bytedeco/dnnl/prelu_backward.java b/dnnl/src/gen/java/org/bytedeco/dnnl/prelu_backward.java index 3dcfabd71b5..104c8136b1e 100644 --- a/dnnl/src/gen/java/org/bytedeco/dnnl/prelu_backward.java +++ b/dnnl/src/gen/java/org/bytedeco/dnnl/prelu_backward.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.dnnl; diff --git a/dnnl/src/gen/java/org/bytedeco/dnnl/prelu_forward.java b/dnnl/src/gen/java/org/bytedeco/dnnl/prelu_forward.java index 59507ac8cc6..5418693aac3 100644 --- a/dnnl/src/gen/java/org/bytedeco/dnnl/prelu_forward.java +++ b/dnnl/src/gen/java/org/bytedeco/dnnl/prelu_forward.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.dnnl; diff --git a/dnnl/src/gen/java/org/bytedeco/dnnl/primitive.java b/dnnl/src/gen/java/org/bytedeco/dnnl/primitive.java index 78bb4b76456..9fecea5a494 100644 --- a/dnnl/src/gen/java/org/bytedeco/dnnl/primitive.java +++ b/dnnl/src/gen/java/org/bytedeco/dnnl/primitive.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.dnnl; diff --git a/dnnl/src/gen/java/org/bytedeco/dnnl/primitive_attr.java b/dnnl/src/gen/java/org/bytedeco/dnnl/primitive_attr.java index 92b2cc75c94..570a6fe6f7e 100644 --- a/dnnl/src/gen/java/org/bytedeco/dnnl/primitive_attr.java +++ b/dnnl/src/gen/java/org/bytedeco/dnnl/primitive_attr.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.dnnl; diff --git a/dnnl/src/gen/java/org/bytedeco/dnnl/primitive_desc.java b/dnnl/src/gen/java/org/bytedeco/dnnl/primitive_desc.java index 3730fe5b616..163603a421b 100644 --- a/dnnl/src/gen/java/org/bytedeco/dnnl/primitive_desc.java +++ b/dnnl/src/gen/java/org/bytedeco/dnnl/primitive_desc.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.dnnl; diff --git a/dnnl/src/gen/java/org/bytedeco/dnnl/primitive_desc_base.java b/dnnl/src/gen/java/org/bytedeco/dnnl/primitive_desc_base.java index fcabde16d69..fa66cc0536d 100644 --- a/dnnl/src/gen/java/org/bytedeco/dnnl/primitive_desc_base.java +++ b/dnnl/src/gen/java/org/bytedeco/dnnl/primitive_desc_base.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.dnnl; diff --git a/dnnl/src/gen/java/org/bytedeco/dnnl/primitive_vector.java b/dnnl/src/gen/java/org/bytedeco/dnnl/primitive_vector.java index 9bbd34f73bb..b206e203e4d 100644 --- a/dnnl/src/gen/java/org/bytedeco/dnnl/primitive_vector.java +++ b/dnnl/src/gen/java/org/bytedeco/dnnl/primitive_vector.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.dnnl; @@ -30,6 +30,8 @@ public class primitive_vector extends Pointer { public void clear() { resize(0); } public native void resize(@Cast("size_t") long n); + public primitive front() { return get(0); } + public primitive back() { return get(size() - 1); } @Index(function = "at") public native @ByRef primitive get(@Cast("size_t") long i); public native primitive_vector put(@Cast("size_t") long i, primitive value); diff --git a/dnnl/src/gen/java/org/bytedeco/dnnl/reduction.java b/dnnl/src/gen/java/org/bytedeco/dnnl/reduction.java index 540a1c79306..2deea1a4e84 100644 --- a/dnnl/src/gen/java/org/bytedeco/dnnl/reduction.java +++ b/dnnl/src/gen/java/org/bytedeco/dnnl/reduction.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.dnnl; diff --git a/dnnl/src/gen/java/org/bytedeco/dnnl/reorder.java b/dnnl/src/gen/java/org/bytedeco/dnnl/reorder.java index 43aa27a9b14..591896cf431 100644 --- a/dnnl/src/gen/java/org/bytedeco/dnnl/reorder.java +++ b/dnnl/src/gen/java/org/bytedeco/dnnl/reorder.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.dnnl; diff --git a/dnnl/src/gen/java/org/bytedeco/dnnl/resampling_backward.java b/dnnl/src/gen/java/org/bytedeco/dnnl/resampling_backward.java index 345d7d28be5..138c2e8cc65 100644 --- a/dnnl/src/gen/java/org/bytedeco/dnnl/resampling_backward.java +++ b/dnnl/src/gen/java/org/bytedeco/dnnl/resampling_backward.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.dnnl; diff --git a/dnnl/src/gen/java/org/bytedeco/dnnl/resampling_forward.java b/dnnl/src/gen/java/org/bytedeco/dnnl/resampling_forward.java index 0c16b754f90..ffc7dec5003 100644 --- a/dnnl/src/gen/java/org/bytedeco/dnnl/resampling_forward.java +++ b/dnnl/src/gen/java/org/bytedeco/dnnl/resampling_forward.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.dnnl; diff --git a/dnnl/src/gen/java/org/bytedeco/dnnl/rnn_primitive_desc_base.java b/dnnl/src/gen/java/org/bytedeco/dnnl/rnn_primitive_desc_base.java index e4dbd81a001..ce0b825fdbf 100644 --- a/dnnl/src/gen/java/org/bytedeco/dnnl/rnn_primitive_desc_base.java +++ b/dnnl/src/gen/java/org/bytedeco/dnnl/rnn_primitive_desc_base.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.dnnl; diff --git a/dnnl/src/gen/java/org/bytedeco/dnnl/shuffle_backward.java b/dnnl/src/gen/java/org/bytedeco/dnnl/shuffle_backward.java index cb132c4d3c5..260bad310f7 100644 --- a/dnnl/src/gen/java/org/bytedeco/dnnl/shuffle_backward.java +++ b/dnnl/src/gen/java/org/bytedeco/dnnl/shuffle_backward.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.dnnl; diff --git a/dnnl/src/gen/java/org/bytedeco/dnnl/shuffle_forward.java b/dnnl/src/gen/java/org/bytedeco/dnnl/shuffle_forward.java index 19a3649f892..790659d9cf8 100644 --- a/dnnl/src/gen/java/org/bytedeco/dnnl/shuffle_forward.java +++ b/dnnl/src/gen/java/org/bytedeco/dnnl/shuffle_forward.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.dnnl; diff --git a/dnnl/src/gen/java/org/bytedeco/dnnl/softmax_backward.java b/dnnl/src/gen/java/org/bytedeco/dnnl/softmax_backward.java index 5114d9c4219..eaf81b703dc 100644 --- a/dnnl/src/gen/java/org/bytedeco/dnnl/softmax_backward.java +++ b/dnnl/src/gen/java/org/bytedeco/dnnl/softmax_backward.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.dnnl; diff --git a/dnnl/src/gen/java/org/bytedeco/dnnl/softmax_forward.java b/dnnl/src/gen/java/org/bytedeco/dnnl/softmax_forward.java index f435a1387d3..72c06b20a90 100644 --- a/dnnl/src/gen/java/org/bytedeco/dnnl/softmax_forward.java +++ b/dnnl/src/gen/java/org/bytedeco/dnnl/softmax_forward.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.dnnl; diff --git a/dnnl/src/gen/java/org/bytedeco/dnnl/stream.java b/dnnl/src/gen/java/org/bytedeco/dnnl/stream.java index c0d42223038..f43918c3db4 100644 --- a/dnnl/src/gen/java/org/bytedeco/dnnl/stream.java +++ b/dnnl/src/gen/java/org/bytedeco/dnnl/stream.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.dnnl; @@ -51,6 +51,8 @@ public enum flags { out_of_order(dnnl_stream_out_of_order), /** Default stream configuration. */ default_flags(dnnl_stream_default_flags); +// #ifdef DNNL_EXPERIMENTAL_PROFILING +// #endif public final int value; private flags(int v) { this.value = v; } diff --git a/dnnl/src/gen/java/org/bytedeco/dnnl/sum.java b/dnnl/src/gen/java/org/bytedeco/dnnl/sum.java index 0a6501e9602..895224b271e 100644 --- a/dnnl/src/gen/java/org/bytedeco/dnnl/sum.java +++ b/dnnl/src/gen/java/org/bytedeco/dnnl/sum.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.dnnl; diff --git a/dnnl/src/gen/java/org/bytedeco/dnnl/vanilla_rnn_backward.java b/dnnl/src/gen/java/org/bytedeco/dnnl/vanilla_rnn_backward.java index ee374435c55..93377de462e 100644 --- a/dnnl/src/gen/java/org/bytedeco/dnnl/vanilla_rnn_backward.java +++ b/dnnl/src/gen/java/org/bytedeco/dnnl/vanilla_rnn_backward.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.dnnl; diff --git a/dnnl/src/gen/java/org/bytedeco/dnnl/vanilla_rnn_forward.java b/dnnl/src/gen/java/org/bytedeco/dnnl/vanilla_rnn_forward.java index 1e648e299a3..abfa88549b8 100644 --- a/dnnl/src/gen/java/org/bytedeco/dnnl/vanilla_rnn_forward.java +++ b/dnnl/src/gen/java/org/bytedeco/dnnl/vanilla_rnn_forward.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.dnnl; diff --git a/dnnl/src/main/java/org/bytedeco/dnnl/presets/dnnl.java b/dnnl/src/main/java/org/bytedeco/dnnl/presets/dnnl.java index 4dbb64f2755..6f29e868444 100644 --- a/dnnl/src/main/java/org/bytedeco/dnnl/presets/dnnl.java +++ b/dnnl/src/main/java/org/bytedeco/dnnl/presets/dnnl.java @@ -69,6 +69,7 @@ public void map(InfoMap infoMap) { .put(new Info("DNNL_CPU_RUNTIME == DNNL_RUNTIME_THREADPOOL", "DNNL_CPU_THREADING_RUNTIME == DNNL_RUNTIME_THREADPOOL", "DNNL_GPU_RUNTIME == DNNL_RUNTIME_OCL", + "DNNL_EXPERIMENTAL_PROFILING", "DNNL_EXPERIMENTAL_SPARSE").define(false)) .put(new Info("DNNL_RUNTIME_F32_VAL_REP").skip()) diff --git a/llvm/README.md b/llvm/README.md index 964887ff0a6..72b21178463 100644 --- a/llvm/README.md +++ b/llvm/README.md @@ -9,7 +9,7 @@ Introduction ------------ This directory contains the JavaCPP Presets module for: - * LLVM 16.0.6 http://llvm.org/ + * LLVM 17.0.0 http://llvm.org/ Please refer to the parent README.md file for more detailed information about the JavaCPP Presets. @@ -50,7 +50,7 @@ We can use [Maven 3](http://maven.apache.org/) to download and install automatic org.bytedeco llvm-platform - 16.0.6-1.5.10-SNAPSHOT + 17.0.0-1.5.10-SNAPSHOT diff --git a/llvm/cppbuild.sh b/llvm/cppbuild.sh index 0066a63b347..b1abe058591 100755 --- a/llvm/cppbuild.sh +++ b/llvm/cppbuild.sh @@ -7,15 +7,16 @@ if [[ -z "$PLATFORM" ]]; then exit fi -LLVM_VERSION=16.0.6 -download https://github.com/llvm/llvm-project/releases/download/llvmorg-$LLVM_VERSION/llvm-project-$LLVM_VERSION.src.tar.xz llvm-project-$LLVM_VERSION.src.tar.xz +LLVM_VERSION=17.0.0-rc3 +LLVM_VERSION2=17.0.0rc3 +download https://github.com/llvm/llvm-project/releases/download/llvmorg-$LLVM_VERSION/llvm-project-$LLVM_VERSION2.src.tar.xz llvm-project-$LLVM_VERSION2.src.tar.xz mkdir -p $PLATFORM cd $PLATFORM INSTALL_PATH=`pwd` echo "Decompressing archives... (ignore any symlink errors)" -tar --totals -xf ../llvm-project-$LLVM_VERSION.src.tar.xz || true -cd llvm-project-$LLVM_VERSION.src +tar --totals -xf ../llvm-project-$LLVM_VERSION2.src.tar.xz || true +cd llvm-project-$LLVM_VERSION2.src patch -Np1 < ../../../llvm.patch sedinplace '/find_package(Git/d' llvm/cmake/modules/AddLLVM.cmake llvm/cmake/modules/VersionFromVCS.cmake sedinplace '/Generating libLLVM is not supported on MSVC/d' llvm/tools/llvm-shlib/CMakeLists.txt diff --git a/llvm/platform/pom.xml b/llvm/platform/pom.xml index 91a9d4cac10..c382b58ecce 100644 --- a/llvm/platform/pom.xml +++ b/llvm/platform/pom.xml @@ -12,7 +12,7 @@ org.bytedeco llvm-platform - 16.0.6-${project.parent.version} + 17.0.0-${project.parent.version} JavaCPP Presets Platform for LLVM diff --git a/llvm/pom.xml b/llvm/pom.xml index 7c69b14693d..c82199841ad 100644 --- a/llvm/pom.xml +++ b/llvm/pom.xml @@ -11,7 +11,7 @@ org.bytedeco llvm - 16.0.6-${project.parent.version} + 17.0.0-${project.parent.version} JavaCPP Presets for LLVM diff --git a/llvm/samples/clang/pom.xml b/llvm/samples/clang/pom.xml index 43767bbba3d..dc6dc4f3130 100644 --- a/llvm/samples/clang/pom.xml +++ b/llvm/samples/clang/pom.xml @@ -12,7 +12,7 @@ org.bytedeco llvm-platform - 16.0.6-1.5.10-SNAPSHOT + 17.0.0-1.5.10-SNAPSHOT diff --git a/llvm/samples/llvm/EmitBitcode.java b/llvm/samples/llvm/EmitBitcode.java index ed40c035313..b308e8d4260 100644 --- a/llvm/samples/llvm/EmitBitcode.java +++ b/llvm/samples/llvm/EmitBitcode.java @@ -69,7 +69,7 @@ public class EmitBitcode { */ public static void EmitBitcodeAndRelocatableObject() { // Stage 1: Initialize LLVM components - LLVMInitializeCore(LLVMGetGlobalPassRegistry()); +// LLVMInitializeCore(LLVMGetGlobalPassRegistry()); LLVMInitializeNativeAsmPrinter(); LLVMInitializeNativeAsmParser(); LLVMInitializeNativeDisassembler(); @@ -157,7 +157,7 @@ public static void EmitBitcodeAndRelocatableObject() { */ public static void EvaluateBitcode() { // Stage 1: Initialize LLVM components - LLVMInitializeCore(LLVMGetGlobalPassRegistry()); +// LLVMInitializeCore(LLVMGetGlobalPassRegistry()); LLVMInitializeNativeAsmPrinter(); LLVMInitializeNativeAsmParser(); LLVMInitializeNativeTarget(); diff --git a/llvm/samples/llvm/Factorial.java b/llvm/samples/llvm/Factorial.java index ab856c701f2..f0a9e62c0db 100644 --- a/llvm/samples/llvm/Factorial.java +++ b/llvm/samples/llvm/Factorial.java @@ -60,7 +60,7 @@ public class Factorial { public static void main(String[] args) { // Stage 1: Initialize LLVM components - LLVMInitializeCore(LLVMGetGlobalPassRegistry()); +// LLVMInitializeCore(LLVMGetGlobalPassRegistry()); LLVMLinkInMCJIT(); LLVMInitializeNativeAsmPrinter(); LLVMInitializeNativeAsmParser(); @@ -115,8 +115,8 @@ public static void main(String[] args) { // Stage 4: Create a pass pipeline using the legacy pass manager LLVMPassManagerRef pm = LLVMCreatePassManager(); // LLVMAddAggressiveInstCombinerPass(pm); - LLVMAddNewGVNPass(pm); - LLVMAddCFGSimplificationPass(pm); +// LLVMAddNewGVNPass(pm); +// LLVMAddCFGSimplificationPass(pm); LLVMRunPassManager(pm, module); LLVMDumpModule(module); diff --git a/llvm/samples/llvm/OrcJit.java b/llvm/samples/llvm/OrcJit.java index cb07ccb31df..bb64d360444 100644 --- a/llvm/samples/llvm/OrcJit.java +++ b/llvm/samples/llvm/OrcJit.java @@ -21,10 +21,12 @@ */ import org.bytedeco.javacpp.IntPointer; +import org.bytedeco.javacpp.Loader; import org.bytedeco.javacpp.LongPointer; import org.bytedeco.javacpp.Pointer; import org.bytedeco.javacpp.PointerPointer; import org.bytedeco.libffi.ffi_cif; +import org.bytedeco.llvm.global.LLVM; import org.bytedeco.llvm.LLVM.LLVMBasicBlockRef; import org.bytedeco.llvm.LLVM.LLVMBuilderRef; import org.bytedeco.llvm.LLVM.LLVMContextRef; @@ -57,7 +59,7 @@ public class OrcJit { public static void main(String[] args) { // Stage 1: Initialize LLVM components - LLVMInitializeCore(LLVMGetGlobalPassRegistry()); +// LLVMInitializeCore(LLVMGetGlobalPassRegistry()); LLVMInitializeNativeTarget(); LLVMInitializeNativeAsmPrinter(); @@ -90,22 +92,23 @@ public static void main(String[] args) { // Stage 3: Execute using OrcJIT LLVMOrcLLJITRef jit = new LLVMOrcLLJITRef(); LLVMOrcLLJITBuilderRef jitBuilder = LLVMOrcCreateLLJITBuilder(); + Loader.loadGlobal(Loader.load(LLVM.class)); if ((err = LLVMOrcCreateLLJIT(jit, jitBuilder)) != null) { - System.err.println("Failed to create LLJIT: " + LLVMGetErrorMessage(err)); + System.err.println("Failed to create LLJIT: " + LLVMGetErrorMessage(err).getString()); LLVMConsumeError(err); return; } LLVMOrcJITDylibRef mainDylib = LLVMOrcLLJITGetMainJITDylib(jit); if ((err = LLVMOrcLLJITAddLLVMIRModule(jit, mainDylib, threadModule)) != null) { - System.err.println("Failed to add LLVM IR module: " + LLVMGetErrorMessage(err)); + System.err.println("Failed to add LLVM IR module: " + LLVMGetErrorMessage(err).getString()); LLVMConsumeError(err); return; } final LongPointer res = new LongPointer(1); if ((err = LLVMOrcLLJITLookup(jit, res, "sum")) != null) { - System.err.println("Failed to look up 'sum' symbol: " + LLVMGetErrorMessage(err)); + System.err.println("Failed to look up 'sum' symbol: " + LLVMGetErrorMessage(err).getString()); LLVMConsumeError(err); return; } diff --git a/llvm/samples/llvm/pom.xml b/llvm/samples/llvm/pom.xml index 969eecd8d15..ac9d45bc243 100644 --- a/llvm/samples/llvm/pom.xml +++ b/llvm/samples/llvm/pom.xml @@ -12,7 +12,7 @@ org.bytedeco llvm-platform - 16.0.6-1.5.10-SNAPSHOT + 17.0.0-1.5.10-SNAPSHOT org.bytedeco diff --git a/llvm/samples/polly/pom.xml b/llvm/samples/polly/pom.xml index 5a71741c02e..4f83fb9401c 100644 --- a/llvm/samples/polly/pom.xml +++ b/llvm/samples/polly/pom.xml @@ -13,7 +13,7 @@ org.bytedeco llvm-platform - 16.0.6-1.5.10-SNAPSHOT + 17.0.0-1.5.10-SNAPSHOT org.bytedeco diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMAttributeRef.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMAttributeRef.java index 198a7f50710..4a6c2c4f3dc 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMAttributeRef.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMAttributeRef.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMBasicBlockRef.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMBasicBlockRef.java index 3ebd6d03adc..998e51a0ccf 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMBasicBlockRef.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMBasicBlockRef.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMBinaryRef.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMBinaryRef.java index bf3226ede15..5b2782865cc 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMBinaryRef.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMBinaryRef.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMBuilderRef.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMBuilderRef.java index 109824961cc..f9275c8a126 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMBuilderRef.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMBuilderRef.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMComdatRef.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMComdatRef.java index 24f46cfafbb..b0ee8654a14 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMComdatRef.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMComdatRef.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMContextRef.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMContextRef.java index ecbe5a772f4..fb8f2536731 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMContextRef.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMContextRef.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMDIBuilderRef.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMDIBuilderRef.java index e3d10782d1c..45d94da2ff2 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMDIBuilderRef.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMDIBuilderRef.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMDiagnosticHandler.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMDiagnosticHandler.java index 318243cc1f1..4693844b594 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMDiagnosticHandler.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMDiagnosticHandler.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMDiagnosticInfoRef.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMDiagnosticInfoRef.java index 201d6cbe372..3a3a72b55fa 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMDiagnosticInfoRef.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMDiagnosticInfoRef.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMDisasmContextRef.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMDisasmContextRef.java index d56a99b7843..cb47ea0923e 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMDisasmContextRef.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMDisasmContextRef.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMErrorRef.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMErrorRef.java index 0976b99e4b3..01444b7de6f 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMErrorRef.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMErrorRef.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMErrorTypeId.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMErrorTypeId.java index 64629c4007e..dca2cdafa4a 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMErrorTypeId.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMErrorTypeId.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMExecutionEngineRef.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMExecutionEngineRef.java index 4e65d02c52c..aedad1ccb95 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMExecutionEngineRef.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMExecutionEngineRef.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMFatalErrorHandler.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMFatalErrorHandler.java index 2e51aeec98c..6157d288aca 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMFatalErrorHandler.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMFatalErrorHandler.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMGenericValueRef.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMGenericValueRef.java index 504a40999a2..cbb8f2c727a 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMGenericValueRef.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMGenericValueRef.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMJITEvaluatedSymbol.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMJITEvaluatedSymbol.java index 1f577288d9f..ef06879f252 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMJITEvaluatedSymbol.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMJITEvaluatedSymbol.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMJITEventListenerRef.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMJITEventListenerRef.java index 1fe9fd9d128..8f0069363ea 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMJITEventListenerRef.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMJITEventListenerRef.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMJITSymbolFlags.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMJITSymbolFlags.java index 20fc2e5af21..882164e2c07 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMJITSymbolFlags.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMJITSymbolFlags.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMMCJITCompilerOptions.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMMCJITCompilerOptions.java index 95ca85c222a..95704847e2f 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMMCJITCompilerOptions.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMMCJITCompilerOptions.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMMCJITMemoryManagerRef.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMMCJITMemoryManagerRef.java index 659dc8c39af..3bfcbd01f4e 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMMCJITMemoryManagerRef.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMMCJITMemoryManagerRef.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMMemoryBufferRef.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMMemoryBufferRef.java index 0d4fbcc4cc2..a1fa741bd09 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMMemoryBufferRef.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMMemoryBufferRef.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMMemoryManagerAllocateCodeSectionCallback.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMMemoryManagerAllocateCodeSectionCallback.java index 7fe72e088a5..efbb4c2664c 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMMemoryManagerAllocateCodeSectionCallback.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMMemoryManagerAllocateCodeSectionCallback.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMMemoryManagerAllocateDataSectionCallback.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMMemoryManagerAllocateDataSectionCallback.java index 25f05cca495..3d88af058e5 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMMemoryManagerAllocateDataSectionCallback.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMMemoryManagerAllocateDataSectionCallback.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMMemoryManagerCreateContextCallback.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMMemoryManagerCreateContextCallback.java index 6b1805e4cd2..d1624bce6cd 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMMemoryManagerCreateContextCallback.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMMemoryManagerCreateContextCallback.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMMemoryManagerDestroyCallback.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMMemoryManagerDestroyCallback.java index d4c4d6bcf6f..334d9c06200 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMMemoryManagerDestroyCallback.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMMemoryManagerDestroyCallback.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMMemoryManagerFinalizeMemoryCallback.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMMemoryManagerFinalizeMemoryCallback.java index 6ff805babe7..f8e7173e77e 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMMemoryManagerFinalizeMemoryCallback.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMMemoryManagerFinalizeMemoryCallback.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMMemoryManagerNotifyTerminatingCallback.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMMemoryManagerNotifyTerminatingCallback.java index 0804cb7cb84..c6cd32f52ed 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMMemoryManagerNotifyTerminatingCallback.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMMemoryManagerNotifyTerminatingCallback.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMMetadataRef.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMMetadataRef.java index f0d883ea54e..2d7bc4272ca 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMMetadataRef.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMMetadataRef.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMModuleFlagEntry.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMModuleFlagEntry.java index fea2268fb29..7ed14b7752d 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMModuleFlagEntry.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMModuleFlagEntry.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMModuleProviderRef.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMModuleProviderRef.java index 90e2371d52f..73b6a8e745a 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMModuleProviderRef.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMModuleProviderRef.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMModuleRef.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMModuleRef.java index 03a31b1102d..1a249ede363 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMModuleRef.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMModuleRef.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMNamedMDNodeRef.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMNamedMDNodeRef.java index 48fbbbfe3f4..ee1ba49db06 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMNamedMDNodeRef.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMNamedMDNodeRef.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMObjectFileRef.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMObjectFileRef.java index 5d4398af515..2e5520b0378 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMObjectFileRef.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMObjectFileRef.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOpInfo1.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOpInfo1.java index 1fe28e73be0..da558c5dfb9 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOpInfo1.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOpInfo1.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOpInfoCallback.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOpInfoCallback.java index ca0174ebda5..b83928da946 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOpInfoCallback.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOpInfoCallback.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOpInfoSymbol1.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOpInfoSymbol1.java index a1f4542c50a..da356dd12f1 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOpInfoSymbol1.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOpInfoSymbol1.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcCAPIDefinitionGeneratorTryToGenerateFunction.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcCAPIDefinitionGeneratorTryToGenerateFunction.java index ee37c5038ac..cca182a968a 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcCAPIDefinitionGeneratorTryToGenerateFunction.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcCAPIDefinitionGeneratorTryToGenerateFunction.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcCDependenceMapPair.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcCDependenceMapPair.java index 95fb665105b..f39826fe491 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcCDependenceMapPair.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcCDependenceMapPair.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcCJITDylibSearchOrderElement.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcCJITDylibSearchOrderElement.java index dcb9abf23b7..be6bbcc8d1f 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcCJITDylibSearchOrderElement.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcCJITDylibSearchOrderElement.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcCLookupSetElement.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcCLookupSetElement.java index 7be85eee849..361f21b2535 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcCLookupSetElement.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcCLookupSetElement.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcCSymbolAliasMapEntry.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcCSymbolAliasMapEntry.java index 9f77168e050..37da0be3c25 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcCSymbolAliasMapEntry.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcCSymbolAliasMapEntry.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcCSymbolAliasMapPair.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcCSymbolAliasMapPair.java index 3a51088e32c..4cc69cd94e8 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcCSymbolAliasMapPair.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcCSymbolAliasMapPair.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcCSymbolFlagsMapPair.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcCSymbolFlagsMapPair.java index 1ee08b63e71..454341b0999 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcCSymbolFlagsMapPair.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcCSymbolFlagsMapPair.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcCSymbolMapPair.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcCSymbolMapPair.java index ce20af23889..cd0a99e5037 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcCSymbolMapPair.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcCSymbolMapPair.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcCSymbolsList.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcCSymbolsList.java index f2595755bbe..f72eab07f95 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcCSymbolsList.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcCSymbolsList.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcDefinitionGeneratorRef.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcDefinitionGeneratorRef.java index 0e7917a5034..017112d7b82 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcDefinitionGeneratorRef.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcDefinitionGeneratorRef.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcDisposeCAPIDefinitionGeneratorFunction.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcDisposeCAPIDefinitionGeneratorFunction.java index 4d023735bd2..5a84870bd33 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcDisposeCAPIDefinitionGeneratorFunction.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcDisposeCAPIDefinitionGeneratorFunction.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcDumpObjectsRef.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcDumpObjectsRef.java index 1ea378afe2e..e9822d8fe90 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcDumpObjectsRef.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcDumpObjectsRef.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcErrorReporterFunction.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcErrorReporterFunction.java index 1bfba8807a5..c223b997c2f 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcErrorReporterFunction.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcErrorReporterFunction.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcExecutionSessionLookupHandleResultFunction.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcExecutionSessionLookupHandleResultFunction.java index b6e99a61cd9..74c75e6af83 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcExecutionSessionLookupHandleResultFunction.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcExecutionSessionLookupHandleResultFunction.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcExecutionSessionRef.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcExecutionSessionRef.java index 21029e7563d..553531ea459 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcExecutionSessionRef.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcExecutionSessionRef.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcGenericIRModuleOperationFunction.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcGenericIRModuleOperationFunction.java index 00c0517a14e..c1d53b345b0 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcGenericIRModuleOperationFunction.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcGenericIRModuleOperationFunction.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcIRTransformLayerRef.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcIRTransformLayerRef.java index 35bb564e6f7..b3303878ab9 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcIRTransformLayerRef.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcIRTransformLayerRef.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcIRTransformLayerTransformFunction.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcIRTransformLayerTransformFunction.java index 05274127bc8..284c8ca117b 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcIRTransformLayerTransformFunction.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcIRTransformLayerTransformFunction.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcIndirectStubsManagerRef.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcIndirectStubsManagerRef.java index 8127e714da3..b98c7a5b7c4 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcIndirectStubsManagerRef.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcIndirectStubsManagerRef.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcJITDylibRef.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcJITDylibRef.java index 114bd3b8d79..c129ef5f0b5 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcJITDylibRef.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcJITDylibRef.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcJITTargetMachineBuilderRef.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcJITTargetMachineBuilderRef.java index 8ea2ce48153..b137a8640ff 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcJITTargetMachineBuilderRef.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcJITTargetMachineBuilderRef.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcLLJITBuilderObjectLinkingLayerCreatorFunction.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcLLJITBuilderObjectLinkingLayerCreatorFunction.java index 61e9422296d..e458446d518 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcLLJITBuilderObjectLinkingLayerCreatorFunction.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcLLJITBuilderObjectLinkingLayerCreatorFunction.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcLLJITBuilderRef.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcLLJITBuilderRef.java index 9780bbe46e8..220c775f23b 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcLLJITBuilderRef.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcLLJITBuilderRef.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcLLJITRef.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcLLJITRef.java index c71aec69920..c4b47269154 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcLLJITRef.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcLLJITRef.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcLazyCallThroughManagerRef.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcLazyCallThroughManagerRef.java index 43b5e93176f..bf9ff547564 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcLazyCallThroughManagerRef.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcLazyCallThroughManagerRef.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcLookupStateRef.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcLookupStateRef.java index bc5dc6695ab..ce0e0f2603d 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcLookupStateRef.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcLookupStateRef.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcMaterializationResponsibilityRef.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcMaterializationResponsibilityRef.java index 75c1f985760..91d3c390a35 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcMaterializationResponsibilityRef.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcMaterializationResponsibilityRef.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcMaterializationUnitDestroyFunction.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcMaterializationUnitDestroyFunction.java index 669ba50f85b..8f5824badd0 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcMaterializationUnitDestroyFunction.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcMaterializationUnitDestroyFunction.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcMaterializationUnitDiscardFunction.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcMaterializationUnitDiscardFunction.java index 5cf473c1efa..6a56b07f5a3 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcMaterializationUnitDiscardFunction.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcMaterializationUnitDiscardFunction.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcMaterializationUnitMaterializeFunction.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcMaterializationUnitMaterializeFunction.java index 009c6b042fa..0115f87f796 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcMaterializationUnitMaterializeFunction.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcMaterializationUnitMaterializeFunction.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcMaterializationUnitRef.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcMaterializationUnitRef.java index 5e11344d037..b8127558ecc 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcMaterializationUnitRef.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcMaterializationUnitRef.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcObjectLayerRef.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcObjectLayerRef.java index a75157612e2..81e061cdb00 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcObjectLayerRef.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcObjectLayerRef.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcObjectTransformLayerRef.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcObjectTransformLayerRef.java index 2d11eee1dee..e2aa35e5d61 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcObjectTransformLayerRef.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcObjectTransformLayerRef.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcObjectTransformLayerTransformFunction.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcObjectTransformLayerTransformFunction.java index b4e79000fee..9f68a093c59 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcObjectTransformLayerTransformFunction.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcObjectTransformLayerTransformFunction.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcOpaqueObjectLinkingLayer.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcOpaqueObjectLinkingLayer.java index 8e6f39332b2..c54bc674ea8 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcOpaqueObjectLinkingLayer.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcOpaqueObjectLinkingLayer.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcResourceTrackerRef.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcResourceTrackerRef.java index a852dc5ffb9..a173f6f857b 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcResourceTrackerRef.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcResourceTrackerRef.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcSymbolPredicate.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcSymbolPredicate.java index 49486c87f91..22089fe5e0e 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcSymbolPredicate.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcSymbolPredicate.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcSymbolStringPoolEntryRef.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcSymbolStringPoolEntryRef.java index 5d476a1a085..8650f007a06 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcSymbolStringPoolEntryRef.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcSymbolStringPoolEntryRef.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcSymbolStringPoolRef.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcSymbolStringPoolRef.java index 896474ad39f..961c3bfbb59 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcSymbolStringPoolRef.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcSymbolStringPoolRef.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcThreadSafeContextRef.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcThreadSafeContextRef.java index 492a2166270..1737b947c77 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcThreadSafeContextRef.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcThreadSafeContextRef.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcThreadSafeModuleRef.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcThreadSafeModuleRef.java index 97a0fe369b2..af7544c33f9 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcThreadSafeModuleRef.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOrcThreadSafeModuleRef.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMPassBuilderOptionsRef.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMPassBuilderOptionsRef.java index 60b8869b0aa..0178adb6f59 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMPassBuilderOptionsRef.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMPassBuilderOptionsRef.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMPassManagerBuilderRef.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMPassManagerBuilderRef.java deleted file mode 100644 index 9b30edab760..00000000000 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMPassManagerBuilderRef.java +++ /dev/null @@ -1,20 +0,0 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE - -package org.bytedeco.llvm.LLVM; - -import java.nio.*; -import org.bytedeco.javacpp.*; -import org.bytedeco.javacpp.annotation.*; - -import static org.bytedeco.javacpp.presets.javacpp.*; - -import static org.bytedeco.llvm.global.LLVM.*; - - -@Name("LLVMOpaquePassManagerBuilder") @Opaque @Properties(inherit = org.bytedeco.llvm.presets.LLVM.class) -public class LLVMPassManagerBuilderRef extends Pointer { - /** Empty constructor. Calls {@code super((Pointer)null)}. */ - public LLVMPassManagerBuilderRef() { super((Pointer)null); } - /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ - public LLVMPassManagerBuilderRef(Pointer p) { super(p); } -} diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMPassManagerRef.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMPassManagerRef.java index 736c09a4c7a..2addb1b6b98 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMPassManagerRef.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMPassManagerRef.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMPassRegistryRef.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMPassRegistryRef.java deleted file mode 100644 index 4e754f18bd2..00000000000 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMPassRegistryRef.java +++ /dev/null @@ -1,21 +0,0 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE - -package org.bytedeco.llvm.LLVM; - -import java.nio.*; -import org.bytedeco.javacpp.*; -import org.bytedeco.javacpp.annotation.*; - -import static org.bytedeco.javacpp.presets.javacpp.*; - -import static org.bytedeco.llvm.global.LLVM.*; - - -/** @see llvm::PassRegistry */ -@Name("LLVMOpaquePassRegistry") @Opaque @Properties(inherit = org.bytedeco.llvm.presets.LLVM.class) -public class LLVMPassRegistryRef extends Pointer { - /** Empty constructor. Calls {@code super((Pointer)null)}. */ - public LLVMPassRegistryRef() { super((Pointer)null); } - /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ - public LLVMPassRegistryRef(Pointer p) { super(p); } -} diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMRelocationIteratorRef.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMRelocationIteratorRef.java index f5a3137e365..11d2a88ca2b 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMRelocationIteratorRef.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMRelocationIteratorRef.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMRemarkArgRef.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMRemarkArgRef.java index fe85f8f04ee..916bc868b99 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMRemarkArgRef.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMRemarkArgRef.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMRemarkDebugLocRef.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMRemarkDebugLocRef.java index e2f95a8221a..15bc76897d9 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMRemarkDebugLocRef.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMRemarkDebugLocRef.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMRemarkEntryRef.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMRemarkEntryRef.java index a2f0e5032ab..ac47e4ffb91 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMRemarkEntryRef.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMRemarkEntryRef.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMRemarkParserRef.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMRemarkParserRef.java index c91d232c526..a3030e55f58 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMRemarkParserRef.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMRemarkParserRef.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMRemarkStringRef.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMRemarkStringRef.java index b6f1ee8c003..c40c079b8cf 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMRemarkStringRef.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMRemarkStringRef.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMSectionIteratorRef.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMSectionIteratorRef.java index c24313cc231..3c2445a2e55 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMSectionIteratorRef.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMSectionIteratorRef.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMSymbolIteratorRef.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMSymbolIteratorRef.java index 3fd6f19d5a3..897a2f902e8 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMSymbolIteratorRef.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMSymbolIteratorRef.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMSymbolLookupCallback.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMSymbolLookupCallback.java index e826adaf93b..31e6a9b959b 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMSymbolLookupCallback.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMSymbolLookupCallback.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMTargetDataRef.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMTargetDataRef.java index 2cfd4b072d9..c3f81ca70ae 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMTargetDataRef.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMTargetDataRef.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMTargetLibraryInfoRef.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMTargetLibraryInfoRef.java index 93737dbce2f..f0a26354f9b 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMTargetLibraryInfoRef.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMTargetLibraryInfoRef.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMTargetMachineRef.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMTargetMachineRef.java index b7ce4753729..b3291d00d57 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMTargetMachineRef.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMTargetMachineRef.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMTargetRef.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMTargetRef.java index 6da5ecf5fb7..b0cba340d5f 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMTargetRef.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMTargetRef.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMTypeRef.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMTypeRef.java index ef06c4a1fad..d2558472bac 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMTypeRef.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMTypeRef.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMUseRef.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMUseRef.java index 0a5170e6d49..76c616741d3 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMUseRef.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMUseRef.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMValueMetadataEntry.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMValueMetadataEntry.java index d0cc43aafe4..097994e3f5e 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMValueMetadataEntry.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMValueMetadataEntry.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMValueRef.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMValueRef.java index 9c22230748b..b6977f15133 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMValueRef.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMValueRef.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMYieldCallback.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMYieldCallback.java index 7ee30f06d20..24a86f733c6 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMYieldCallback.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMYieldCallback.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LTOObjectBuffer.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LTOObjectBuffer.java index f94a9204a4e..ecd32ebe66e 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LTOObjectBuffer.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/LTOObjectBuffer.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/MustPreserve_LLVMValueRef_Pointer.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/MustPreserve_LLVMValueRef_Pointer.java deleted file mode 100644 index 4d7beebe1de..00000000000 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/MustPreserve_LLVMValueRef_Pointer.java +++ /dev/null @@ -1,32 +0,0 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE - -package org.bytedeco.llvm.LLVM; - -import java.nio.*; -import org.bytedeco.javacpp.*; -import org.bytedeco.javacpp.annotation.*; - -import static org.bytedeco.javacpp.presets.javacpp.*; - -import static org.bytedeco.llvm.global.LLVM.*; - - -/** - * Create and add the internalize pass to the given pass manager with the - * provided preservation callback. - * - * The context parameter is forwarded to the callback on each invocation. - * As such, it is the responsibility of the caller to extend its lifetime - * until execution of this pass has finished. - * - * @see llvm::createInternalizePass function. - */ -@Properties(inherit = org.bytedeco.llvm.presets.LLVM.class) -public class MustPreserve_LLVMValueRef_Pointer extends FunctionPointer { - static { Loader.load(); } - /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ - public MustPreserve_LLVMValueRef_Pointer(Pointer p) { super(p); } - protected MustPreserve_LLVMValueRef_Pointer() { allocate(); } - private native void allocate(); - public native @Cast("LLVMBool") int call(LLVMValueRef arg0, Pointer arg1); -} diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/Pass.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/Pass.java index f9b611407af..747f1294677 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/Pass.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/Pass.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/PassRegistry.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/PassRegistry.java index 65addbbbe7c..53eaff9567e 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/PassRegistry.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/PassRegistry.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/PollyForcePassLinking.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/PollyForcePassLinking.java index a52be75e627..2c7a092dbbe 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/PollyForcePassLinking.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/PollyForcePassLinking.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/lto_code_gen_t.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/lto_code_gen_t.java index 6b901cbe18a..4359f580c32 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/lto_code_gen_t.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/lto_code_gen_t.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/lto_diagnostic_handler_t.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/lto_diagnostic_handler_t.java index 440795e5a85..a00df766c70 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/lto_diagnostic_handler_t.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/lto_diagnostic_handler_t.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/lto_input_t.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/lto_input_t.java index 6e94d87f7e3..4979052ec94 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/lto_input_t.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/lto_input_t.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/lto_module_t.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/lto_module_t.java index 790d7028a8c..4d2e07f702b 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/lto_module_t.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/lto_module_t.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/thinlto_code_gen_t.java b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/thinlto_code_gen_t.java index dec172e9f9e..238830a74c8 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/LLVM/thinlto_code_gen_t.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/LLVM/thinlto_code_gen_t.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.LLVM; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXAPISet.java b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXAPISet.java index 4e1997a9fe4..7d574517ede 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXAPISet.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXAPISet.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.clang; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXClientData.java b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXClientData.java index 2f7b9490c1a..c4601a29c25 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXClientData.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXClientData.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.clang; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXCodeCompleteResults.java b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXCodeCompleteResults.java index aef17d953fb..66abf553d51 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXCodeCompleteResults.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXCodeCompleteResults.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.clang; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXComment.java b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXComment.java index 8c5af7b79fd..51a204da7db 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXComment.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXComment.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.clang; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXCompilationDatabase.java b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXCompilationDatabase.java index d5f4a62e9fd..e406a869bac 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXCompilationDatabase.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXCompilationDatabase.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.clang; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXCompileCommand.java b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXCompileCommand.java index d7a0d21f0b1..c7e4609715f 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXCompileCommand.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXCompileCommand.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.clang; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXCompileCommands.java b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXCompileCommands.java index 60cbac86548..36199aa52d7 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXCompileCommands.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXCompileCommands.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.clang; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXCompletionResult.java b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXCompletionResult.java index 0e03d7808a5..0992138c404 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXCompletionResult.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXCompletionResult.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.clang; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXCompletionString.java b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXCompletionString.java index a8e201901fb..c311b04d954 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXCompletionString.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXCompletionString.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.clang; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXCursor.java b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXCursor.java index 0191f5dbbba..bdf6dedab8a 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXCursor.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXCursor.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.clang; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXCursorAndRangeVisitor.java b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXCursorAndRangeVisitor.java index 7b4ddc2ffe5..c918da07590 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXCursorAndRangeVisitor.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXCursorAndRangeVisitor.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.clang; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXCursorSet.java b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXCursorSet.java index 51c889455e8..9573a48dd17 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXCursorSet.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXCursorSet.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.clang; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXCursorVisitor.java b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXCursorVisitor.java index 2512699cb7e..d9ab9e518e5 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXCursorVisitor.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXCursorVisitor.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.clang; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXDiagnostic.java b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXDiagnostic.java index b9ca14f9f07..c25b3a8b602 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXDiagnostic.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXDiagnostic.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.clang; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXDiagnosticSet.java b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXDiagnosticSet.java index 3c3747a2668..db9b5f949c4 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXDiagnosticSet.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXDiagnosticSet.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.clang; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXEvalResult.java b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXEvalResult.java index 4bf8fc1b544..c70a81256cb 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXEvalResult.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXEvalResult.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.clang; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXFieldVisitor.java b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXFieldVisitor.java index 4e18b39252a..aa07bf4ae51 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXFieldVisitor.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXFieldVisitor.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.clang; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXFile.java b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXFile.java index 9c404aeb521..fea8d481b98 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXFile.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXFile.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.clang; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXFileUniqueID.java b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXFileUniqueID.java index c363352b44a..bfa53deea92 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXFileUniqueID.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXFileUniqueID.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.clang; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXIdxAttrInfo.java b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXIdxAttrInfo.java index 7ae4dbd2270..2fec9b0d253 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXIdxAttrInfo.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXIdxAttrInfo.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.clang; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXIdxBaseClassInfo.java b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXIdxBaseClassInfo.java index a7858cffea8..5a599e79025 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXIdxBaseClassInfo.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXIdxBaseClassInfo.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.clang; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXIdxCXXClassDeclInfo.java b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXIdxCXXClassDeclInfo.java index d74c6146381..84ef27f32d6 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXIdxCXXClassDeclInfo.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXIdxCXXClassDeclInfo.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.clang; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXIdxClientASTFile.java b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXIdxClientASTFile.java index c045c2dea48..9ab49017404 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXIdxClientASTFile.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXIdxClientASTFile.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.clang; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXIdxClientContainer.java b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXIdxClientContainer.java index 4601c6579f0..69adc84ce4d 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXIdxClientContainer.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXIdxClientContainer.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.clang; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXIdxClientEntity.java b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXIdxClientEntity.java index 91bfd873d5d..0d4b6528f3a 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXIdxClientEntity.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXIdxClientEntity.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.clang; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXIdxClientFile.java b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXIdxClientFile.java index f5877d9c33e..30d843fb21e 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXIdxClientFile.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXIdxClientFile.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.clang; @@ -13,12 +13,6 @@ import static org.bytedeco.llvm.global.clang.*; -// #ifdef __has_feature -// #if __has_feature(blocks) - -// #endif -// #endif - /** * The client's data object that is associated with a CXFile. */ diff --git a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXIdxContainerInfo.java b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXIdxContainerInfo.java index 5a95a4ff9ca..ebcfbe3b566 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXIdxContainerInfo.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXIdxContainerInfo.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.clang; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXIdxDeclInfo.java b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXIdxDeclInfo.java index e2dec99bb39..b8f3ac7148f 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXIdxDeclInfo.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXIdxDeclInfo.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.clang; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXIdxEntityInfo.java b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXIdxEntityInfo.java index 81c2db35912..6168718a3a1 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXIdxEntityInfo.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXIdxEntityInfo.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.clang; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXIdxEntityRefInfo.java b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXIdxEntityRefInfo.java index 716ef8dee3c..7547c6669de 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXIdxEntityRefInfo.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXIdxEntityRefInfo.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.clang; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXIdxIBOutletCollectionAttrInfo.java b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXIdxIBOutletCollectionAttrInfo.java index 01d4c15eea2..79debebe8f7 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXIdxIBOutletCollectionAttrInfo.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXIdxIBOutletCollectionAttrInfo.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.clang; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXIdxImportedASTFileInfo.java b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXIdxImportedASTFileInfo.java index 67ead4334e8..f7acfa4c6c7 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXIdxImportedASTFileInfo.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXIdxImportedASTFileInfo.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.clang; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXIdxIncludedFileInfo.java b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXIdxIncludedFileInfo.java index 99485eb8a6b..f6107efd0ea 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXIdxIncludedFileInfo.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXIdxIncludedFileInfo.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.clang; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXIdxLoc.java b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXIdxLoc.java index 96d4c695716..dc57292ca5c 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXIdxLoc.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXIdxLoc.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.clang; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXIdxObjCCategoryDeclInfo.java b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXIdxObjCCategoryDeclInfo.java index 18f4baa1c38..d1721865e9c 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXIdxObjCCategoryDeclInfo.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXIdxObjCCategoryDeclInfo.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.clang; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXIdxObjCContainerDeclInfo.java b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXIdxObjCContainerDeclInfo.java index cb56b240908..131df79eaed 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXIdxObjCContainerDeclInfo.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXIdxObjCContainerDeclInfo.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.clang; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXIdxObjCInterfaceDeclInfo.java b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXIdxObjCInterfaceDeclInfo.java index 9e61e976e87..8948349c019 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXIdxObjCInterfaceDeclInfo.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXIdxObjCInterfaceDeclInfo.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.clang; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXIdxObjCPropertyDeclInfo.java b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXIdxObjCPropertyDeclInfo.java index ae3863ea9aa..1d1b7de1c03 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXIdxObjCPropertyDeclInfo.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXIdxObjCPropertyDeclInfo.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.clang; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXIdxObjCProtocolRefInfo.java b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXIdxObjCProtocolRefInfo.java index ba4b92804d0..6714842f016 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXIdxObjCProtocolRefInfo.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXIdxObjCProtocolRefInfo.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.clang; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXIdxObjCProtocolRefListInfo.java b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXIdxObjCProtocolRefListInfo.java index 1fc616b2736..64f4d1e78fc 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXIdxObjCProtocolRefListInfo.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXIdxObjCProtocolRefListInfo.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.clang; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXInclusionVisitor.java b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXInclusionVisitor.java index 26aa20d2b47..d8119e7322d 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXInclusionVisitor.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXInclusionVisitor.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.clang; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXIndex.java b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXIndex.java index c3d02cd86d7..bb49cb4a90d 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXIndex.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXIndex.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.clang; @@ -12,6 +12,7 @@ import static org.bytedeco.llvm.global.clang.*; +// #endif /** \defgroup CINDEX libclang: C Interface to Clang * diff --git a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXIndexAction.java b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXIndexAction.java index bf87fd97f6c..dda6c5f1af4 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXIndexAction.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXIndexAction.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.clang; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXIndexOptions.java b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXIndexOptions.java new file mode 100644 index 00000000000..b07ea614624 --- /dev/null +++ b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXIndexOptions.java @@ -0,0 +1,102 @@ +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE + +package org.bytedeco.llvm.clang; + +import java.nio.*; +import org.bytedeco.javacpp.*; +import org.bytedeco.javacpp.annotation.*; + +import static org.bytedeco.javacpp.presets.javacpp.*; +import org.bytedeco.llvm.LLVM.*; +import static org.bytedeco.llvm.global.LLVM.*; + +import static org.bytedeco.llvm.global.clang.*; + + +/** + * Index initialization options. + * + * 0 is the default value of each member of this struct except for Size. + * Initialize the struct in one of the following three ways to avoid adapting + * code each time a new member is added to it: + *

{@code
+ * CXIndexOptions Opts;
+ * memset(&Opts, 0, sizeof(Opts));
+ * Opts.Size = sizeof(CXIndexOptions);
+ * }
+ * or explicitly initialize the first data member and zero-initialize the rest: + *
{@code
+ * CXIndexOptions Opts = { sizeof(CXIndexOptions) };
+ * }
+ * or to prevent the -Wmissing-field-initializers warning for the above version: + *
{@code
+ * CXIndexOptions Opts{};
+ * Opts.Size = sizeof(CXIndexOptions);
+ * }
+ */ +@Properties(inherit = org.bytedeco.llvm.presets.clang.class) +public class CXIndexOptions extends Pointer { + static { Loader.load(); } + /** Default native constructor. */ + public CXIndexOptions() { super((Pointer)null); allocate(); } + /** Native array allocator. Access with {@link Pointer#position(long)}. */ + public CXIndexOptions(long size) { super((Pointer)null); allocateArray(size); } + /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ + public CXIndexOptions(Pointer p) { super(p); } + private native void allocate(); + private native void allocateArray(long size); + @Override public CXIndexOptions position(long position) { + return (CXIndexOptions)super.position(position); + } + @Override public CXIndexOptions getPointer(long i) { + return new CXIndexOptions((Pointer)this).offsetAddress(i); + } + + /** + * The size of struct CXIndexOptions used for option versioning. + * + * Always initialize this member to sizeof(CXIndexOptions), or assign + * sizeof(CXIndexOptions) to it right after creating a CXIndexOptions object. + */ + public native @Cast("unsigned") int Size(); public native CXIndexOptions Size(int setter); + /** + * A CXChoice enumerator that specifies the indexing priority policy. + * @see CXGlobalOpt_ThreadBackgroundPriorityForIndexing + */ + public native @Cast("unsigned char") byte ThreadBackgroundPriorityForIndexing(); public native CXIndexOptions ThreadBackgroundPriorityForIndexing(byte setter); + /** + * A CXChoice enumerator that specifies the editing priority policy. + * @see CXGlobalOpt_ThreadBackgroundPriorityForEditing + */ + public native @Cast("unsigned char") byte ThreadBackgroundPriorityForEditing(); public native CXIndexOptions ThreadBackgroundPriorityForEditing(byte setter); + /** + * @see clang_createIndex() + */ + public native @Cast("unsigned") @NoOffset int ExcludeDeclarationsFromPCH(); public native CXIndexOptions ExcludeDeclarationsFromPCH(int setter); + /** + * @see clang_createIndex() + */ + public native @Cast("unsigned") @NoOffset int DisplayDiagnostics(); public native CXIndexOptions DisplayDiagnostics(int setter); + /** + * Store PCH in memory. If zero, PCH are stored in temporary files. + */ + public native @Cast("unsigned") @NoOffset int StorePreamblesInMemory(); public native CXIndexOptions StorePreamblesInMemory(int setter); + + + /** + * The path to a directory, in which to store temporary PCH files. If null or + * empty, the default system temporary directory is used. These PCH files are + * deleted on clean exit but stay on disk if the program crashes or is killed. + * + * This option is ignored if \a StorePreamblesInMemory is non-zero. + * + * Libclang does not create the directory at the specified path in the file + * system. Therefore it must exist, or storing PCH files will fail. + */ + public native @Cast("const char*") BytePointer PreambleStoragePath(); public native CXIndexOptions PreambleStoragePath(BytePointer setter); + /** + * Specifies a path which will contain log files for certain libclang + * invocations. A null value implies that libclang invocations are not logged. + */ + public native @Cast("const char*") BytePointer InvocationEmissionPath(); public native CXIndexOptions InvocationEmissionPath(BytePointer setter); +} diff --git a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXModule.java b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXModule.java index 92642659e28..c5214c8fe5c 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXModule.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXModule.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.clang; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXModuleMapDescriptor.java b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXModuleMapDescriptor.java index 66c3df25fcd..142319c23b5 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXModuleMapDescriptor.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXModuleMapDescriptor.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.clang; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXPlatformAvailability.java b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXPlatformAvailability.java index b500a929441..584116cdf1e 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXPlatformAvailability.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXPlatformAvailability.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.clang; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXPrintingPolicy.java b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXPrintingPolicy.java index a91e7be4319..d8da4759e7b 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXPrintingPolicy.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXPrintingPolicy.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.clang; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXRemapping.java b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXRemapping.java index ce44839d781..a45f6d74889 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXRemapping.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXRemapping.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.clang; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXSourceLocation.java b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXSourceLocation.java index 6c272dac0e3..868e1bf81fc 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXSourceLocation.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXSourceLocation.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.clang; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXSourceRange.java b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXSourceRange.java index bba82a41f31..81003ba5991 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXSourceRange.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXSourceRange.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.clang; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXSourceRangeList.java b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXSourceRangeList.java index 0cd52bdc122..8de0d6587dd 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXSourceRangeList.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXSourceRangeList.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.clang; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXString.java b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXString.java index 89a82375ed6..a63c4a7b002 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXString.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXString.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.clang; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXStringSet.java b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXStringSet.java index 36d39834631..9ca239e7422 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXStringSet.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXStringSet.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.clang; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXTUResourceUsage.java b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXTUResourceUsage.java index 4f75ddcc512..68ae7e79273 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXTUResourceUsage.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXTUResourceUsage.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.clang; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXTUResourceUsageEntry.java b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXTUResourceUsageEntry.java index a9703298dda..48146be1293 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXTUResourceUsageEntry.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXTUResourceUsageEntry.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.clang; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXTargetInfo.java b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXTargetInfo.java index 75f890fc1ee..5dd1171c89c 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXTargetInfo.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXTargetInfo.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.clang; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXToken.java b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXToken.java index e3c5e22263c..40962dc867e 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXToken.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXToken.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.clang; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXTranslationUnit.java b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXTranslationUnit.java index b959c0c4a3a..a2baed063a8 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXTranslationUnit.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXTranslationUnit.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.clang; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXType.java b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXType.java index f23b512d1c0..fd9593de548 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXType.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXType.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.clang; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXUnsavedFile.java b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXUnsavedFile.java index 5316dfbc369..f03233b517c 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXUnsavedFile.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXUnsavedFile.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.clang; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXVersion.java b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXVersion.java index e3dd5570ebb..629de625a7e 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXVersion.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXVersion.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.clang; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXVirtualFileOverlay.java b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXVirtualFileOverlay.java index 1905f7d7599..f9475c9ddb6 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/clang/CXVirtualFileOverlay.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/clang/CXVirtualFileOverlay.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.clang; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/clang/Fn_Pointer.java b/llvm/src/gen/java/org/bytedeco/llvm/clang/Fn_Pointer.java index 71f13890cba..a50a72e0fd0 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/clang/Fn_Pointer.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/clang/Fn_Pointer.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.clang; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/clang/IndexerCallbacks.java b/llvm/src/gen/java/org/bytedeco/llvm/clang/IndexerCallbacks.java index 63f04f9c1ca..951806a419a 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/clang/IndexerCallbacks.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/clang/IndexerCallbacks.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.clang; diff --git a/llvm/src/gen/java/org/bytedeco/llvm/clang/_CXChildVisitResult.java b/llvm/src/gen/java/org/bytedeco/llvm/clang/_CXChildVisitResult.java new file mode 100644 index 00000000000..492e7958f31 --- /dev/null +++ b/llvm/src/gen/java/org/bytedeco/llvm/clang/_CXChildVisitResult.java @@ -0,0 +1,33 @@ +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE + +package org.bytedeco.llvm.clang; + +import java.nio.*; +import org.bytedeco.javacpp.*; +import org.bytedeco.javacpp.annotation.*; + +import static org.bytedeco.javacpp.presets.javacpp.*; +import org.bytedeco.llvm.LLVM.*; +import static org.bytedeco.llvm.global.LLVM.*; + +import static org.bytedeco.llvm.global.clang.*; + +/** + * Visitor invoked for each cursor found by a traversal. + * + * This visitor block will be invoked for each cursor found by + * clang_visitChildrenWithBlock(). Its first argument is the cursor being + * visited, its second argument is the parent visitor for that cursor. + * + * The visitor should return one of the \c CXChildVisitResult values + * to direct clang_visitChildrenWithBlock(). + */ +// #if __has_feature(blocks) +// #else +@Opaque @Properties(inherit = org.bytedeco.llvm.presets.clang.class) +public class _CXChildVisitResult extends Pointer { + /** Empty constructor. Calls {@code super((Pointer)null)}. */ + public _CXChildVisitResult() { super((Pointer)null); } + /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ + public _CXChildVisitResult(Pointer p) { super(p); } +} diff --git a/llvm/src/gen/java/org/bytedeco/llvm/clang/_CXCursorAndRangeVisitorBlock.java b/llvm/src/gen/java/org/bytedeco/llvm/clang/_CXCursorAndRangeVisitorBlock.java new file mode 100644 index 00000000000..080754955c5 --- /dev/null +++ b/llvm/src/gen/java/org/bytedeco/llvm/clang/_CXCursorAndRangeVisitorBlock.java @@ -0,0 +1,24 @@ +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE + +package org.bytedeco.llvm.clang; + +import java.nio.*; +import org.bytedeco.javacpp.*; +import org.bytedeco.javacpp.annotation.*; + +import static org.bytedeco.javacpp.presets.javacpp.*; +import org.bytedeco.llvm.LLVM.*; +import static org.bytedeco.llvm.global.LLVM.*; + +import static org.bytedeco.llvm.global.clang.*; + + +// #if __has_feature(blocks) +// #else +@Opaque @Properties(inherit = org.bytedeco.llvm.presets.clang.class) +public class _CXCursorAndRangeVisitorBlock extends Pointer { + /** Empty constructor. Calls {@code super((Pointer)null)}. */ + public _CXCursorAndRangeVisitorBlock() { super((Pointer)null); } + /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ + public _CXCursorAndRangeVisitorBlock(Pointer p) { super(p); } +} diff --git a/llvm/src/gen/java/org/bytedeco/llvm/global/LLVM.java b/llvm/src/gen/java/org/bytedeco/llvm/global/LLVM.java index 12ecb9ad812..9552f27278f 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/global/LLVM.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/global/LLVM.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.global; @@ -160,9 +160,6 @@ public class LLVM extends org.bytedeco.llvm.presets.LLVM { // Targeting ../LLVM/LLVMPassManagerRef.java -// Targeting ../LLVM/LLVMPassRegistryRef.java - - // Targeting ../LLVM/LLVMUseRef.java @@ -848,8 +845,6 @@ Release barrier (for fences and * \} */ -public static native void LLVMInitializeCore(LLVMPassRegistryRef R); - /** Deallocate and destroy all ManagedStatic variables. @see llvm::llvm_shutdown @see ManagedStatic */ @@ -936,13 +931,6 @@ public static native void LLVMContextSetYieldCallback(LLVMContextRef C, LLVMYiel */ public static native void LLVMContextSetDiscardValueNames(LLVMContextRef C, @Cast("LLVMBool") int Discard); -/** - * Set whether the given context is in opaque pointer mode. - * - * @see LLVMContext::setOpaquePointers() - */ -public static native void LLVMContextSetOpaquePointers(LLVMContextRef C, @Cast("LLVMBool") int OpaquePointers); - /** * Destroy a context instance. * @@ -1866,8 +1854,6 @@ public static native void LLVMStructSetBody(LLVMTypeRef StructTy, @Cast("LLVMTyp /** * Obtain the element type of an array or vector type. * - * This currently also works for pointer types, but this usage is deprecated. - * * @see llvm::SequentialType::getElementType() */ public static native LLVMTypeRef LLVMGetElementType(LLVMTypeRef Ty); @@ -1893,19 +1879,42 @@ public static native void LLVMStructSetBody(LLVMTypeRef StructTy, @Cast("LLVMTyp * The created type will exist in the context that its element type * exists in. * + * @deprecated LLVMArrayType is deprecated in favor of the API accurate + * LLVMArrayType2 * @see llvm::ArrayType::get() */ public static native LLVMTypeRef LLVMArrayType(LLVMTypeRef ElementType, @Cast("unsigned") int ElementCount); +/** + * Create a fixed size array type that refers to a specific type. + * + * The created type will exist in the context that its element type + * exists in. + * + * @see llvm::ArrayType::get() + */ +public static native LLVMTypeRef LLVMArrayType2(LLVMTypeRef ElementType, @Cast("uint64_t") long ElementCount); + /** * Obtain the length of an array type. * * This only works on types that represent arrays. * + * @deprecated LLVMGetArrayLength is deprecated in favor of the API accurate + * LLVMGetArrayLength2 * @see llvm::ArrayType::getNumElements() */ public static native @Cast("unsigned") int LLVMGetArrayLength(LLVMTypeRef ArrayTy); +/** + * Obtain the length of an array type. + * + * This only works on types that represent arrays. + * + * @see llvm::ArrayType::getNumElements() + */ +public static native @Cast("uint64_t") long LLVMGetArrayLength2(LLVMTypeRef ArrayTy); + /** * Create a pointer type that points to a defined type. * @@ -2354,6 +2363,7 @@ public static native LLVMTypeRef LLVMTargetExtTypeInContext(LLVMContextRef C, St public static native LLVMValueRef LLVMIsAFenceInst(LLVMValueRef Val); public static native LLVMValueRef LLVMIsAMDNode(LLVMValueRef Val); +public static native LLVMValueRef LLVMIsAValueAsMetadata(LLVMValueRef Val); public static native LLVMValueRef LLVMIsAMDString(LLVMValueRef Val); /** Deprecated: Use LLVMGetValueName2 instead. */ @@ -2711,6 +2721,8 @@ public static native LLVMValueRef LLVMConstStruct(@Cast("LLVMValueRef*") Pointer /** * Create a ConstantArray from values. * + * @deprecated LLVMConstArray is deprecated in favor of the API accurate + * LLVMConstArray2 * @see llvm::ConstantArray::get() */ public static native LLVMValueRef LLVMConstArray(LLVMTypeRef ElementTy, @@ -2718,6 +2730,16 @@ public static native LLVMValueRef LLVMConstArray(LLVMTypeRef ElementTy, public static native LLVMValueRef LLVMConstArray(LLVMTypeRef ElementTy, @Cast("LLVMValueRef*") PointerPointer ConstantVals, @Cast("unsigned") int Length); +/** + * Create a ConstantArray from values. + * + * @see llvm::ConstantArray::get() + */ +public static native LLVMValueRef LLVMConstArray2(LLVMTypeRef ElementTy, @ByPtrPtr LLVMValueRef ConstantVals, + @Cast("uint64_t") long Length); +public static native LLVMValueRef LLVMConstArray2(LLVMTypeRef ElementTy, @Cast("LLVMValueRef*") PointerPointer ConstantVals, + @Cast("uint64_t") long Length); + /** * Create a non-anonymous ConstantStruct from values. * @@ -2828,9 +2850,6 @@ public static native LLVMValueRef LLVMConstPointerCast(LLVMValueRef ConstantVal, public static native LLVMValueRef LLVMConstIntCast(LLVMValueRef ConstantVal, LLVMTypeRef ToType, @Cast("LLVMBool") int isSigned); public static native LLVMValueRef LLVMConstFPCast(LLVMValueRef ConstantVal, LLVMTypeRef ToType); -public static native LLVMValueRef LLVMConstSelect(LLVMValueRef ConstantCondition, - LLVMValueRef ConstantIfTrue, - LLVMValueRef ConstantIfFalse); public static native LLVMValueRef LLVMConstExtractElement(LLVMValueRef VectorConstant, LLVMValueRef IndexConstant); public static native LLVMValueRef LLVMConstInsertElement(LLVMValueRef VectorConstant, @@ -3569,6 +3588,14 @@ public static native LLVMMetadataRef LLVMMDNodeInContext2(LLVMContextRef C, @Cas public static native void LLVMGetMDNodeOperands(LLVMValueRef V, @ByPtrPtr LLVMValueRef Dest); public static native void LLVMGetMDNodeOperands(LLVMValueRef V, @Cast("LLVMValueRef*") PointerPointer Dest); +/** + * Replace an operand at a specific index in a llvm::MDNode value. + * + * @see llvm::MDNode::replaceOperandWith() + */ +public static native void LLVMReplaceMDNodeOperandWith(LLVMValueRef V, @Cast("unsigned") int Index, + LLVMMetadataRef Replacement); + /** Deprecated: Use LLVMMDStringInContext2 instead. */ public static native LLVMValueRef LLVMMDStringInContext(LLVMContextRef C, @Cast("const char*") BytePointer Str, @Cast("unsigned") int SLen); @@ -4642,6 +4669,13 @@ public static native LLVMValueRef LLVMBuildNUWNeg(LLVMBuilderRef B, LLVMValueRef public static native LLVMValueRef LLVMBuildNot(LLVMBuilderRef arg0, LLVMValueRef V, @Cast("const char*") BytePointer Name); public static native LLVMValueRef LLVMBuildNot(LLVMBuilderRef arg0, LLVMValueRef V, String Name); +public static native @Cast("LLVMBool") int LLVMGetNUW(LLVMValueRef ArithInst); +public static native void LLVMSetNUW(LLVMValueRef ArithInst, @Cast("LLVMBool") int HasNUW); +public static native @Cast("LLVMBool") int LLVMGetNSW(LLVMValueRef ArithInst); +public static native void LLVMSetNSW(LLVMValueRef ArithInst, @Cast("LLVMBool") int HasNSW); +public static native @Cast("LLVMBool") int LLVMGetExact(LLVMValueRef DivOrShrInst); +public static native void LLVMSetExact(LLVMValueRef DivOrShrInst, @Cast("LLVMBool") int IsExact); + /* Memory */ public static native LLVMValueRef LLVMBuildMalloc(LLVMBuilderRef arg0, LLVMTypeRef Ty, @Cast("const char*") BytePointer Name); public static native LLVMValueRef LLVMBuildMalloc(LLVMBuilderRef arg0, LLVMTypeRef Ty, String Name); @@ -4925,8 +4959,8 @@ public static native LLVMValueRef LLVMBuildAtomicCmpXchg(LLVMBuilderRef B, LLVMV * Get the mask value at position Elt in the mask of a ShuffleVector * instruction. * - * \Returns the result of \c LLVMGetUndefMaskElem() if the mask value is undef - * at that position. + * \Returns the result of \c LLVMGetUndefMaskElem() if the mask value is + * poison at that position. */ public static native int LLVMGetMaskValue(LLVMValueRef ShuffleVectorInst, @Cast("unsigned") int Elt); @@ -5024,21 +5058,6 @@ public static native LLVMMemoryBufferRef LLVMCreateMemoryBufferWithMemoryRangeCo public static native @Cast("size_t") long LLVMGetBufferSize(LLVMMemoryBufferRef MemBuf); public static native void LLVMDisposeMemoryBuffer(LLVMMemoryBufferRef MemBuf); -/** - * \} - */ - -/** - * \defgroup LLVMCCorePassRegistry Pass Registry - * \ingroup LLVMCCore - * - * \{ - */ - -/** Return the global pass registry, for use with initialization functions. - @see llvm::PassRegistry::getPassRegistry */ -public static native LLVMPassRegistryRef LLVMGetGlobalPassRegistry(); - /** * \} */ @@ -5643,54 +5662,6 @@ public static native LLVMDisasmContextRef LLVMCreateDisasmCPUFeatures(String Tri // #endif /* LLVM_C_DISASSEMBLER_H */ -// Parsed from - -/*===-- llvm-c/Initialization.h - Initialization C Interface ------*- C -*-===*\ -|* *| -|* Part of the LLVM Project, under the Apache License v2.0 with LLVM *| -|* Exceptions. *| -|* See https://llvm.org/LICENSE.txt for license information. *| -|* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception *| -|* *| -|*===----------------------------------------------------------------------===*| -|* *| -|* This header declares the C interface to LLVM initialization routines, *| -|* which must be called before you can use the functionality provided by *| -|* the corresponding LLVM library. *| -|* *| -\*===----------------------------------------------------------------------===*/ - -// #ifndef LLVM_C_INITIALIZATION_H -// #define LLVM_C_INITIALIZATION_H - -// #include "llvm-c/ExternC.h" -// #include "llvm-c/Types.h" - -/** - * \defgroup LLVMCInitialization Initialization Routines - * \ingroup LLVMC - * - * This module contains routines used to initialize the LLVM system. - * - * \{ - */ -public static native void LLVMInitializeTransformUtils(LLVMPassRegistryRef R); -public static native void LLVMInitializeScalarOpts(LLVMPassRegistryRef R); -public static native void LLVMInitializeVectorization(LLVMPassRegistryRef R); -public static native void LLVMInitializeInstCombine(LLVMPassRegistryRef R); -public static native void LLVMInitializeIPO(LLVMPassRegistryRef R); -public static native void LLVMInitializeAnalysis(LLVMPassRegistryRef R); -public static native void LLVMInitializeIPA(LLVMPassRegistryRef R); -public static native void LLVMInitializeCodeGen(LLVMPassRegistryRef R); -public static native void LLVMInitializeTarget(LLVMPassRegistryRef R); - -/** - * \} - */ - -// #endif - - // Parsed from /*===-- llvm-c/IRReader.h - IR Reader C Interface -----------------*- C -*-===*\ @@ -8039,10 +8010,11 @@ public static native LLVMMCJITMemoryManagerRef LLVMCreateSimpleMCJITMemoryManage LLVMDWARFSourceLanguageFortran18 = 43, LLVMDWARFSourceLanguageAda2005 = 44, LLVMDWARFSourceLanguageAda2012 = 45, + LLVMDWARFSourceLanguageMojo = 46, // Vendor extensions: - LLVMDWARFSourceLanguageMips_Assembler = 46, - LLVMDWARFSourceLanguageGOOGLE_RenderScript = 47, - LLVMDWARFSourceLanguageBORLAND_Delphi = 48; + LLVMDWARFSourceLanguageMips_Assembler = 47, + LLVMDWARFSourceLanguageGOOGLE_RenderScript = 48, + LLVMDWARFSourceLanguageBORLAND_Delphi = 49; /** * The amount of debug information to emit. @@ -9198,6 +9170,12 @@ public static native LLVMMetadataRef LLVMDIBuilderCreateGlobalVariableExpression @Cast("unsigned") int LineNo, LLVMMetadataRef Ty, @Cast("LLVMBool") int LocalToUnit, LLVMMetadataRef Expr, LLVMMetadataRef Decl, @Cast("uint32_t") int AlignInBits); + +/** + * Get the dwarf::Tag of a DINode + */ +public static native @Cast("uint16_t") short LLVMGetDINodeTag(LLVMMetadataRef MD); + /** * Retrieves the \c DIVariable associated with this global variable expression. * @param GVE The global variable expression. @@ -10436,12 +10414,7 @@ public static native LLVMErrorRef LLVMOrcCreateDynamicLibrarySearchGeneratorForP * THIS API IS EXPERIMENTAL AND LIKELY TO CHANGE IN THE NEAR FUTURE! * */ -public static native LLVMErrorRef LLVMOrcCreateStaticLibrarySearchGeneratorForPath( - @ByPtrPtr LLVMOrcDefinitionGeneratorRef Result, LLVMOrcObjectLayerRef ObjLayer, - @Cast("const char*") BytePointer FileName, @Cast("const char*") BytePointer TargetTriple); -public static native LLVMErrorRef LLVMOrcCreateStaticLibrarySearchGeneratorForPath( - @Cast("LLVMOrcDefinitionGeneratorRef*") PointerPointer Result, LLVMOrcObjectLayerRef ObjLayer, - String FileName, String TargetTriple); + /** * Create a ThreadSafeContext containing a new LLVMContext. @@ -11335,465 +11308,6 @@ public static native LLVMErrorRef LLVMOrcLLJITLookup(LLVMOrcLLJITRef J, // #endif /* LLVM_C_LLJIT_H */ -// Parsed from - -/*===-- Scalar.h - Scalar Transformation Library C Interface ----*- C++ -*-===*\ -|* *| -|* Part of the LLVM Project, under the Apache License v2.0 with LLVM *| -|* Exceptions. *| -|* See https://llvm.org/LICENSE.txt for license information. *| -|* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception *| -|* *| -|*===----------------------------------------------------------------------===*| -|* *| -|* This header declares the C interface to libLLVMInstCombine.a, which *| -|* combines instructions to form fewer, simple IR instructions. *| -|* *| -\*===----------------------------------------------------------------------===*/ - -// #ifndef LLVM_C_TRANSFORMS_INSTCOMBINE_H -// #define LLVM_C_TRANSFORMS_INSTCOMBINE_H - -// #include "llvm-c/ExternC.h" -// #include "llvm-c/Types.h" - -/** - * \defgroup LLVMCTransformsInstCombine Instruction Combining transformations - * \ingroup LLVMCTransforms - * - * \{ - */ - -/** See llvm::createInstructionCombiningPass function. */ -public static native void LLVMAddInstructionCombiningPass(LLVMPassManagerRef PM); - -/** - * \} - */ - -// #endif - - - -// Parsed from - -/*===-- IPO.h - Interprocedural Transformations C Interface -----*- C++ -*-===*\ -|* *| -|* Part of the LLVM Project, under the Apache License v2.0 with LLVM *| -|* Exceptions. *| -|* See https://llvm.org/LICENSE.txt for license information. *| -|* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception *| -|* *| -|*===----------------------------------------------------------------------===*| -|* *| -|* This header declares the C interface to libLLVMIPO.a, which implements *| -|* various interprocedural transformations of the LLVM IR. *| -|* *| -\*===----------------------------------------------------------------------===*/ - -// #ifndef LLVM_C_TRANSFORMS_IPO_H -// #define LLVM_C_TRANSFORMS_IPO_H - -// #include "llvm-c/ExternC.h" -// #include "llvm-c/Types.h" - -/** - * \defgroup LLVMCTransformsIPO Interprocedural transformations - * \ingroup LLVMCTransforms - * - * \{ - */ - -/** See llvm::createConstantMergePass function. */ -public static native void LLVMAddConstantMergePass(LLVMPassManagerRef PM); - -/** See llvm::createMergeFunctionsPass function. */ -public static native void LLVMAddMergeFunctionsPass(LLVMPassManagerRef PM); - -/** See llvm::createCalledValuePropagationPass function. */ -public static native void LLVMAddCalledValuePropagationPass(LLVMPassManagerRef PM); - -/** See llvm::createDeadArgEliminationPass function. */ -public static native void LLVMAddDeadArgEliminationPass(LLVMPassManagerRef PM); - -/** See llvm::createFunctionAttrsPass function. */ -public static native void LLVMAddFunctionAttrsPass(LLVMPassManagerRef PM); - -/** See llvm::createFunctionInliningPass function. */ -public static native void LLVMAddFunctionInliningPass(LLVMPassManagerRef PM); - -/** See llvm::createAlwaysInlinerPass function. */ -public static native void LLVMAddAlwaysInlinerPass(LLVMPassManagerRef PM); - -/** See llvm::createGlobalDCEPass function. */ -public static native void LLVMAddGlobalDCEPass(LLVMPassManagerRef PM); - -/** See llvm::createGlobalOptimizerPass function. */ -public static native void LLVMAddGlobalOptimizerPass(LLVMPassManagerRef PM); - -/** See llvm::createIPSCCPPass function. */ -public static native void LLVMAddIPSCCPPass(LLVMPassManagerRef PM); - -/** See llvm::createInternalizePass function. */ -public static native void LLVMAddInternalizePass(LLVMPassManagerRef arg0, @Cast("unsigned") int AllButMain); -// Targeting ../LLVM/MustPreserve_LLVMValueRef_Pointer.java - - -public static native void LLVMAddInternalizePassWithMustPreservePredicate( - LLVMPassManagerRef PM, - Pointer Context, - MustPreserve_LLVMValueRef_Pointer MustPreserve); - -/** See llvm::createStripDeadPrototypesPass function. */ -public static native void LLVMAddStripDeadPrototypesPass(LLVMPassManagerRef PM); - -/** See llvm::createStripSymbolsPass function. */ -public static native void LLVMAddStripSymbolsPass(LLVMPassManagerRef PM); - -/** - * \} - */ - -// #endif - - -// Parsed from - -/*===-- llvm-c/Transform/PassManagerBuilder.h - PMB C Interface ---*- C -*-===*\ -|* *| -|* Part of the LLVM Project, under the Apache License v2.0 with LLVM *| -|* Exceptions. *| -|* See https://llvm.org/LICENSE.txt for license information. *| -|* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception *| -|* *| -|*===----------------------------------------------------------------------===*| -|* *| -|* This header declares the C interface to the PassManagerBuilder class. *| -|* *| -\*===----------------------------------------------------------------------===*/ - -// #ifndef LLVM_C_TRANSFORMS_PASSMANAGERBUILDER_H -// #define LLVM_C_TRANSFORMS_PASSMANAGERBUILDER_H - -// #include "llvm-c/ExternC.h" -// #include "llvm-c/Types.h" -// Targeting ../LLVM/LLVMPassManagerBuilderRef.java - - - -/** - * \defgroup LLVMCTransformsPassManagerBuilder Pass manager builder - * \ingroup LLVMCTransforms - * - * \{ - */ - -/** See llvm::PassManagerBuilder. */ -public static native LLVMPassManagerBuilderRef LLVMPassManagerBuilderCreate(); -public static native void LLVMPassManagerBuilderDispose(LLVMPassManagerBuilderRef PMB); - -/** See llvm::PassManagerBuilder::OptLevel. */ -public static native void LLVMPassManagerBuilderSetOptLevel(LLVMPassManagerBuilderRef PMB, - @Cast("unsigned") int OptLevel); - -/** See llvm::PassManagerBuilder::SizeLevel. */ -public static native void LLVMPassManagerBuilderSetSizeLevel(LLVMPassManagerBuilderRef PMB, - @Cast("unsigned") int SizeLevel); - -/** See llvm::PassManagerBuilder::DisableUnitAtATime. */ -public static native void LLVMPassManagerBuilderSetDisableUnitAtATime(LLVMPassManagerBuilderRef PMB, - @Cast("LLVMBool") int Value); - -/** See llvm::PassManagerBuilder::DisableUnrollLoops. */ -public static native void LLVMPassManagerBuilderSetDisableUnrollLoops(LLVMPassManagerBuilderRef PMB, - @Cast("LLVMBool") int Value); - -/** See llvm::PassManagerBuilder::DisableSimplifyLibCalls */ -public static native void LLVMPassManagerBuilderSetDisableSimplifyLibCalls(LLVMPassManagerBuilderRef PMB, - @Cast("LLVMBool") int Value); - -/** See llvm::PassManagerBuilder::Inliner. */ -public static native void LLVMPassManagerBuilderUseInlinerWithThreshold(LLVMPassManagerBuilderRef PMB, - @Cast("unsigned") int Threshold); - -/** See llvm::PassManagerBuilder::populateFunctionPassManager. */ -public static native void LLVMPassManagerBuilderPopulateFunctionPassManager(LLVMPassManagerBuilderRef PMB, - LLVMPassManagerRef PM); - -/** See llvm::PassManagerBuilder::populateModulePassManager. */ -public static native void LLVMPassManagerBuilderPopulateModulePassManager(LLVMPassManagerBuilderRef PMB, - LLVMPassManagerRef PM); - -/** - * \} - */ - -// #endif - - -// Parsed from - -/*===-- Scalar.h - Scalar Transformation Library C Interface ----*- C++ -*-===*\ -|* *| -|* Part of the LLVM Project, under the Apache License v2.0 with LLVM *| -|* Exceptions. *| -|* See https://llvm.org/LICENSE.txt for license information. *| -|* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception *| -|* *| -|*===----------------------------------------------------------------------===*| -|* *| -|* This header declares the C interface to libLLVMScalarOpts.a, which *| -|* implements various scalar transformations of the LLVM IR. *| -|* *| -|* Many exotic languages can interoperate with C code but have a harder time *| -|* with C++ due to name mangling. So in addition to C, this interface enables *| -|* tools written in such languages. *| -|* *| -\*===----------------------------------------------------------------------===*/ - -// #ifndef LLVM_C_TRANSFORMS_SCALAR_H -// #define LLVM_C_TRANSFORMS_SCALAR_H - -// #include "llvm-c/ExternC.h" -// #include "llvm-c/Types.h" - -/** - * \defgroup LLVMCTransformsScalar Scalar transformations - * \ingroup LLVMCTransforms - * - * \{ - */ - -/** See llvm::createAggressiveDCEPass function. */ -public static native void LLVMAddAggressiveDCEPass(LLVMPassManagerRef PM); - -/** See llvm::createDeadCodeEliminationPass function. */ -public static native void LLVMAddDCEPass(LLVMPassManagerRef PM); - -/** See llvm::createBitTrackingDCEPass function. */ -public static native void LLVMAddBitTrackingDCEPass(LLVMPassManagerRef PM); - -/** See llvm::createAlignmentFromAssumptionsPass function. */ -public static native void LLVMAddAlignmentFromAssumptionsPass(LLVMPassManagerRef PM); - -/** See llvm::createCFGSimplificationPass function. */ -public static native void LLVMAddCFGSimplificationPass(LLVMPassManagerRef PM); - -/** See llvm::createDeadStoreEliminationPass function. */ -public static native void LLVMAddDeadStoreEliminationPass(LLVMPassManagerRef PM); - -/** See llvm::createScalarizerPass function. */ -public static native void LLVMAddScalarizerPass(LLVMPassManagerRef PM); - -/** See llvm::createMergedLoadStoreMotionPass function. */ -public static native void LLVMAddMergedLoadStoreMotionPass(LLVMPassManagerRef PM); - -/** See llvm::createGVNPass function. */ -public static native void LLVMAddGVNPass(LLVMPassManagerRef PM); - -/** See llvm::createGVNPass function. */ -public static native void LLVMAddNewGVNPass(LLVMPassManagerRef PM); - -/** See llvm::createIndVarSimplifyPass function. */ -public static native void LLVMAddIndVarSimplifyPass(LLVMPassManagerRef PM); - -/** See llvm::createInstructionCombiningPass function. */ - -/** See llvm::createInstSimplifyLegacyPass function. */ -public static native void LLVMAddInstructionSimplifyPass(LLVMPassManagerRef PM); - -/** See llvm::createJumpThreadingPass function. */ -public static native void LLVMAddJumpThreadingPass(LLVMPassManagerRef PM); - -/** See llvm::createLICMPass function. */ -public static native void LLVMAddLICMPass(LLVMPassManagerRef PM); - -/** See llvm::createLoopDeletionPass function. */ -public static native void LLVMAddLoopDeletionPass(LLVMPassManagerRef PM); - -/** See llvm::createLoopIdiomPass function */ -public static native void LLVMAddLoopIdiomPass(LLVMPassManagerRef PM); - -/** See llvm::createLoopRotatePass function. */ -public static native void LLVMAddLoopRotatePass(LLVMPassManagerRef PM); - -/** See llvm::createLoopRerollPass function. */ -public static native void LLVMAddLoopRerollPass(LLVMPassManagerRef PM); - -/** See llvm::createLoopUnrollPass function. */ -public static native void LLVMAddLoopUnrollPass(LLVMPassManagerRef PM); - -/** See llvm::createLoopUnrollAndJamPass function. */ -public static native void LLVMAddLoopUnrollAndJamPass(LLVMPassManagerRef PM); - -/** See llvm::createLowerAtomicPass function. */ -public static native void LLVMAddLowerAtomicPass(LLVMPassManagerRef PM); - -/** See llvm::createMemCpyOptPass function. */ -public static native void LLVMAddMemCpyOptPass(LLVMPassManagerRef PM); - -/** See llvm::createPartiallyInlineLibCallsPass function. */ -public static native void LLVMAddPartiallyInlineLibCallsPass(LLVMPassManagerRef PM); - -/** See llvm::createReassociatePass function. */ -public static native void LLVMAddReassociatePass(LLVMPassManagerRef PM); - -/** See llvm::createSCCPPass function. */ -public static native void LLVMAddSCCPPass(LLVMPassManagerRef PM); - -/** See llvm::createSROAPass function. */ -public static native void LLVMAddScalarReplAggregatesPass(LLVMPassManagerRef PM); - -/** See llvm::createSROAPass function. */ -public static native void LLVMAddScalarReplAggregatesPassSSA(LLVMPassManagerRef PM); - -/** See llvm::createSROAPass function. */ -public static native void LLVMAddScalarReplAggregatesPassWithThreshold(LLVMPassManagerRef PM, - int Threshold); - -/** See llvm::createSimplifyLibCallsPass function. */ -public static native void LLVMAddSimplifyLibCallsPass(LLVMPassManagerRef PM); - -/** See llvm::createTailCallEliminationPass function. */ -public static native void LLVMAddTailCallEliminationPass(LLVMPassManagerRef PM); - -/** See llvm::demotePromoteMemoryToRegisterPass function. */ -public static native void LLVMAddDemoteMemoryToRegisterPass(LLVMPassManagerRef PM); - -/** See llvm::createVerifierPass function. */ -public static native void LLVMAddVerifierPass(LLVMPassManagerRef PM); - -/** See llvm::createCorrelatedValuePropagationPass function */ -public static native void LLVMAddCorrelatedValuePropagationPass(LLVMPassManagerRef PM); - -/** See llvm::createEarlyCSEPass function */ -public static native void LLVMAddEarlyCSEPass(LLVMPassManagerRef PM); - -/** See llvm::createEarlyCSEPass function */ -public static native void LLVMAddEarlyCSEMemSSAPass(LLVMPassManagerRef PM); - -/** See llvm::createLowerExpectIntrinsicPass function */ -public static native void LLVMAddLowerExpectIntrinsicPass(LLVMPassManagerRef PM); - -/** See llvm::createLowerConstantIntrinsicsPass function */ -public static native void LLVMAddLowerConstantIntrinsicsPass(LLVMPassManagerRef PM); - -/** See llvm::createTypeBasedAliasAnalysisPass function */ -public static native void LLVMAddTypeBasedAliasAnalysisPass(LLVMPassManagerRef PM); - -/** See llvm::createScopedNoAliasAAPass function */ -public static native void LLVMAddScopedNoAliasAAPass(LLVMPassManagerRef PM); - -/** See llvm::createBasicAliasAnalysisPass function */ -public static native void LLVMAddBasicAliasAnalysisPass(LLVMPassManagerRef PM); - -/** See llvm::createUnifyFunctionExitNodesPass function */ -public static native void LLVMAddUnifyFunctionExitNodesPass(LLVMPassManagerRef PM); - -/** - * \} - */ - -// #endif - - -// Parsed from - -/*===-- Utils.h - Transformation Utils Library C Interface ------*- C++ -*-===*\ -|* *| -|* Part of the LLVM Project, under the Apache License v2.0 with LLVM *| -|* Exceptions. *| -|* See https://llvm.org/LICENSE.txt for license information. *| -|* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception *| -|* *| -|*===----------------------------------------------------------------------===*| -|* *| -|* This header declares the C interface to libLLVMTransformUtils.a, which *| -|* implements various transformation utilities of the LLVM IR. *| -|* *| -|* Many exotic languages can interoperate with C code but have a harder time *| -|* with C++ due to name mangling. So in addition to C, this interface enables *| -|* tools written in such languages. *| -|* *| -\*===----------------------------------------------------------------------===*/ - -// #ifndef LLVM_C_TRANSFORMS_UTILS_H -// #define LLVM_C_TRANSFORMS_UTILS_H - -// #include "llvm-c/ExternC.h" -// #include "llvm-c/Types.h" - -/** - * \defgroup LLVMCTransformsUtils Transformation Utilities - * \ingroup LLVMCTransforms - * - * \{ - */ - -/** See llvm::createLowerSwitchPass function. */ -public static native void LLVMAddLowerSwitchPass(LLVMPassManagerRef PM); - -/** See llvm::createPromoteMemoryToRegisterPass function. */ -public static native void LLVMAddPromoteMemoryToRegisterPass(LLVMPassManagerRef PM); - -/** See llvm::createAddDiscriminatorsPass function. */ -public static native void LLVMAddAddDiscriminatorsPass(LLVMPassManagerRef PM); - -/** - * \} - */ - -// #endif - - - -// Parsed from - -/*===---------------------------Vectorize.h --------------------- -*- C -*-===*\ -|*===----------- Vectorization Transformation Library C Interface ---------===*| -|* *| -|* Part of the LLVM Project, under the Apache License v2.0 with LLVM *| -|* Exceptions. *| -|* See https://llvm.org/LICENSE.txt for license information. *| -|* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception *| -|* *| -|*===----------------------------------------------------------------------===*| -|* *| -|* This header declares the C interface to libLLVMVectorize.a, which *| -|* implements various vectorization transformations of the LLVM IR. *| -|* *| -|* Many exotic languages can interoperate with C code but have a harder time *| -|* with C++ due to name mangling. So in addition to C, this interface enables *| -|* tools written in such languages. *| -|* *| -\*===----------------------------------------------------------------------===*/ - -// #ifndef LLVM_C_TRANSFORMS_VECTORIZE_H -// #define LLVM_C_TRANSFORMS_VECTORIZE_H - -// #include "llvm-c/ExternC.h" -// #include "llvm-c/Types.h" - -/** - * \defgroup LLVMCTransformsVectorize Vectorization transformations - * \ingroup LLVMCTransforms - * - * \{ - */ - -/** See llvm::createLoopVectorizePass function. */ -public static native void LLVMAddLoopVectorizePass(LLVMPassManagerRef PM); - -/** See llvm::createSLPVectorizerPass function. */ -public static native void LLVMAddSLPVectorizePass(LLVMPassManagerRef PM); - -/** - * \} - */ - -// #endif - - // Parsed from /*===-- llvm-c/Transform/PassBuilder.h - PassBuilder for LLVM C ---*- C -*-===*\ @@ -11884,6 +11398,9 @@ public static native void LLVMPassBuilderOptionsSetCallGraphProfile( public static native void LLVMPassBuilderOptionsSetMergeFunctions(LLVMPassBuilderOptionsRef Options, @Cast("LLVMBool") int MergeFunctions); +public static native void LLVMPassBuilderOptionsSetInlinerThreshold( + LLVMPassBuilderOptionsRef Options, int Threshold); + /** * Dispose of a heap-allocated PassBuilderOptions instance */ @@ -11914,7 +11431,6 @@ public static native void LLVMPassBuilderOptionsSetMergeFunctions(LLVMPassBuilde // #ifndef POLLY_LINKALLPASSES_H // #define POLLY_LINKALLPASSES_H -// #include "polly/CodeGen/PPCGCodeGeneration.h" // #include "polly/Config/config.h" // #include "polly/Support/DumpFunctionPass.h" // #include "polly/Support/DumpModulePass.h" @@ -11953,8 +11469,6 @@ public static native void LLVMPassBuilderOptionsSetMergeFunctions(LLVMPassBuilde @Namespace("polly") public static native Pass createIslAstInfoWrapperPassPass(); @Namespace("polly") public static native Pass createIslAstInfoPrinterLegacyPass(@Cast("llvm::raw_ostream*") @ByRef Pointer OS); @Namespace("polly") public static native Pass createCodeGenerationPass(); -// #ifdef GPU_CODEGEN -// #endif @Namespace("polly") public static native Pass createIslScheduleOptimizerWrapperPass(); @Namespace("polly") public static native Pass createIslScheduleOptimizerPrinterLegacyPass(@Cast("llvm::raw_ostream*") @ByRef Pointer OS); @Namespace("polly") public static native Pass createFlattenSchedulePass(); @@ -11994,8 +11508,6 @@ public static native void LLVMPassBuilderOptionsSetMergeFunctions(LLVMPassBuilde @Namespace("llvm") public static native void initializeIslAstInfoWrapperPassPass(@ByRef PassRegistry arg0); @Namespace("llvm") public static native void initializeIslAstInfoPrinterLegacyPassPass(@ByRef PassRegistry arg0); @Namespace("llvm") public static native void initializeCodeGenerationPass(@ByRef PassRegistry arg0); -// #ifdef GPU_CODEGEN -// #endif @Namespace("llvm") public static native void initializeIslScheduleOptimizerWrapperPassPass(@ByRef PassRegistry arg0); @Namespace("llvm") public static native void initializeIslScheduleOptimizerPrinterLegacyPassPass(@ByRef PassRegistry arg0); @Namespace("llvm") public static native void initializeMaximalStaticExpanderWrapperPassPass(@ByRef PassRegistry arg0); @@ -12046,16 +11558,16 @@ public static native void LLVMPassBuilderOptionsSetMergeFunctions(LLVMPassBuilde // #include "llvm/ExecutionEngine/ExecutionEngine.h" // #include "llvm/Target/TargetMachine.h" // #include "llvm/Transforms/IPO.h" -// #include "llvm/Transforms/IPO/PassManagerBuilder.h" +//#include "llvm/Transforms/IPO/PassManagerBuilder.h" // #include "llvm/IR/Verifier.h" // #include "llvm/IR/LegacyPassManager.h" // #include "llvm/CodeGen/TargetPassConfig.h" // #include "llvm/MC/TargetRegistry.h" // #include "llvm/Analysis/TargetLibraryInfo.h" // #include "llvm/Analysis/TargetTransformInfo.h" -// #include "llvm/MC/SubtargetFeature.h" +//#include "llvm/MC/SubtargetFeature.h" // #include "llvm/Pass.h" -// #include "llvm-c/Transforms/PassManagerBuilder.h" +//#include "llvm-c/Transforms/PassManagerBuilder.h" // #include "llvm-c/Types.h" // #include "llvm-c/Error.h" diff --git a/llvm/src/gen/java/org/bytedeco/llvm/global/clang.java b/llvm/src/gen/java/org/bytedeco/llvm/global/clang.java index 80e133af46e..6b65b8e0e06 100644 --- a/llvm/src/gen/java/org/bytedeco/llvm/global/clang.java +++ b/llvm/src/gen/java/org/bytedeco/llvm/global/clang.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.llvm.global; @@ -1262,7 +1262,7 @@ public static native CXDiagnosticSet clang_loadDiagnostics( * compatible, thus CINDEX_VERSION_MAJOR is expected to remain stable. */ public static final int CINDEX_VERSION_MAJOR = 0; -public static final int CINDEX_VERSION_MINOR = 63; +public static final int CINDEX_VERSION_MINOR = 64; // #define CINDEX_VERSION_ENCODE(major, minor) (((major)*10000) + ((minor)*1)) @@ -1275,6 +1275,9 @@ public static native CXDiagnosticSet clang_loadDiagnostics( // #define CINDEX_VERSION_STRING // CINDEX_VERSION_STRINGIZE(CINDEX_VERSION_MAJOR, CINDEX_VERSION_MINOR) + +// #ifndef __has_feature +// #define __has_feature(feature) 0 // Targeting ../clang/CXIndex.java @@ -1428,6 +1431,22 @@ public static native CXIndex clang_createIndex(int excludeDeclarationsFromPCH, */ public static native void clang_disposeIndex(CXIndex index); +/** enum CXChoice */ +public static final int + /** + * Use the default value of an option that may depend on the process + * environment. + */ + CXChoice_Default = 0, + /** + * Enable the option. + */ + CXChoice_Enabled = 1, + /** + * Disable the option. + */ + CXChoice_Disabled = 2; + /** enum CXGlobalOptFlags */ public static final int /** @@ -1460,10 +1479,63 @@ public static native CXIndex clang_createIndex(int excludeDeclarationsFromPCH, CXGlobalOpt_ThreadBackgroundPriorityForAll = CXGlobalOpt_ThreadBackgroundPriorityForIndexing | CXGlobalOpt_ThreadBackgroundPriorityForEditing; +// Targeting ../clang/CXIndexOptions.java + + + +/** + * Provides a shared context for creating translation units. + * + * Call this function instead of clang_createIndex() if you need to configure + * the additional options in CXIndexOptions. + * + * @return The created index or null in case of error, such as an unsupported + * value of options->Size. + * + * For example: + *
{@code
+ * CXIndex createIndex(const char *ApplicationTemporaryPath) {
+ *   const int ExcludeDeclarationsFromPCH = 1;
+ *   const int DisplayDiagnostics = 1;
+ *   CXIndex Idx;
+ * #if CINDEX_VERSION_MINOR >= 64
+ *   CXIndexOptions Opts;
+ *   memset(&Opts, 0, sizeof(Opts));
+ *   Opts.Size = sizeof(CXIndexOptions);
+ *   Opts.ThreadBackgroundPriorityForIndexing = 1;
+ *   Opts.ExcludeDeclarationsFromPCH = ExcludeDeclarationsFromPCH;
+ *   Opts.DisplayDiagnostics = DisplayDiagnostics;
+ *   Opts.PreambleStoragePath = ApplicationTemporaryPath;
+ *   Idx = clang_createIndexWithOptions(&Opts);
+ *   if (Idx)
+ *     return Idx;
+ *   fprintf(stderr,
+ *           "clang_createIndexWithOptions() failed. "
+ *           "CINDEX_VERSION_MINOR = %d, sizeof(CXIndexOptions) = %u\n",
+ *           CINDEX_VERSION_MINOR, Opts.Size);
+ * #else
+ *   (void)ApplicationTemporaryPath;
+ * #endif
+ *   Idx = clang_createIndex(ExcludeDeclarationsFromPCH, DisplayDiagnostics);
+ *   clang_CXIndex_setGlobalOptions(
+ *       Idx, clang_CXIndex_getGlobalOptions(Idx) |
+ *                CXGlobalOpt_ThreadBackgroundPriorityForIndexing);
+ *   return Idx;
+ * }
+ * }
+ * + * @see clang_createIndex() + */ +public static native CXIndex clang_createIndexWithOptions(@Const CXIndexOptions options); /** * Sets general options associated with a CXIndex. * + * This function is DEPRECATED. Set + * CXIndexOptions::ThreadBackgroundPriorityForIndexing and/or + * CXIndexOptions::ThreadBackgroundPriorityForEditing and call + * clang_createIndexWithOptions() instead. + * * For example: *
{@code
  * CXIndex idx = ...;
@@ -1479,6 +1551,9 @@ public static native CXIndex clang_createIndex(int excludeDeclarationsFromPCH,
 /**
  * Gets the general options associated with a CXIndex.
  *
+ * This function allows to obtain the final option values used by libclang after
+ * specifying the option policies via CXChoice enumerators.
+ *
  * @return A bitmask of options, a bitwise OR of CXGlobalOpt_XXX flags that
  * are associated with the given CXIndex object.
  */
@@ -1487,6 +1562,9 @@ public static native CXIndex clang_createIndex(int excludeDeclarationsFromPCH,
 /**
  * Sets the invocation emission path option in a CXIndex.
  *
+ * This function is DEPRECATED. Set CXIndexOptions::InvocationEmissionPath and
+ * call clang_createIndexWithOptions() instead.
+ *
  * The invocation emission path specifies a path which will contain log
  * files for certain libclang invocations. A null value (default) implies that
  * libclang invocations are not logged..
@@ -3997,10 +4075,15 @@ public static native void clang_getOverriddenCursors(@ByVal CXCursor cursor,
   CXType_OCLIntelSubgroupAVCImeResult = 169,
   CXType_OCLIntelSubgroupAVCRefResult = 170,
   CXType_OCLIntelSubgroupAVCSicResult = 171,
+  CXType_OCLIntelSubgroupAVCImeResultSingleReferenceStreamout = 172,
+  CXType_OCLIntelSubgroupAVCImeResultDualReferenceStreamout = 173,
+  CXType_OCLIntelSubgroupAVCImeSingleReferenceStreamin = 174,
+  CXType_OCLIntelSubgroupAVCImeDualReferenceStreamin = 175,
+
+  /* Old aliases for AVC OpenCL extension types. */
   CXType_OCLIntelSubgroupAVCImeResultSingleRefStreamout = 172,
   CXType_OCLIntelSubgroupAVCImeResultDualRefStreamout = 173,
   CXType_OCLIntelSubgroupAVCImeSingleRefStreamin = 174,
-
   CXType_OCLIntelSubgroupAVCImeDualRefStreamin = 175,
 
   CXType_ExtVector = 176,
@@ -4090,9 +4173,25 @@ public static native void clang_getOverriddenCursors(@ByVal CXCursor cursor,
 public static native @Cast("unsigned long long") long clang_getEnumConstantDeclUnsignedValue(@ByVal CXCursor C);
 
 /**
- * Retrieve the bit width of a bit field declaration as an integer.
+ * Returns non-zero if the cursor specifies a Record member that is a bit-field.
+ */
+public static native @Cast("unsigned") int clang_Cursor_isBitField(@ByVal CXCursor C);
+
+/**
+ * Retrieve the bit width of a bit-field declaration as an integer.
+ *
+ * If the cursor does not reference a bit-field, or if the bit-field's width
+ * expression cannot be evaluated, -1 is returned.
  *
- * If a cursor that is not a bit field declaration is passed in, -1 is returned.
+ * For example:
+ * 
{@code
+ * if (clang_Cursor_isBitField(Cursor)) {
+ *   int Width = clang_getFieldDeclBitWidth(Cursor);
+ *   if (Width != -1) {
+ *     // The bit-field width is not value-dependent.
+ *   }
+ * }
+ * }
*/ public static native int clang_getFieldDeclBitWidth(@ByVal CXCursor C); @@ -4720,12 +4819,6 @@ public static native long clang_Cursor_getTemplateArgumentValue(@ByVal CXCursor */ public static native @Cast("CXRefQualifierKind") int clang_Type_getCXXRefQualifier(@ByVal CXType T); -/** - * Returns non-zero if the cursor specifies a Record member that is a - * bitfield. - */ -public static native @Cast("unsigned") int clang_Cursor_isBitField(@ByVal CXCursor C); - /** * Returns 1 if the base class specified by the cursor with kind * CX_CXXBaseSpecifier is virtual. @@ -4885,11 +4978,16 @@ public static native long clang_Cursor_getTemplateArgumentValue(@ByVal CXCursor public static native @Cast("unsigned") int clang_visitChildren(@ByVal CXCursor parent, CXCursorVisitor visitor, CXClientData client_data); -// #ifdef __has_feature -// #if __has_feature(blocks) -// #endif +// Targeting ../clang/_CXChildVisitResult.java + + // #endif +/** + * Visits the children of a cursor using the specified block. Behaves + * identically to clang_visitChildren() in all other respects. + */ + /** * \} */ @@ -5511,6 +5609,51 @@ public static native CXFile clang_Module_getTopLevelHeader(CXTranslationUnit arg */ public static native @Cast("unsigned") int clang_CXXMethod_isMoveAssignmentOperator(@ByVal CXCursor C); +/** + * Determines if a C++ constructor or conversion function was declared + * explicit, returning 1 if such is the case and 0 otherwise. + * + * Constructors or conversion functions are declared explicit through + * the use of the explicit specifier. + * + * For example, the following constructor and conversion function are + * not explicit as they lack the explicit specifier: + * + * class Foo { + * Foo(); + * operator int(); + * }; + * + * While the following constructor and conversion function are + * explicit as they are declared with the explicit specifier. + * + * class Foo { + * explicit Foo(); + * explicit operator int(); + * }; + * + * This function will return 0 when given a cursor pointing to one of + * the former declarations and it will return 1 for a cursor pointing + * to the latter declarations. + * + * The explicit specifier allows the user to specify a + * conditional compile-time expression whose value decides + * whether the marked element is explicit or not. + * + * For example: + * + * constexpr bool foo(int i) { return i % 2 == 0; } + * + * class Foo { + * explicit(foo(1)) Foo(); + * explicit(foo(2)) operator int(); + * } + * + * This function will return 0 for the constructor and 1 for + * the conversion function. + */ +public static native @Cast("unsigned") int clang_CXXMethod_isExplicit(@ByVal CXCursor C); + /** * Determine if a C++ record is abstract, i.e. whether a class or struct * has a pure virtual member function. @@ -6759,6 +6902,10 @@ public static native void clang_remap_getFilenames(CXRemapping arg0, @Cast("unsi */ public static native @Cast("CXResult") int clang_findIncludesInFile( CXTranslationUnit TU, CXFile file, @ByVal CXCursorAndRangeVisitor visitor); +// Targeting ../clang/_CXCursorAndRangeVisitorBlock.java + + +// #endif // Targeting ../clang/CXIdxClientFile.java @@ -7225,6 +7372,140 @@ public static native void clang_indexLoc_getFileLocation(@ByVal CXIdxLoc loc, public static native @Cast("unsigned") int clang_Type_visitFields(@ByVal CXType T, CXFieldVisitor visitor, CXClientData client_data); +/** + * Describes the kind of binary operators. + */ +/** enum CXBinaryOperatorKind */ +public static final int + /** This value describes cursors which are not binary operators. */ + CXBinaryOperator_Invalid = 0, + /** C++ Pointer - to - member operator. */ + CXBinaryOperator_PtrMemD = 1, + /** C++ Pointer - to - member operator. */ + CXBinaryOperator_PtrMemI = 2, + /** Multiplication operator. */ + CXBinaryOperator_Mul = 3, + /** Division operator. */ + CXBinaryOperator_Div = 4, + /** Remainder operator. */ + CXBinaryOperator_Rem = 5, + /** Addition operator. */ + CXBinaryOperator_Add = 6, + /** Subtraction operator. */ + CXBinaryOperator_Sub = 7, + /** Bitwise shift left operator. */ + CXBinaryOperator_Shl = 8, + /** Bitwise shift right operator. */ + CXBinaryOperator_Shr = 9, + /** C++ three-way comparison (spaceship) operator. */ + CXBinaryOperator_Cmp = 10, + /** Less than operator. */ + CXBinaryOperator_LT = 11, + /** Greater than operator. */ + CXBinaryOperator_GT = 12, + /** Less or equal operator. */ + CXBinaryOperator_LE = 13, + /** Greater or equal operator. */ + CXBinaryOperator_GE = 14, + /** Equal operator. */ + CXBinaryOperator_EQ = 15, + /** Not equal operator. */ + CXBinaryOperator_NE = 16, + /** Bitwise AND operator. */ + CXBinaryOperator_And = 17, + /** Bitwise XOR operator. */ + CXBinaryOperator_Xor = 18, + /** Bitwise OR operator. */ + CXBinaryOperator_Or = 19, + /** Logical AND operator. */ + CXBinaryOperator_LAnd = 20, + /** Logical OR operator. */ + CXBinaryOperator_LOr = 21, + /** Assignment operator. */ + CXBinaryOperator_Assign = 22, + /** Multiplication assignment operator. */ + CXBinaryOperator_MulAssign = 23, + /** Division assignment operator. */ + CXBinaryOperator_DivAssign = 24, + /** Remainder assignment operator. */ + CXBinaryOperator_RemAssign = 25, + /** Addition assignment operator. */ + CXBinaryOperator_AddAssign = 26, + /** Subtraction assignment operator. */ + CXBinaryOperator_SubAssign = 27, + /** Bitwise shift left assignment operator. */ + CXBinaryOperator_ShlAssign = 28, + /** Bitwise shift right assignment operator. */ + CXBinaryOperator_ShrAssign = 29, + /** Bitwise AND assignment operator. */ + CXBinaryOperator_AndAssign = 30, + /** Bitwise XOR assignment operator. */ + CXBinaryOperator_XorAssign = 31, + /** Bitwise OR assignment operator. */ + CXBinaryOperator_OrAssign = 32, + /** Comma operator. */ + CXBinaryOperator_Comma = 33; + +/** + * Retrieve the spelling of a given CXBinaryOperatorKind. + */ +public static native @ByVal CXString clang_getBinaryOperatorKindSpelling(@Cast("CXBinaryOperatorKind") int kind); + +/** + * Retrieve the binary operator kind of this cursor. + * + * If this cursor is not a binary operator then returns Invalid. + */ +public static native @Cast("CXBinaryOperatorKind") int clang_getCursorBinaryOperatorKind(@ByVal CXCursor cursor); + +/** + * Describes the kind of unary operators. + */ +/** enum CXUnaryOperatorKind */ +public static final int + /** This value describes cursors which are not unary operators. */ + CXUnaryOperator_Invalid = 0, + /** Postfix increment operator. */ + CXUnaryOperator_PostInc = 1, + /** Postfix decrement operator. */ + CXUnaryOperator_PostDec = 2, + /** Prefix increment operator. */ + CXUnaryOperator_PreInc = 3, + /** Prefix decrement operator. */ + CXUnaryOperator_PreDec = 4, + /** Address of operator. */ + CXUnaryOperator_AddrOf = 5, + /** Dereference operator. */ + CXUnaryOperator_Deref = 6, + /** Plus operator. */ + CXUnaryOperator_Plus = 7, + /** Minus operator. */ + CXUnaryOperator_Minus = 8, + /** Not operator. */ + CXUnaryOperator_Not = 9, + /** LNot operator. */ + CXUnaryOperator_LNot = 10, + /** "__real expr" operator. */ + CXUnaryOperator_Real = 11, + /** "__imag expr" operator. */ + CXUnaryOperator_Imag = 12, + /** __extension__ marker operator. */ + CXUnaryOperator_Extension = 13, + /** C++ co_await operator. */ + CXUnaryOperator_Coawait = 14; + +/** + * Retrieve the spelling of a given CXUnaryOperatorKind. + */ +public static native @ByVal CXString clang_getUnaryOperatorKindSpelling(@Cast("CXUnaryOperatorKind") int kind); + +/** + * Retrieve the unary operator kind of this cursor. + * + * If this cursor is not a unary operator then returns Invalid. + */ +public static native @Cast("CXUnaryOperatorKind") int clang_getCursorUnaryOperatorKind(@ByVal CXCursor cursor); + /** * \} */ diff --git a/llvm/src/main/java/org/bytedeco/llvm/presets/LLVM.java b/llvm/src/main/java/org/bytedeco/llvm/presets/LLVM.java index ea96ab1aea1..190e7dccf30 100644 --- a/llvm/src/main/java/org/bytedeco/llvm/presets/LLVM.java +++ b/llvm/src/main/java/org/bytedeco/llvm/presets/LLVM.java @@ -32,13 +32,13 @@ @Properties(inherit = javacpp.class, target = "org.bytedeco.llvm.LLVM", global = "org.bytedeco.llvm.global.LLVM", value = {@Platform( value = {"linux", "macosx", "windows"}, define = {"__STDC_LIMIT_MACROS", "__STDC_CONSTANT_MACROS"}, include = {"", "", "", "", "", "", "", - "", "", "", "", "", + "", "", /* "",*/ "", "", "", "", "", "", "", "", "", "", "", "", "", - "", "", /*"", "",*/ "", - "", "", "", "", "", + "", "", /*"", "", "", + "", "", "", "", "",*/ "", "", "", "", ""}, - compiler = "cpp17", link = {"LLVM-16", "LTO@.16", "Remarks@.16"}, resource = {"include", "lib", "libexec", "share"}), + compiler = "cpp17", link = {"LLVM-17rc", "LTO@.17rc", "Remarks@.17rc"}, resource = {"include", "lib", "libexec", "share"}), @Platform(value = "macosx", link = {"LLVM", "LTO", "Remarks"}), @Platform(value = "windows", link = {"LLVM", "LTO", "Remarks"})}) @NoException @@ -192,6 +192,6 @@ public void map(InfoMap infoMap) { .put(new Info("defined(_MSC_VER) && !defined(inline)", "GPU_CODEGEN").define(false)) .put(new Info("LLVMErrorTypeId").annotations("@Const").valueTypes("LLVMErrorTypeId")) .put(new Info("llvm::raw_ostream").cast().pointerTypes("Pointer")) - .put(new Info("LLVMOrcObjectLayerAddObjectFileWithRT").skip()); + .put(new Info("LLVMOrcObjectLayerAddObjectFileWithRT", "LLVMOrcCreateStaticLibrarySearchGeneratorForPath").skip()); } } diff --git a/llvm/src/main/java/org/bytedeco/llvm/presets/clang.java b/llvm/src/main/java/org/bytedeco/llvm/presets/clang.java index dd809f70f6b..c647faec20b 100644 --- a/llvm/src/main/java/org/bytedeco/llvm/presets/clang.java +++ b/llvm/src/main/java/org/bytedeco/llvm/presets/clang.java @@ -30,7 +30,7 @@ include = {"", "", "", "", "", "", "", "", "", ""}, - compiler = "cpp17", link = "clang@.16"), @Platform(value = "windows", link = "libclang") }) + compiler = "cpp17", link = "clang@.17rc"), @Platform(value = "windows", link = "libclang") }) @NoException public class clang implements InfoMapper { public void map(InfoMap infoMap) { @@ -40,6 +40,7 @@ public void map(InfoMap infoMap) { .put(new Info("CINDEX_DEPRECATED").cppTypes().annotations("@Deprecated")) .put(new Info("CINDEX_VERSION").cppTypes("int").translate(false)) .put(new Info("__has_feature(blocks)").define(false)) + .put(new Info("CXCursorVisitorBlock", "CXCursorAndRangeVisitorBlock").skip()) .put(new Info("CXString::data").javaText( "public String getString() {\n" diff --git a/llvm/src/main/resources/org/bytedeco/llvm/include/FullOptimization.h b/llvm/src/main/resources/org/bytedeco/llvm/include/FullOptimization.h index fcd1cade54f..5b0eebc62aa 100644 --- a/llvm/src/main/resources/org/bytedeco/llvm/include/FullOptimization.h +++ b/llvm/src/main/resources/org/bytedeco/llvm/include/FullOptimization.h @@ -26,16 +26,16 @@ #include "llvm/ExecutionEngine/ExecutionEngine.h" #include "llvm/Target/TargetMachine.h" #include "llvm/Transforms/IPO.h" -#include "llvm/Transforms/IPO/PassManagerBuilder.h" +//#include "llvm/Transforms/IPO/PassManagerBuilder.h" #include "llvm/IR/Verifier.h" #include "llvm/IR/LegacyPassManager.h" #include "llvm/CodeGen/TargetPassConfig.h" #include "llvm/MC/TargetRegistry.h" #include "llvm/Analysis/TargetLibraryInfo.h" #include "llvm/Analysis/TargetTransformInfo.h" -#include "llvm/MC/SubtargetFeature.h" +//#include "llvm/MC/SubtargetFeature.h" #include "llvm/Pass.h" -#include "llvm-c/Transforms/PassManagerBuilder.h" +//#include "llvm-c/Transforms/PassManagerBuilder.h" #include "llvm-c/Types.h" #include "llvm-c/Error.h" @@ -75,20 +75,20 @@ LLVMErrorRef optimizeModule( fnPasses.add(createTargetTransformInfoWrapperPass(machine->getTargetIRAnalysis())); // AddOptimizationPasses - PassManagerBuilder builder1; - builder1.OptLevel = optLevel; - builder1.SizeLevel = sizeLevel; - builder1.Inliner = createFunctionInliningPass(optLevel, sizeLevel, false); - builder1.LoopVectorize = optLevel > 1 && sizeLevel < 2; - builder1.SLPVectorize = optLevel > 1 && sizeLevel < 2; +// PassManagerBuilder builder1; +// builder1.OptLevel = optLevel; +// builder1.SizeLevel = sizeLevel; +// builder1.Inliner = createFunctionInliningPass(optLevel, sizeLevel, false); +// builder1.LoopVectorize = optLevel > 1 && sizeLevel < 2; +// builder1.SLPVectorize = optLevel > 1 && sizeLevel < 2; // machine->adjustPassManager(builder1); - builder1.populateFunctionPassManager(fnPasses); - builder1.populateModulePassManager(passes); +// builder1.populateFunctionPassManager(fnPasses); +// builder1.populateModulePassManager(passes); // AddStandardLinkPasses - PassManagerBuilder builder2; - builder2.VerifyInput = true; - builder2.Inliner = createFunctionInliningPass(); +// PassManagerBuilder builder2; +// builder2.VerifyInput = true; +// builder2.Inliner = createFunctionInliningPass(); // builder2.populateLTOPassManager(passes); fnPasses.doInitialization(); diff --git a/onnxruntime/cppbuild.sh b/onnxruntime/cppbuild.sh index 9dc55733210..94378bb34ea 100755 --- a/onnxruntime/cppbuild.sh +++ b/onnxruntime/cppbuild.sh @@ -86,7 +86,7 @@ sedinplace 's/-fvisibility=hidden//g' cmake/CMakeLists.txt cmake/adjust_global_c sedinplace 's:/Yucuda_pch.h /FIcuda_pch.h::g' cmake/onnxruntime_providers.cmake sedinplace 's/${PROJECT_SOURCE_DIR}\/external\/cub//g' cmake/onnxruntime_providers.cmake sedinplace 's/ONNXRUNTIME_PROVIDERS_SHARED)/ONNXRUNTIME_PROVIDERS_SHARED onnxruntime_providers_shared)/g' cmake/onnxruntime_providers.cmake -sedinplace 's/DNNL_TAG v.*)/DNNL_TAG v3.1.1)/g' cmake/external/dnnl.cmake +sedinplace 's/DNNL_TAG v.*)/DNNL_TAG v3.2.1)/g' cmake/external/dnnl.cmake sedinplace 's/DNNL_SHARED_LIB libdnnl.1.dylib/DNNL_SHARED_LIB libdnnl.2.dylib/g' cmake/external/dnnl.cmake sedinplace 's/DNNL_SHARED_LIB libdnnl.so.1/DNNL_SHARED_LIB libdnnl.so.2/g' cmake/external/dnnl.cmake sedinplace 's/ CMAKE_ARGS/CMAKE_ARGS -DMKLDNN_BUILD_EXAMPLES=OFF -DMKLDNN_BUILD_TESTS=OFF/g' cmake/external/dnnl.cmake diff --git a/onnxruntime/platform/gpu/pom.xml b/onnxruntime/platform/gpu/pom.xml index 227959d89be..16850ad2cc3 100644 --- a/onnxruntime/platform/gpu/pom.xml +++ b/onnxruntime/platform/gpu/pom.xml @@ -24,7 +24,7 @@ org.bytedeco dnnl-platform - 3.1.1-${project.parent.version} + 3.2.1-${project.parent.version} ${project.groupId} diff --git a/onnxruntime/platform/pom.xml b/onnxruntime/platform/pom.xml index 0e8c7f3906e..a1ad015f569 100644 --- a/onnxruntime/platform/pom.xml +++ b/onnxruntime/platform/pom.xml @@ -23,7 +23,7 @@ org.bytedeco dnnl-platform - 3.1.1-${project.parent.version} + 3.2.1-${project.parent.version} ${project.groupId} diff --git a/onnxruntime/pom.xml b/onnxruntime/pom.xml index 3d6f3a7de1b..31c749a2f15 100644 --- a/onnxruntime/pom.xml +++ b/onnxruntime/pom.xml @@ -22,7 +22,7 @@ org.bytedeco dnnl - 3.1.1-${project.parent.version} + 3.2.1-${project.parent.version} org.bytedeco @@ -49,7 +49,7 @@ org.bytedeco dnnl-platform - 3.1.1-${project.parent.version} + 3.2.1-${project.parent.version} diff --git a/platform/pom.xml b/platform/pom.xml index 86d71852853..2a0590844f4 100644 --- a/platform/pom.xml +++ b/platform/pom.xml @@ -182,7 +182,7 @@ org.bytedeco dnnl-platform - 3.1.1-${project.version} + 3.2.1-${project.version} org.bytedeco @@ -232,7 +232,7 @@ org.bytedeco llvm-platform - 16.0.6-${project.version} + 17.0.0-${project.version} org.bytedeco @@ -307,7 +307,7 @@ org.bytedeco tensorflow-lite-platform - 2.13.0-${project.version} + 2.14.0-${project.version} org.bytedeco @@ -347,7 +347,7 @@ org.bytedeco tvm-platform - 0.12.0-${project.version} + 0.13.0-${project.version} org.bytedeco diff --git a/tensorflow-lite/README.md b/tensorflow-lite/README.md index 2c34a6cf03a..dcec91d87bf 100644 --- a/tensorflow-lite/README.md +++ b/tensorflow-lite/README.md @@ -9,7 +9,7 @@ Introduction ------------ This directory contains the JavaCPP Presets module for: - * TensorFlow Lite 2.13.0 https://www.tensorflow.org/lite + * TensorFlow Lite 2.14.0 https://www.tensorflow.org/lite Please refer to the parent README.md file for more detailed information about the JavaCPP Presets. @@ -25,7 +25,7 @@ Sample Usage ------------ Here is a simple example of TensorFlow ported to Java from this C++ source file: - * https://github.com/tensorflow/tensorflow/blob/v2.13.0/tensorflow/lite/examples/minimal/minimal.cc + * https://github.com/tensorflow/tensorflow/blob/v2.14.0/tensorflow/lite/examples/minimal/minimal.cc We can use [Maven 3](http://maven.apache.org/) to download and install automatically all the class files as well as the native binaries. To run this sample code, after creating the `pom.xml` and `Minimal.java` source files below, simply execute on the command line: ```bash @@ -46,7 +46,7 @@ We can use [Maven 3](http://maven.apache.org/) to download and install automatic org.bytedeco tensorflow-lite-platform - 2.13.0-1.5.10-SNAPSHOT + 2.14.0-1.5.10-SNAPSHOT diff --git a/tensorflow-lite/cppbuild.sh b/tensorflow-lite/cppbuild.sh index e410d85a0cf..cabdb33666e 100755 --- a/tensorflow-lite/cppbuild.sh +++ b/tensorflow-lite/cppbuild.sh @@ -12,7 +12,7 @@ if [[ "$EXTENSION" == *gpu ]]; then export CMAKE_FLAGS="-DTFLITE_ENABLE_GPU=ON" fi -TENSORFLOW_VERSION=2.13.0 +TENSORFLOW_VERSION=2.14.0-rc0 download https://github.com/tensorflow/tensorflow/archive/v$TENSORFLOW_VERSION.tar.gz tensorflow-$TENSORFLOW_VERSION.tar.gz mkdir -p "$PLATFORM$EXTENSION" @@ -87,7 +87,7 @@ case $PLATFORM in ;; esac -"$CMAKE" $CMAKE_FLAGS -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=.. -DCMAKE_INSTALL_LIBDIR=lib ../tensorflow-$TENSORFLOW_VERSION/tensorflow/lite/c +"$CMAKE" $CMAKE_FLAGS -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=.. -DCMAKE_INSTALL_LIBDIR=lib -DTFLITE_C_BUILD_SHARED_LIBS=OFF ../tensorflow-$TENSORFLOW_VERSION/tensorflow/lite/c "$CMAKE" --build . --parallel $MAKEJ #"$CMAKE" --install . diff --git a/tensorflow-lite/platform/pom.xml b/tensorflow-lite/platform/pom.xml index 4c1dba8576c..e2f809d5d6c 100644 --- a/tensorflow-lite/platform/pom.xml +++ b/tensorflow-lite/platform/pom.xml @@ -12,7 +12,7 @@ org.bytedeco tensorflow-lite-platform - 2.13.0-${project.parent.version} + 2.14.0-${project.parent.version} JavaCPP Presets Platform for TensorFlow Lite diff --git a/tensorflow-lite/pom.xml b/tensorflow-lite/pom.xml index c5499530d8d..672fdcd4121 100644 --- a/tensorflow-lite/pom.xml +++ b/tensorflow-lite/pom.xml @@ -16,8 +16,8 @@ tensorflowlite - 2.13.0 - ${basedir}/cppbuild/${javacpp.platform}${javacpp.platform.extension}/tensorflow-${tensorflow.version}/ + 2.14.0 + ${basedir}/cppbuild/${javacpp.platform}${javacpp.platform.extension}/tensorflow-${tensorflow.version}-rc0/ diff --git a/tensorflow-lite/samples/pom.xml b/tensorflow-lite/samples/pom.xml index 9410d290e73..a7a414b21bf 100644 --- a/tensorflow-lite/samples/pom.xml +++ b/tensorflow-lite/samples/pom.xml @@ -12,7 +12,7 @@ org.bytedeco tensorflow-lite-platform - 2.13.0-1.5.10-SNAPSHOT + 2.14.0-1.5.10-SNAPSHOT diff --git a/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/CommonOpaqueConversionUtil.java b/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/CommonOpaqueConversionUtil.java index bd0f743fda3..180c80418c3 100644 --- a/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/CommonOpaqueConversionUtil.java +++ b/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/CommonOpaqueConversionUtil.java @@ -7,7 +7,7 @@ import org.bytedeco.javacpp.annotation.*; import static org.bytedeco.tensorflowlite.global.tensorflowlite.*; - // Class for friend declarations. + // For friend declaration below. @Namespace("tflite::internal") @Opaque @Properties(inherit = org.bytedeco.tensorflowlite.presets.tensorflowlite.class) public class CommonOpaqueConversionUtil extends Pointer { /** Empty constructor. Calls {@code super((Pointer)null)}. */ diff --git a/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/Find_builtin_op_Pointer_int_int.java b/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/Find_builtin_op_Pointer_int_int.java index c678cb734a5..3d3c7e83909 100644 --- a/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/Find_builtin_op_Pointer_int_int.java +++ b/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/Find_builtin_op_Pointer_int_int.java @@ -9,24 +9,21 @@ import static org.bytedeco.tensorflowlite.global.tensorflowlite.*; -/** Registers callbacks for resolving builtin or custom operators. +/** \private + * Registers callbacks for resolving builtin or custom operators. * - * The {@code TfLiteInterpreterOptionsSetOpResolver} function provides an alternative - * method for registering builtin ops and/or custom ops, by providing operator - * resolver callbacks. Unlike using {@code TfLiteInterpreterOptionsAddBuiltinOp} - * and/or {@code TfLiteInterpreterOptionsAddAddCustomOp}, these let you register all - * the operators in a single call. + * This combines the effects of TfLiteInterpreterOptionsSetOpResolverExternal + * and TfLiteInterpreterOptionsSetOpResolver. The callbacks that return + * TfLiteRegistrationExternal will be called first, but if they return a + * TfLiteRegistrationExternal object that has no methods set, then + * the callbacks that return a TfLiteRegistration will be called to get + * the methods. * - * Code that uses this function should NOT call - * {@code TfLiteInterpreterOptionsAddBuiltin} or - * {@code TfLiteInterpreterOptionsAddCustomOp} on the same options object. + * WARNING: This function is experimental and subject to change. * - * If {@code op_resolver_user_data} is non-null, its lifetime must be at least as - * long as the lifetime of the {@code TfLiteInterpreterOptions}. - * - * WARNING: This is an experimental API and subject to change. - * - * DEPRECATED: use TfLiteInterpreterOptionsSetOpResolverExternal instead. */ + * WARNING: This function is not an official part of the API, + * and should not be used by apps. It is intended for use only from + * TF Lite itself. */ @Properties(inherit = org.bytedeco.tensorflowlite.presets.tensorflowlite.class) public class Find_builtin_op_Pointer_int_int extends FunctionPointer { static { Loader.load(); } diff --git a/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/Find_builtin_op_external_Pointer_int_int.java b/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/Find_builtin_op_external_Pointer_int_int.java index e4c62f181da..d44ee5bdf5f 100644 --- a/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/Find_builtin_op_external_Pointer_int_int.java +++ b/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/Find_builtin_op_external_Pointer_int_int.java @@ -14,6 +14,7 @@ * The {@code TfLiteInterpreterOptionsSetOpResolverExternal} function provides an * alternative method for registering builtin ops and/or custom ops, by * providing operator resolver callbacks. Unlike using + * {@code TfLiteInterpreterOptionsAddRegistrationExternal}, * {@code TfLiteInterpreterOptionsAddBuiltinOp} and/or * {@code TfLiteInterpreterOptionsAddAddCustomOp}, these let you register all the * operators in a single call. @@ -25,6 +26,10 @@ * If {@code op_resolver_user_data} is non-null, its lifetime must be at least as * long as the lifetime of the {@code TfLiteInterpreterOptions}. * + * The TfLiteRegistrationExternal objects whose addresses are returned by + * {@code find_builtin_op} and {@code find_custom_op} must outlive both the + * InterpreterOptions object and any Interpreter object created from it. + * * WARNING: This is an experimental API and subject to change. */ @Properties(inherit = org.bytedeco.tensorflowlite.presets.tensorflowlite.class) public class Find_builtin_op_external_Pointer_int_int extends FunctionPointer { diff --git a/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/Find_builtin_op_v3_Pointer_int_int.java b/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/Find_builtin_op_v3_Pointer_int_int.java new file mode 100644 index 00000000000..ac148da434d --- /dev/null +++ b/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/Find_builtin_op_v3_Pointer_int_int.java @@ -0,0 +1,27 @@ +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE + +package org.bytedeco.tensorflowlite; + +import java.nio.*; +import org.bytedeco.javacpp.*; +import org.bytedeco.javacpp.annotation.*; + +import static org.bytedeco.tensorflowlite.global.tensorflowlite.*; + + +/** \private + * Backward-compat version of TfLiteInterpreterOptionsSetOpResolver. + * + * WARNING: This function is deprecated / not an official part of the API, is + * only for binary backwards compatibility, and should not be called. */ +@Properties(inherit = org.bytedeco.tensorflowlite.presets.tensorflowlite.class) +public class Find_builtin_op_v3_Pointer_int_int extends FunctionPointer { + static { Loader.load(); } + /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ + public Find_builtin_op_v3_Pointer_int_int(Pointer p) { super(p); } + protected Find_builtin_op_v3_Pointer_int_int() { allocate(); } + private native void allocate(); + public native @Const TfLiteRegistration_V3 call(Pointer user_data, + @Cast("TfLiteBuiltinOperator") int op, + int version); +} diff --git a/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/Find_custom_op_Pointer_BytePointer_int.java b/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/Find_custom_op_Pointer_BytePointer_int.java index f6562d01910..24e1c97d685 100644 --- a/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/Find_custom_op_Pointer_BytePointer_int.java +++ b/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/Find_custom_op_Pointer_BytePointer_int.java @@ -15,7 +15,6 @@ public class Find_custom_op_Pointer_BytePointer_int extends FunctionPointer { public Find_custom_op_Pointer_BytePointer_int(Pointer p) { super(p); } protected Find_custom_op_Pointer_BytePointer_int() { allocate(); } private native void allocate(); - public native @Const TfLiteRegistration call(Pointer user_data, - @Cast("const char*") BytePointer custom_op, + public native @Const TfLiteRegistration call(Pointer user_data, @Cast("const char*") BytePointer op, int version); } diff --git a/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/Find_custom_op_Pointer_String_int.java b/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/Find_custom_op_Pointer_String_int.java index d0320003ca6..03dca7830ce 100644 --- a/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/Find_custom_op_Pointer_String_int.java +++ b/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/Find_custom_op_Pointer_String_int.java @@ -15,7 +15,6 @@ public class Find_custom_op_Pointer_String_int extends FunctionPointer { public Find_custom_op_Pointer_String_int(Pointer p) { super(p); } protected Find_custom_op_Pointer_String_int() { allocate(); } private native void allocate(); - public native @Const TfLiteRegistration call(Pointer user_data, - String custom_op, + public native @Const TfLiteRegistration call(Pointer user_data, String op, int version); } diff --git a/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/Find_custom_op_v3_Pointer_BytePointer_int.java b/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/Find_custom_op_v3_Pointer_BytePointer_int.java new file mode 100644 index 00000000000..184c0a3e229 --- /dev/null +++ b/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/Find_custom_op_v3_Pointer_BytePointer_int.java @@ -0,0 +1,21 @@ +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE + +package org.bytedeco.tensorflowlite; + +import java.nio.*; +import org.bytedeco.javacpp.*; +import org.bytedeco.javacpp.annotation.*; + +import static org.bytedeco.tensorflowlite.global.tensorflowlite.*; + +@Properties(inherit = org.bytedeco.tensorflowlite.presets.tensorflowlite.class) +public class Find_custom_op_v3_Pointer_BytePointer_int extends FunctionPointer { + static { Loader.load(); } + /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ + public Find_custom_op_v3_Pointer_BytePointer_int(Pointer p) { super(p); } + protected Find_custom_op_v3_Pointer_BytePointer_int() { allocate(); } + private native void allocate(); + public native @Const TfLiteRegistration_V3 call(Pointer user_data, + @Cast("const char*") BytePointer op, + int version); +} diff --git a/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/Find_custom_op_v3_Pointer_String_int.java b/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/Find_custom_op_v3_Pointer_String_int.java new file mode 100644 index 00000000000..86247e51147 --- /dev/null +++ b/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/Find_custom_op_v3_Pointer_String_int.java @@ -0,0 +1,21 @@ +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE + +package org.bytedeco.tensorflowlite; + +import java.nio.*; +import org.bytedeco.javacpp.*; +import org.bytedeco.javacpp.annotation.*; + +import static org.bytedeco.tensorflowlite.global.tensorflowlite.*; + +@Properties(inherit = org.bytedeco.tensorflowlite.presets.tensorflowlite.class) +public class Find_custom_op_v3_Pointer_String_int extends FunctionPointer { + static { Loader.load(); } + /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ + public Find_custom_op_v3_Pointer_String_int(Pointer p) { super(p); } + protected Find_custom_op_v3_Pointer_String_int() { allocate(); } + private native void allocate(); + public native @Const TfLiteRegistration_V3 call(Pointer user_data, + String op, + int version); +} diff --git a/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/FlatBufferModel.java b/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/FlatBufferModel.java index c9c264d27f1..387fcf4794b 100644 --- a/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/FlatBufferModel.java +++ b/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/FlatBufferModel.java @@ -193,6 +193,10 @@ public class FlatBufferModel extends Pointer { public static native @ByVal StringStringMap ReadAllMetadata( @Cast("const tflite::Model*") Pointer model); + // If the buffer is stored as part of the Flatbuffer or outside + // return false if the buffers are part of the Flatbuffer + public static native @Cast("bool") boolean CheckBufferOutsideModel(@Cast("const tflite::Model*") Pointer model); + // Validates if the FlatBufferModel's buffer is well-formed. Specifically, it // checks if the 0th entry of the model buffers is an empty buffer (sentinel). // This is a convention so that tensors without a buffer can provide 0 diff --git a/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/Free_TfLiteOpaqueContext_Pointer.java b/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/Free_TfLiteOpaqueContext_Pointer.java index 6254d79fa81..0b0f8222c6b 100644 --- a/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/Free_TfLiteOpaqueContext_Pointer.java +++ b/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/Free_TfLiteOpaqueContext_Pointer.java @@ -9,13 +9,14 @@ import static org.bytedeco.tensorflowlite.global.tensorflowlite.*; -/** Sets the deallocation callback for the registration. - * - * This callback is called to deallocate the data returned by the init - * callback. The value passed in the {@code data} parameter is the value that was - * returned by the {@code init} callback. - * Please refer {@code free} of {@code TfLiteRegistration} for the detail. - * \warning This is an experimental API and subject to change. */ +// Sets the deallocation callback for the registration. +// +// This callback is called to deallocate the data returned by the init callback. +// The value passed in the `data` parameter is the value that was returned by +// the `init` callback. +// Please refer `free` of `TfLiteRegistration` for the detail. +// +// \warning This is an experimental API and subject to change. @Properties(inherit = org.bytedeco.tensorflowlite.presets.tensorflowlite.class) public class Free_TfLiteOpaqueContext_Pointer extends FunctionPointer { static { Loader.load(); } diff --git a/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/Init_TfLiteOpaqueContext_BytePointer_long.java b/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/Init_TfLiteOpaqueContext_BytePointer_long.java index 6f3bc0124a1..fa612ffa61a 100644 --- a/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/Init_TfLiteOpaqueContext_BytePointer_long.java +++ b/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/Init_TfLiteOpaqueContext_BytePointer_long.java @@ -9,11 +9,12 @@ import static org.bytedeco.tensorflowlite.global.tensorflowlite.*; -/** Sets the initialization callback for the registration. - * - * The callback is called to initialize the op from serialized data. - * Please refer {@code init} of {@code TfLiteRegistration} for the detail. - * \warning This is an experimental API and subject to change. */ +// Sets the initialization callback for the registration. +// +// The callback is called to initialize the op from serialized data. +// Please refer `init` of `TfLiteRegistration` for the detail. +// +// \warning This is an experimental API and subject to change. @Properties(inherit = org.bytedeco.tensorflowlite.presets.tensorflowlite.class) public class Init_TfLiteOpaqueContext_BytePointer_long extends FunctionPointer { static { Loader.load(); } diff --git a/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/Interpreter.java b/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/Interpreter.java index 4f8a5d838c2..40e51edfa8c 100644 --- a/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/Interpreter.java +++ b/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/Interpreter.java @@ -255,51 +255,51 @@ public class Interpreter extends Pointer { String buffer, @Cast("size_t") long bytes); public native @Cast("TfLiteStatus") int SetTensorParametersReadOnly( - int tensor_index, @Cast("TfLiteType") int type, @Cast("const char*") BytePointer name, @Cast("const size_t") long rank, + int tensor_index, @Cast("TfLiteType") int type, @Cast("const char*") BytePointer name, @Cast("size_t") long rank, @Const IntPointer dims, @ByVal TfLiteQuantizationParams quantization, @Cast("const char*") BytePointer buffer, @Cast("size_t") long bytes, @Const Allocation allocation/*=nullptr*/); public native @Cast("TfLiteStatus") int SetTensorParametersReadOnly( - int tensor_index, @Cast("TfLiteType") int type, @Cast("const char*") BytePointer name, @Cast("const size_t") long rank, + int tensor_index, @Cast("TfLiteType") int type, @Cast("const char*") BytePointer name, @Cast("size_t") long rank, @Const IntPointer dims, @ByVal TfLiteQuantizationParams quantization, @Cast("const char*") BytePointer buffer, @Cast("size_t") long bytes); public native @Cast("TfLiteStatus") int SetTensorParametersReadOnly( - int tensor_index, @Cast("TfLiteType") int type, String name, @Cast("const size_t") long rank, + int tensor_index, @Cast("TfLiteType") int type, String name, @Cast("size_t") long rank, @Const IntBuffer dims, @ByVal TfLiteQuantizationParams quantization, String buffer, @Cast("size_t") long bytes, @Const Allocation allocation/*=nullptr*/); public native @Cast("TfLiteStatus") int SetTensorParametersReadOnly( - int tensor_index, @Cast("TfLiteType") int type, String name, @Cast("const size_t") long rank, + int tensor_index, @Cast("TfLiteType") int type, String name, @Cast("size_t") long rank, @Const IntBuffer dims, @ByVal TfLiteQuantizationParams quantization, String buffer, @Cast("size_t") long bytes); public native @Cast("TfLiteStatus") int SetTensorParametersReadOnly( - int tensor_index, @Cast("TfLiteType") int type, @Cast("const char*") BytePointer name, @Cast("const size_t") long rank, + int tensor_index, @Cast("TfLiteType") int type, @Cast("const char*") BytePointer name, @Cast("size_t") long rank, @Const int[] dims, @ByVal TfLiteQuantizationParams quantization, @Cast("const char*") BytePointer buffer, @Cast("size_t") long bytes, @Const Allocation allocation/*=nullptr*/); public native @Cast("TfLiteStatus") int SetTensorParametersReadOnly( - int tensor_index, @Cast("TfLiteType") int type, @Cast("const char*") BytePointer name, @Cast("const size_t") long rank, + int tensor_index, @Cast("TfLiteType") int type, @Cast("const char*") BytePointer name, @Cast("size_t") long rank, @Const int[] dims, @ByVal TfLiteQuantizationParams quantization, @Cast("const char*") BytePointer buffer, @Cast("size_t") long bytes); public native @Cast("TfLiteStatus") int SetTensorParametersReadOnly( - int tensor_index, @Cast("TfLiteType") int type, String name, @Cast("const size_t") long rank, + int tensor_index, @Cast("TfLiteType") int type, String name, @Cast("size_t") long rank, @Const IntPointer dims, @ByVal TfLiteQuantizationParams quantization, String buffer, @Cast("size_t") long bytes, @Const Allocation allocation/*=nullptr*/); public native @Cast("TfLiteStatus") int SetTensorParametersReadOnly( - int tensor_index, @Cast("TfLiteType") int type, String name, @Cast("const size_t") long rank, + int tensor_index, @Cast("TfLiteType") int type, String name, @Cast("size_t") long rank, @Const IntPointer dims, @ByVal TfLiteQuantizationParams quantization, String buffer, @Cast("size_t") long bytes); public native @Cast("TfLiteStatus") int SetTensorParametersReadOnly( - int tensor_index, @Cast("TfLiteType") int type, @Cast("const char*") BytePointer name, @Cast("const size_t") long rank, + int tensor_index, @Cast("TfLiteType") int type, @Cast("const char*") BytePointer name, @Cast("size_t") long rank, @Const IntBuffer dims, @ByVal TfLiteQuantizationParams quantization, @Cast("const char*") BytePointer buffer, @Cast("size_t") long bytes, @Const Allocation allocation/*=nullptr*/); public native @Cast("TfLiteStatus") int SetTensorParametersReadOnly( - int tensor_index, @Cast("TfLiteType") int type, @Cast("const char*") BytePointer name, @Cast("const size_t") long rank, + int tensor_index, @Cast("TfLiteType") int type, @Cast("const char*") BytePointer name, @Cast("size_t") long rank, @Const IntBuffer dims, @ByVal TfLiteQuantizationParams quantization, @Cast("const char*") BytePointer buffer, @Cast("size_t") long bytes); public native @Cast("TfLiteStatus") int SetTensorParametersReadOnly( - int tensor_index, @Cast("TfLiteType") int type, String name, @Cast("const size_t") long rank, + int tensor_index, @Cast("TfLiteType") int type, String name, @Cast("size_t") long rank, @Const int[] dims, @ByVal TfLiteQuantizationParams quantization, String buffer, @Cast("size_t") long bytes, @Const Allocation allocation/*=nullptr*/); public native @Cast("TfLiteStatus") int SetTensorParametersReadOnly( - int tensor_index, @Cast("TfLiteType") int type, String name, @Cast("const size_t") long rank, + int tensor_index, @Cast("TfLiteType") int type, String name, @Cast("size_t") long rank, @Const int[] dims, @ByVal TfLiteQuantizationParams quantization, String buffer, @Cast("size_t") long bytes); @@ -412,52 +412,52 @@ public class Interpreter extends Pointer { int tensor_index, @Cast("TfLiteType") int type, String name, @StdVector int[] dims, @ByVal TfLiteQuantizationParams quantization); public native @Cast("TfLiteStatus") int SetTensorParametersReadWrite( - int tensor_index, @Cast("TfLiteType") int type, @Cast("const char*") BytePointer name, @Cast("const size_t") long rank, + int tensor_index, @Cast("TfLiteType") int type, @Cast("const char*") BytePointer name, @Cast("size_t") long rank, @Const IntPointer dims, @ByVal TfLiteQuantizationParams quantization, - @Cast("bool") boolean is_variable/*=false*/, @Cast("const size_t") long rank_dims_signature/*=0*/, + @Cast("bool") boolean is_variable/*=false*/, @Cast("size_t") long rank_dims_signature/*=0*/, @Const IntPointer dims_signature/*=nullptr*/); public native @Cast("TfLiteStatus") int SetTensorParametersReadWrite( - int tensor_index, @Cast("TfLiteType") int type, @Cast("const char*") BytePointer name, @Cast("const size_t") long rank, + int tensor_index, @Cast("TfLiteType") int type, @Cast("const char*") BytePointer name, @Cast("size_t") long rank, @Const IntPointer dims, @ByVal TfLiteQuantizationParams quantization); public native @Cast("TfLiteStatus") int SetTensorParametersReadWrite( - int tensor_index, @Cast("TfLiteType") int type, String name, @Cast("const size_t") long rank, + int tensor_index, @Cast("TfLiteType") int type, String name, @Cast("size_t") long rank, @Const IntBuffer dims, @ByVal TfLiteQuantizationParams quantization, - @Cast("bool") boolean is_variable/*=false*/, @Cast("const size_t") long rank_dims_signature/*=0*/, + @Cast("bool") boolean is_variable/*=false*/, @Cast("size_t") long rank_dims_signature/*=0*/, @Const IntBuffer dims_signature/*=nullptr*/); public native @Cast("TfLiteStatus") int SetTensorParametersReadWrite( - int tensor_index, @Cast("TfLiteType") int type, String name, @Cast("const size_t") long rank, + int tensor_index, @Cast("TfLiteType") int type, String name, @Cast("size_t") long rank, @Const IntBuffer dims, @ByVal TfLiteQuantizationParams quantization); public native @Cast("TfLiteStatus") int SetTensorParametersReadWrite( - int tensor_index, @Cast("TfLiteType") int type, @Cast("const char*") BytePointer name, @Cast("const size_t") long rank, + int tensor_index, @Cast("TfLiteType") int type, @Cast("const char*") BytePointer name, @Cast("size_t") long rank, @Const int[] dims, @ByVal TfLiteQuantizationParams quantization, - @Cast("bool") boolean is_variable/*=false*/, @Cast("const size_t") long rank_dims_signature/*=0*/, + @Cast("bool") boolean is_variable/*=false*/, @Cast("size_t") long rank_dims_signature/*=0*/, @Const int[] dims_signature/*=nullptr*/); public native @Cast("TfLiteStatus") int SetTensorParametersReadWrite( - int tensor_index, @Cast("TfLiteType") int type, @Cast("const char*") BytePointer name, @Cast("const size_t") long rank, + int tensor_index, @Cast("TfLiteType") int type, @Cast("const char*") BytePointer name, @Cast("size_t") long rank, @Const int[] dims, @ByVal TfLiteQuantizationParams quantization); public native @Cast("TfLiteStatus") int SetTensorParametersReadWrite( - int tensor_index, @Cast("TfLiteType") int type, String name, @Cast("const size_t") long rank, + int tensor_index, @Cast("TfLiteType") int type, String name, @Cast("size_t") long rank, @Const IntPointer dims, @ByVal TfLiteQuantizationParams quantization, - @Cast("bool") boolean is_variable/*=false*/, @Cast("const size_t") long rank_dims_signature/*=0*/, + @Cast("bool") boolean is_variable/*=false*/, @Cast("size_t") long rank_dims_signature/*=0*/, @Const IntPointer dims_signature/*=nullptr*/); public native @Cast("TfLiteStatus") int SetTensorParametersReadWrite( - int tensor_index, @Cast("TfLiteType") int type, String name, @Cast("const size_t") long rank, + int tensor_index, @Cast("TfLiteType") int type, String name, @Cast("size_t") long rank, @Const IntPointer dims, @ByVal TfLiteQuantizationParams quantization); public native @Cast("TfLiteStatus") int SetTensorParametersReadWrite( - int tensor_index, @Cast("TfLiteType") int type, @Cast("const char*") BytePointer name, @Cast("const size_t") long rank, + int tensor_index, @Cast("TfLiteType") int type, @Cast("const char*") BytePointer name, @Cast("size_t") long rank, @Const IntBuffer dims, @ByVal TfLiteQuantizationParams quantization, - @Cast("bool") boolean is_variable/*=false*/, @Cast("const size_t") long rank_dims_signature/*=0*/, + @Cast("bool") boolean is_variable/*=false*/, @Cast("size_t") long rank_dims_signature/*=0*/, @Const IntBuffer dims_signature/*=nullptr*/); public native @Cast("TfLiteStatus") int SetTensorParametersReadWrite( - int tensor_index, @Cast("TfLiteType") int type, @Cast("const char*") BytePointer name, @Cast("const size_t") long rank, + int tensor_index, @Cast("TfLiteType") int type, @Cast("const char*") BytePointer name, @Cast("size_t") long rank, @Const IntBuffer dims, @ByVal TfLiteQuantizationParams quantization); public native @Cast("TfLiteStatus") int SetTensorParametersReadWrite( - int tensor_index, @Cast("TfLiteType") int type, String name, @Cast("const size_t") long rank, + int tensor_index, @Cast("TfLiteType") int type, String name, @Cast("size_t") long rank, @Const int[] dims, @ByVal TfLiteQuantizationParams quantization, - @Cast("bool") boolean is_variable/*=false*/, @Cast("const size_t") long rank_dims_signature/*=0*/, + @Cast("bool") boolean is_variable/*=false*/, @Cast("size_t") long rank_dims_signature/*=0*/, @Const int[] dims_signature/*=nullptr*/); public native @Cast("TfLiteStatus") int SetTensorParametersReadWrite( - int tensor_index, @Cast("TfLiteType") int type, String name, @Cast("const size_t") long rank, + int tensor_index, @Cast("TfLiteType") int type, String name, @Cast("size_t") long rank, @Const int[] dims, @ByVal TfLiteQuantizationParams quantization); /** Enables application to cancel in flight invocation with {@code Cancel}. @@ -548,6 +548,8 @@ public class Interpreter extends Pointer { * \brief Returns a pointer to the AsyncSignatureRunner instance to run the * part of the graph identified by a SignatureDef. The nullptr is returned if * the given signature key is not valid. + * if the model does not have signature def, pass nullptr to signature_key + * and AsyncSignatureRunner will be created using primary subgraph (0). * The async delegate should be applied before calling this function. */ /** \warning Experimental interface, subject to change. \n @@ -878,7 +880,7 @@ public static class Check_cancelled_func_Pointer extends FunctionPointer { * When using hardware delegation, Interpreter will make the data of output * tensors available in {@code tensor->data} by default. If the application can * consume the buffer handle directly (e.g. reading output from OpenGL - * texture), it can set this flag to false, so Interpreter won't copy the + * texture), it can set this flag to true, so Interpreter won't copy the * data from buffer handle to CPU memory. */ public native void SetAllowBufferHandleOutput(@Cast("bool") boolean allow_buffer_handle_output); diff --git a/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/InterpreterBuilder.java b/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/InterpreterBuilder.java index 3021886682d..f61493f7e51 100644 --- a/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/InterpreterBuilder.java +++ b/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/InterpreterBuilder.java @@ -37,11 +37,13 @@ private native void allocate(@Const @ByRef FlatBufferModel model, public InterpreterBuilder(@Cast("const tflite::Model*") Pointer model, @Const @ByRef OpResolver op_resolver, ErrorReporter error_reporter/*=tflite::DefaultErrorReporter()*/, - @Const InterpreterOptions options_experimental/*=nullptr*/) { super((Pointer)null); allocate(model, op_resolver, error_reporter, options_experimental); } + @Const InterpreterOptions options_experimental/*=nullptr*/, + @Const Allocation allocation/*=nullptr*/) { super((Pointer)null); allocate(model, op_resolver, error_reporter, options_experimental, allocation); } private native void allocate(@Cast("const tflite::Model*") Pointer model, @Const @ByRef OpResolver op_resolver, ErrorReporter error_reporter/*=tflite::DefaultErrorReporter()*/, - @Const InterpreterOptions options_experimental/*=nullptr*/); + @Const InterpreterOptions options_experimental/*=nullptr*/, + @Const Allocation allocation/*=nullptr*/); public InterpreterBuilder(@Cast("const tflite::Model*") Pointer model, @Const @ByRef OpResolver op_resolver) { super((Pointer)null); allocate(model, op_resolver); } private native void allocate(@Cast("const tflite::Model*") Pointer model, diff --git a/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/Invoke_TfLiteOpaqueContext_TfLiteOpaqueNode.java b/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/Invoke_TfLiteOpaqueContext_TfLiteOpaqueNode.java index 091c3a80de0..600d69728a8 100644 --- a/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/Invoke_TfLiteOpaqueContext_TfLiteOpaqueNode.java +++ b/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/Invoke_TfLiteOpaqueContext_TfLiteOpaqueNode.java @@ -9,11 +9,12 @@ import static org.bytedeco.tensorflowlite.global.tensorflowlite.*; -/** Sets the invocation callback for the registration. - * - * The callback is called when the operator is executed. - * Please refer {@code invoke} of {@code TfLiteRegistration} for the detail. - * \warning This is an experimental API and subject to change. */ +// Sets the invocation callback for the registration. +// +// The callback is called when the operator is executed. +// Please refer `invoke` of `TfLiteRegistration` for the detail. +// +// \warning This is an experimental API and subject to change. @Properties(inherit = org.bytedeco.tensorflowlite.presets.tensorflowlite.class) public class Invoke_TfLiteOpaqueContext_TfLiteOpaqueNode extends FunctionPointer { static { Loader.load(); } diff --git a/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/NodeSubsetVector.java b/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/NodeSubsetVector.java index 34acb9ecf05..7c0079ad21f 100644 --- a/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/NodeSubsetVector.java +++ b/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/NodeSubsetVector.java @@ -26,6 +26,8 @@ public class NodeSubsetVector extends Pointer { public void clear() { resize(0); } public native void resize(@Cast("size_t") long n); + public NodeSubset front() { return get(0); } + public NodeSubset back() { return get(size() - 1); } @Index(function = "at") public native @ByRef NodeSubset get(@Cast("size_t") long i); public native NodeSubsetVector put(@Cast("size_t") long i, NodeSubset value); diff --git a/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/OpResolver.java b/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/OpResolver.java index 667b9c2a66d..dd9f5f31297 100644 --- a/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/OpResolver.java +++ b/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/OpResolver.java @@ -7,12 +7,20 @@ import org.bytedeco.javacpp.annotation.*; import static org.bytedeco.tensorflowlite.global.tensorflowlite.*; - + // namespace internal +// #endif /** Abstract interface that returns TfLiteRegistrations given op codes or custom * op names. This is the mechanism that ops being referenced in the flatbuffer - * model are mapped to executable function pointers (TfLiteRegistrations). */ -@Namespace("tflite") @Properties(inherit = org.bytedeco.tensorflowlite.presets.tensorflowlite.class) + * model are mapped to executable function pointers (TfLiteRegistrations). + * + * The lifetime of the TfLiteRegistration object whose address is + * returned by FindOp must exceed the lifetime of any InterpreterBuilder or + * Interpreter created with this OpResolver. + * Likewise the lifetime of the TfLiteRegistrationExternal object referenced + * from the TfLiteRegistration object, if any, must exceed the lifetime of + * any InterpreterBuilder or Interpreter created with this OpResolver. */ +@Namespace("tflite") @NoOffset @Properties(inherit = org.bytedeco.tensorflowlite.presets.tensorflowlite.class) public class OpResolver extends Pointer { static { Loader.load(); } /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ diff --git a/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/OpResolverInternal.java b/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/OpResolverInternal.java new file mode 100644 index 00000000000..8bf515154ae --- /dev/null +++ b/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/OpResolverInternal.java @@ -0,0 +1,19 @@ +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE + +package org.bytedeco.tensorflowlite; + +import java.nio.*; +import org.bytedeco.javacpp.*; +import org.bytedeco.javacpp.annotation.*; + +import static org.bytedeco.tensorflowlite.global.tensorflowlite.*; + + +// #ifndef DOXYGEN_SKIP +@Namespace("tflite") @Opaque @Properties(inherit = org.bytedeco.tensorflowlite.presets.tensorflowlite.class) +public class OpResolverInternal extends Pointer { + /** Empty constructor. Calls {@code super((Pointer)null)}. */ + public OpResolverInternal() { super((Pointer)null); } + /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ + public OpResolverInternal(Pointer p) { super(p); } +} diff --git a/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/Prepare_TfLiteOpaqueContext_TfLiteOpaqueNode.java b/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/Prepare_TfLiteOpaqueContext_TfLiteOpaqueNode.java index 25f73b0c8a9..bdb75fca5eb 100644 --- a/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/Prepare_TfLiteOpaqueContext_TfLiteOpaqueNode.java +++ b/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/Prepare_TfLiteOpaqueContext_TfLiteOpaqueNode.java @@ -9,11 +9,12 @@ import static org.bytedeco.tensorflowlite.global.tensorflowlite.*; -/** Sets the preparation callback for the registration. - * - * The callback is called when the inputs of operator have been resized. - * Please refer {@code prepare} of {@code TfLiteRegistration} for the detail. - * \warning This is an experimental API and subject to change. */ +// Sets the preparation callback for the registration. +// +// The callback is called when the inputs of operator have been resized. +// Please refer `prepare` of `TfLiteRegistration` for the detail. +// +// \warning This is an experimental API and subject to change. @Properties(inherit = org.bytedeco.tensorflowlite.presets.tensorflowlite.class) public class Prepare_TfLiteOpaqueContext_TfLiteOpaqueNode extends FunctionPointer { static { Loader.load(); } diff --git a/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/RegistrationExternalsCache.java b/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/RegistrationExternalsCache.java new file mode 100644 index 00000000000..7afc04bdd9c --- /dev/null +++ b/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/RegistrationExternalsCache.java @@ -0,0 +1,39 @@ +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE + +package org.bytedeco.tensorflowlite; + +import java.nio.*; +import org.bytedeco.javacpp.*; +import org.bytedeco.javacpp.annotation.*; + +import static org.bytedeco.tensorflowlite.global.tensorflowlite.*; + + +// #ifndef DOXYGEN_SKIP +// Type for a set of owned 'TfLiteRegistrationExternal' objects. +// This is needed when converting TfLiteRegistration to +// TfLiteRegistrationExternal, to ensure that the number of +// TfLiteRegistrationExternal objects that we allocate is bounded, and to +// ensure that those objects get deallocated at the appropriate time. +// We use a public class rather than a typedef or using declaration here, +// to ensure that the class can be forward-declared. +// WARNING: Experimental interface, subject to change. +@Namespace("tflite::internal") @Properties(inherit = org.bytedeco.tensorflowlite.presets.tensorflowlite.class) +public class RegistrationExternalsCache extends Pointer { + static { Loader.load(); } + /** Default native constructor. */ + public RegistrationExternalsCache() { super((Pointer)null); allocate(); } + /** Native array allocator. Access with {@link Pointer#position(long)}. */ + public RegistrationExternalsCache(long size) { super((Pointer)null); allocateArray(size); } + /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ + public RegistrationExternalsCache(Pointer p) { super(p); } + private native void allocate(); + private native void allocateArray(long size); + @Override public RegistrationExternalsCache position(long position) { + return (RegistrationExternalsCache)super.position(position); + } + @Override public RegistrationExternalsCache getPointer(long i) { + return new RegistrationExternalsCache((Pointer)this).offsetAddress(i); + } + +} diff --git a/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/SignatureRunner.java b/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/SignatureRunner.java index fe2cc89ca2f..ab2f435573d 100644 --- a/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/SignatureRunner.java +++ b/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/SignatureRunner.java @@ -7,7 +7,6 @@ import org.bytedeco.javacpp.annotation.*; import static org.bytedeco.tensorflowlite.global.tensorflowlite.*; - // Class for friend declarations. /** WARNING: Experimental interface, subject to change * @@ -64,7 +63,7 @@ /** SignatureRunner objects. Therefore, it is recommended not to call other /** Interpreter methods after calling GetSignatureRunner to create /** SignatureRunner instances. */ -@Namespace("tflite") @NoOffset @Properties(inherit = org.bytedeco.tensorflowlite.presets.tensorflowlite.class) +@Namespace("tflite::impl") @NoOffset @Properties(inherit = org.bytedeco.tensorflowlite.presets.tensorflowlite.class) public class SignatureRunner extends Pointer { static { Loader.load(); } /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ @@ -141,10 +140,92 @@ public class SignatureRunner extends Pointer { public native @Cast("TfLiteStatus") int Invoke(); /** Attempts to cancel in flight invocation if any. - * This will not affect calls to {@code Invoke} that happend after this. + * This will not affect calls to {@code Invoke} that happened after this. * Non blocking and thread safe. * Returns kTfLiteError if cancellation is not enabled, otherwise returns * kTfLiteOk. * WARNING: This is an experimental API and subject to change. */ + + /// + /// public native @Cast("TfLiteStatus") int Cancel(); + + /** \brief Assigns (or reassigns) a custom memory allocation for the given + * tensor name. {@code flags} is a bitmask, see TfLiteCustomAllocationFlags. + * The runtime does NOT take ownership of the underlying memory. + * + * NOTE: User needs to call AllocateTensors() after this. + * Invalid/insufficient buffers will cause an error during AllocateTensors or + * Invoke (in case of dynamic shapes in the graph). + * + * Parameters should satisfy the following conditions: + * 1. tensor->allocation_type == kTfLiteArenaRw or kTfLiteArenaRwPersistent + * In general, this is true for I/O tensors & variable tensors. + * 2. allocation->data has the appropriate permissions for runtime access + * (Read-only for inputs, Read-Write for others), and outlives + * Interpreter. + * 3. allocation->bytes >= tensor->bytes. + * This condition is checked again if any tensors are resized. + * 4. allocation->data should be aligned to kDefaultTensorAlignment + * defined in lite/util.h. (Currently 64 bytes) + * This check is skipped if kTfLiteCustomAllocationFlagsSkipAlignCheck is + * set through {@code flags}. + * \warning This is an experimental API and subject to change. \n */ + + /// + /// + public native @Cast("TfLiteStatus") int SetCustomAllocationForInputTensor( + @Cast("const char*") BytePointer input_name, @Const @ByRef TfLiteCustomAllocation allocation, + @Cast("int64_t") long flags/*=kTfLiteCustomAllocationFlagsNone*/); + public native @Cast("TfLiteStatus") int SetCustomAllocationForInputTensor( + @Cast("const char*") BytePointer input_name, @Const @ByRef TfLiteCustomAllocation allocation); + public native @Cast("TfLiteStatus") int SetCustomAllocationForInputTensor( + String input_name, @Const @ByRef TfLiteCustomAllocation allocation, + @Cast("int64_t") long flags/*=kTfLiteCustomAllocationFlagsNone*/); + public native @Cast("TfLiteStatus") int SetCustomAllocationForInputTensor( + String input_name, @Const @ByRef TfLiteCustomAllocation allocation); + + /** \brief Assigns (or reassigns) a custom memory allocation for the given + * tensor name. {@code flags} is a bitmask, see TfLiteCustomAllocationFlags. + * The runtime does NOT take ownership of the underlying memory. + * + * NOTE: User needs to call AllocateTensors() after this. + * Invalid/insufficient buffers will cause an error during AllocateTensors or + * Invoke (in case of dynamic shapes in the graph). + * + * Parameters should satisfy the following conditions: + * 1. tensor->allocation_type == kTfLiteArenaRw or kTfLiteArenaRwPersistent + * In general, this is true for I/O tensors & variable tensors. + * 2. allocation->data has the appropriate permissions for runtime access + * (Read-only for inputs, Read-Write for others), and outlives + * Interpreter. + * 3. allocation->bytes >= tensor->bytes. + * This condition is checked again if any tensors are resized. + * 4. allocation->data should be aligned to kDefaultTensorAlignment + * defined in lite/util.h. (Currently 64 bytes) + * This check is skipped if kTfLiteCustomAllocationFlagsSkipAlignCheck is + * set through {@code flags}. + * \warning This is an experimental API and subject to change. \n */ + + /// + public native @Cast("TfLiteStatus") int SetCustomAllocationForOutputTensor( + @Cast("const char*") BytePointer output_name, @Const @ByRef TfLiteCustomAllocation allocation, + @Cast("int64_t") long flags/*=kTfLiteCustomAllocationFlagsNone*/); + public native @Cast("TfLiteStatus") int SetCustomAllocationForOutputTensor( + @Cast("const char*") BytePointer output_name, @Const @ByRef TfLiteCustomAllocation allocation); + public native @Cast("TfLiteStatus") int SetCustomAllocationForOutputTensor( + String output_name, @Const @ByRef TfLiteCustomAllocation allocation, + @Cast("int64_t") long flags/*=kTfLiteCustomAllocationFlagsNone*/); + public native @Cast("TfLiteStatus") int SetCustomAllocationForOutputTensor( + String output_name, @Const @ByRef TfLiteCustomAllocation allocation); + + /** \brief Set if buffer handle output is allowed. + * + * When using hardware delegation, Interpreter will make the data of output + * tensors available in {@code tensor->data} by default. If the application can + * consume the buffer handle directly (e.g. reading output from OpenGL + * texture), it can set this flag to true, so Interpreter won't copy the + * data from buffer handle to CPU memory. + * \warning This is an experimental API and subject to change. \n */ + public native void SetAllowBufferHandleOutput(@Cast("bool") boolean allow_buffer_handle_output); } diff --git a/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/SignatureRunnerHelper.java b/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/SignatureRunnerHelper.java index 714c545c924..5cb157701b0 100644 --- a/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/SignatureRunnerHelper.java +++ b/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/SignatureRunnerHelper.java @@ -7,17 +7,7 @@ import org.bytedeco.javacpp.annotation.*; import static org.bytedeco.tensorflowlite.global.tensorflowlite.*; - // Class for friend declarations. -/// -/// -/// -/// -/// -/// -/// -/// -/// @Namespace("tflite") @Opaque @Properties(inherit = org.bytedeco.tensorflowlite.presets.tensorflowlite.class) public class SignatureRunnerHelper extends Pointer { /** Empty constructor. Calls {@code super((Pointer)null)}. */ diff --git a/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/SignatureRunnerJNIHelper.java b/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/SignatureRunnerJNIHelper.java index 15f4403dcc2..57664cb35b3 100644 --- a/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/SignatureRunnerJNIHelper.java +++ b/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/SignatureRunnerJNIHelper.java @@ -7,7 +7,7 @@ import org.bytedeco.javacpp.annotation.*; import static org.bytedeco.tensorflowlite.global.tensorflowlite.*; - + // Class for friend declarations. @Namespace("tflite") @Opaque @Properties(inherit = org.bytedeco.tensorflowlite.presets.tensorflowlite.class) public class SignatureRunnerJNIHelper extends Pointer { /** Empty constructor. Calls {@code super((Pointer)null)}. */ diff --git a/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/StringVector.java b/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/StringVector.java index 951e6f01bb8..519c787e58e 100644 --- a/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/StringVector.java +++ b/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/StringVector.java @@ -26,6 +26,8 @@ public class StringVector extends Pointer { public void clear() { resize(0); } public native void resize(@Cast("size_t") long n); + public BytePointer front() { return get(0); } + public BytePointer back() { return get(size() - 1); } @Index(function = "at") public native @StdString @Cast({"char*", "std::string*"}) BytePointer get(@Cast("size_t") long i); public native StringVector put(@Cast("size_t") long i, BytePointer value); diff --git a/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/Subgraph.java b/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/Subgraph.java index 86331cebcac..ee39aa071e6 100644 --- a/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/Subgraph.java +++ b/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/Subgraph.java @@ -480,6 +480,10 @@ private native void allocate(ErrorReporter error_reporter, // Returns status of success or failure. public native @Cast("TfLiteStatus") int AllocateTensors(); + // Returns the number of times each tensor is consumed. Subgraph output + // tensors are considered as consumed. + public native @StdVector IntPointer GetInputTensorsCount(); + // Invoke the subgraph (run the whole graph in dependency order). // // NOTE: It is possible that the interpreter is not in a ready state @@ -607,7 +611,7 @@ public static class Check_cancelled_func_Pointer extends FunctionPointer { // the TfLite library and allow users to plug-in their own memory planner // debugger, we have utilized weak symbols to meet these two requirements. By // default, there is no debugging info dumped. However, if the TfLite-provided - // lite:simple_memory_arena_debug_dump (i.e. containing the strong defintion) + // lite:simple_memory_arena_debug_dump (i.e. containing the strong definition) // is linked to the program, calling this function will output memory usage // information about tenosrs and ops. public native void DumpMemoryPlannerDebugInfo(); @@ -678,12 +682,34 @@ public static class SubgraphAllocInfo extends Pointer { public native @Cast("bool") boolean DisableDelegateClustering(); // Retrieves the corresponding TfLiteContext of a subgraph given a subgraph - // index. If an invalid subgraph index is given, then returns nullptr. - public native TfLiteContext GetSubgraphContext(int subgraph_index); - - // Retrieves a const pointer to the corresponding TfLiteContext of a subgraph - // given a subgraph index. If an invalid subgraph index is given, then returns - // nullptr. + // index and switches to the delegate context for this subgraph. If an invalid + // subgraph index is given, returns kTfLiteError. + // NOTE: This function is expected to be paired with ReleaseSubgraphContext() + // once the delegate preparation is done and/or the delegate context functions + // are no longer needed. + public native @Cast("TfLiteStatus") int AcquireSubgraphContext(int subgraph_index, + @Cast("TfLiteContext**") PointerPointer acquired_context); + public native @Cast("TfLiteStatus") int AcquireSubgraphContext(int subgraph_index, + @ByPtrPtr TfLiteContext acquired_context); + // WARNING: This is an experimental interface that is subject to change. + // Entry point for C node plugin API to acquire the subgraph context. + public static native @Cast("TfLiteStatus") int AcquireSubgraphContext(TfLiteContext context, + int subgraph_index, + @Cast("TfLiteContext**") PointerPointer acquired_context); + public static native @Cast("TfLiteStatus") int AcquireSubgraphContext(TfLiteContext context, + int subgraph_index, + @ByPtrPtr TfLiteContext acquired_context); + + // Releases the subgraph context by switching back to the TFLite kernel + // context for this specified subgraph. + // NOTE: This function is expected to be used after AcquireSubgraphContext() + // once the delegate preparation is done and/or the delegate context functions + // are no longer needed. + public native @Cast("TfLiteStatus") int ReleaseSubgraphContext(int subgraph_index); + // WARNING: This is an experimental interface that is subject to change. + // Entry point for C node plugin API to release the subgraph context. + public static native @Cast("TfLiteStatus") int ReleaseSubgraphContext(TfLiteContext context, + int subgraph_index); // Marks the subgraph with the given index as "delegation-skippable". Returns // kTfLiteOk if the given subgraph index is valid and is successfully marked @@ -727,4 +753,36 @@ public static class SubgraphAllocInfo extends Pointer { // NOTE: This function is expected to be called only when this subgraph will // be skipped by the interpreter. public native void MarkAsDelegationSkippable(); + + // Loads metadata of a TF Lite node's custom initialization data. + // Specifically: + // * Loads into the supplied 'fd' the file descriptor of the file that stores + // the 'node's custom initialization data. This output parameter will be + // loaded if the TF Lite runtime has access to the file descriptor, though + // this is not always the case, e.g. if a client provides a tflite::Model + // directly to the TF Lite runtime. If 'fd' can be loaded then 'kTfLiteOk' + // will be returned, otherwise 'kTfLiteError' is returned. + // * Loads into the supplied 'custom_initial_data_offset_in_file' pointer the + // offset of the 'node's custom init data in the file associated with 'fd'. + // This output parameter will be set to -1 if the 'node' does not have + // custom init data set. + // * Loads into the supplied 'custom_initial_data_size' the size of the + // custom initialization data. This output parameter will be set to -1 if + // the 'node' does not have custom init data set. + // + // Returns 'kTfLiteOk' when 'fd' has been loaded successfully and + // 'kTfLiteError' otherwise. Note that this means that 'kTfLiteOk' can be + // returned, even if the 'node' does not have custom init data set. + public native @Cast("TfLiteStatus") int GetNodeInitDataMmapInfo( + @Const TfLiteNode node, IntPointer fd, + @Cast("int64_t*") LongPointer custom_initial_data_offset_in_file, + @Cast("int64_t*") LongPointer custom_initial_data_size); + public native @Cast("TfLiteStatus") int GetNodeInitDataMmapInfo( + @Const TfLiteNode node, IntBuffer fd, + @Cast("int64_t*") LongBuffer custom_initial_data_offset_in_file, + @Cast("int64_t*") LongBuffer custom_initial_data_size); + public native @Cast("TfLiteStatus") int GetNodeInitDataMmapInfo( + @Const TfLiteNode node, int[] fd, + @Cast("int64_t*") long[] custom_initial_data_offset_in_file, + @Cast("int64_t*") long[] custom_initial_data_size); } diff --git a/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/SubgraphVector.java b/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/SubgraphVector.java index 9688433129a..0bceee77c08 100644 --- a/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/SubgraphVector.java +++ b/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/SubgraphVector.java @@ -26,6 +26,8 @@ public class SubgraphVector extends Pointer { public void clear() { resize(0); } public native void resize(@Cast("size_t") long n); + public Subgraph front() { return get(0); } + public Subgraph back() { return get(size() - 1); } @Index(function = "at") public native @UniquePtr @Cast({"", "std::unique_ptr&&"}) Subgraph get(@Cast("size_t") long i); public native SubgraphVector put(@Cast("size_t") long i, Subgraph value); diff --git a/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/TfLiteArrayDeleter.java b/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/TfLiteArrayDeleter.java new file mode 100644 index 00000000000..c4d2d298e19 --- /dev/null +++ b/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/TfLiteArrayDeleter.java @@ -0,0 +1,34 @@ +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE + +package org.bytedeco.tensorflowlite; + +import java.nio.*; +import org.bytedeco.javacpp.*; +import org.bytedeco.javacpp.annotation.*; + +import static org.bytedeco.tensorflowlite.global.tensorflowlite.*; + + +// Function object used as a deleter for unique_ptr holding TFLite*Array +// objects. +@Namespace("tflite::array_internal") @Properties(inherit = org.bytedeco.tensorflowlite.presets.tensorflowlite.class) +public class TfLiteArrayDeleter extends Pointer { + static { Loader.load(); } + /** Default native constructor. */ + public TfLiteArrayDeleter() { super((Pointer)null); allocate(); } + /** Native array allocator. Access with {@link Pointer#position(long)}. */ + public TfLiteArrayDeleter(long size) { super((Pointer)null); allocateArray(size); } + /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ + public TfLiteArrayDeleter(Pointer p) { super(p); } + private native void allocate(); + private native void allocateArray(long size); + @Override public TfLiteArrayDeleter position(long position) { + return (TfLiteArrayDeleter)super.position(position); + } + @Override public TfLiteArrayDeleter getPointer(long i) { + return new TfLiteArrayDeleter((Pointer)this).offsetAddress(i); + } + + public native @Name("operator ()") void apply(TfLiteIntArray a); + public native @Name("operator ()") void apply(TfLiteFloatArray a); +} diff --git a/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/TfLiteArrayInfo.java b/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/TfLiteArrayInfo.java new file mode 100644 index 00000000000..fa361f6a2aa --- /dev/null +++ b/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/TfLiteArrayInfo.java @@ -0,0 +1,32 @@ +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE + +package org.bytedeco.tensorflowlite; + +import java.nio.*; +import org.bytedeco.javacpp.*; +import org.bytedeco.javacpp.annotation.*; + +import static org.bytedeco.tensorflowlite.global.tensorflowlite.*; + + +// Maps T to the corresponding TfLiteArray type. + +@Name("tflite::array_internal::TfLiteArrayInfo") @Properties(inherit = org.bytedeco.tensorflowlite.presets.tensorflowlite.class) +public class TfLiteArrayInfo extends Pointer { + static { Loader.load(); } + /** Default native constructor. */ + public TfLiteArrayInfo() { super((Pointer)null); allocate(); } + /** Native array allocator. Access with {@link Pointer#position(long)}. */ + public TfLiteArrayInfo(long size) { super((Pointer)null); allocateArray(size); } + /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ + public TfLiteArrayInfo(Pointer p) { super(p); } + private native void allocate(); + private native void allocateArray(long size); + @Override public TfLiteArrayInfo position(long position) { + return (TfLiteArrayInfo)super.position(position); + } + @Override public TfLiteArrayInfo getPointer(long i) { + return new TfLiteArrayInfo((Pointer)this).offsetAddress(i); + } + +} diff --git a/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/TfLiteContext.java b/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/TfLiteContext.java index e99fbe6fc70..f19b4b67722 100644 --- a/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/TfLiteContext.java +++ b/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/TfLiteContext.java @@ -273,7 +273,7 @@ public static class ResizeTensorExplicit_TfLiteContext_TfLiteTensor_int_IntPoint // } // // NOTE: The context owns the memory referenced by partition_params_array. It - // will be cleared with another call to PreviewDelegateParitioning, or after + // will be cleared with another call to PreviewDelegatePartitioning, or after // TfLiteDelegateParams::Prepare returns. // // WARNING: This is an experimental interface that is subject to change. @@ -336,4 +336,41 @@ public static class GetModelMetadata_TfLiteContext_BytePointer_PointerPointer_Si @Cast("size_t*") SizeTPointer bytes); } public native GetModelMetadata_TfLiteContext_BytePointer_PointerPointer_SizeTPointer GetModelMetadata(); public native TfLiteContext GetModelMetadata(GetModelMetadata_TfLiteContext_BytePointer_PointerPointer_SizeTPointer setter); + + // Retrieves the corresponding TfLiteContext of a subgraph that the given + // subgraph_index points to and switches to the delegate context for that + // subgraph. If an invalid subgraph index is given, returns kTfLiteError. + // NOTE: This function is expected to be paired with ReleaseSubgraphContext() + // once the delegate preparation is done and/or the delegate context functions + // are no longer needed. + // + // WARNING: This is an experimental interface that is subject to change. + public static class AcquireSubgraphContext_TfLiteContext_int_PointerPointer extends FunctionPointer { + static { Loader.load(); } + /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ + public AcquireSubgraphContext_TfLiteContext_int_PointerPointer(Pointer p) { super(p); } + protected AcquireSubgraphContext_TfLiteContext_int_PointerPointer() { allocate(); } + private native void allocate(); + public native @Cast("TfLiteStatus") int call( + TfLiteContext context, int subgraph_index, + @Cast("TfLiteContext**") PointerPointer acquired_context); + } + public native AcquireSubgraphContext_TfLiteContext_int_PointerPointer AcquireSubgraphContext(); public native TfLiteContext AcquireSubgraphContext(AcquireSubgraphContext_TfLiteContext_int_PointerPointer setter); + // Releases the subgraph context by switching back to the TFLite kernel + // context for the subgraph that the given subgraph_index points to. + // NOTE: This function is expected to be used after AcquireSubgraphContext() + // once the delegate preparation is done and/or the delegate context functions + // are no longer needed. + // + // WARNING: This is an experimental interface that is subject to change. + public static class ReleaseSubgraphContext_TfLiteContext_int extends FunctionPointer { + static { Loader.load(); } + /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ + public ReleaseSubgraphContext_TfLiteContext_int(Pointer p) { super(p); } + protected ReleaseSubgraphContext_TfLiteContext_int() { allocate(); } + private native void allocate(); + public native @Cast("TfLiteStatus") int call(TfLiteContext context, + int subgraph_index); + } + public native ReleaseSubgraphContext_TfLiteContext_int ReleaseSubgraphContext(); public native TfLiteContext ReleaseSubgraphContext(ReleaseSubgraphContext_TfLiteContext_int setter); } diff --git a/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/TfLiteDelegatePtrVector.java b/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/TfLiteDelegatePtrVector.java index c52c419cfdf..57fcd6c5819 100644 --- a/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/TfLiteDelegatePtrVector.java +++ b/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/TfLiteDelegatePtrVector.java @@ -20,6 +20,8 @@ public class TfLiteDelegatePtrVector extends Pointer { public boolean empty() { return size() == 0; } public native long size(); + public TfLiteDelegate front() { return get(0); } + public TfLiteDelegate back() { return get(size() - 1); } @Index(function = "at") public native @UniquePtr("TfLiteDelegate,void(*)(TfLiteDelegate*)") TfLiteDelegate get(@Cast("size_t") long i); public native @ByVal Iterator begin(); diff --git a/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/TfLiteModel.java b/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/TfLiteModel.java index f4712f069bb..3187ff7f005 100644 --- a/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/TfLiteModel.java +++ b/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/TfLiteModel.java @@ -10,6 +10,10 @@ // #endif // __cplusplus +/** \addtogroup c_api tensorflow/lite/c/c_api.h + * \{ + */ + // This header should be valid in both C (e.g. C99) and C++, // so 'void' in parameters is not redundant. // NOLINTBEGIN(modernize-redundant-void-arg) diff --git a/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/TfLiteOpaqueContext.java b/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/TfLiteOpaqueContext.java index 893a913efbb..16eecc46308 100644 --- a/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/TfLiteOpaqueContext.java +++ b/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/TfLiteOpaqueContext.java @@ -12,7 +12,7 @@ // -------------------------------------------------------------------------- // Opaque types used by c_api.h, c_api_opaque.h and common.h. -// TfLiteOpaqueContext is an opaque version of TfLiteContext; +/** TfLiteOpaqueContext is an opaque version of TfLiteContext; */ @Opaque @Properties(inherit = org.bytedeco.tensorflowlite.presets.tensorflowlite.class) public class TfLiteOpaqueContext extends Pointer { /** Empty constructor. Calls {@code super((Pointer)null)}. */ diff --git a/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/TfLiteOpaqueDelegateStruct.java b/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/TfLiteOpaqueDelegateStruct.java index ead3058c558..4c190e25d8b 100644 --- a/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/TfLiteOpaqueDelegateStruct.java +++ b/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/TfLiteOpaqueDelegateStruct.java @@ -9,13 +9,13 @@ import static org.bytedeco.tensorflowlite.global.tensorflowlite.*; -// TfLiteOpaqueDelegateStruct: unconditionally opaque version of -// TfLiteDelegate; allows delegation of nodes to alternative backends. -// -// This is an abstract type that is intended to have the same -// role as TfLiteDelegate, but without exposing the implementation -// details of how delegates are implemented. -// WARNING: This is an experimental type and subject to change. +/** TfLiteOpaqueDelegateStruct: unconditionally opaque version of + * TfLiteDelegate; allows delegation of nodes to alternative backends. + * + * This is an abstract type that is intended to have the same + * role as TfLiteDelegate, but without exposing the implementation + * details of how delegates are implemented. + * WARNING: This is an experimental type and subject to change. */ @Opaque @Properties(inherit = org.bytedeco.tensorflowlite.presets.tensorflowlite.class) public class TfLiteOpaqueDelegateStruct extends Pointer { /** Empty constructor. Calls {@code super((Pointer)null)}. */ diff --git a/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/TfLiteOpaqueNode.java b/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/TfLiteOpaqueNode.java index 423749e8e57..f5b70263b4c 100644 --- a/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/TfLiteOpaqueNode.java +++ b/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/TfLiteOpaqueNode.java @@ -9,7 +9,7 @@ import static org.bytedeco.tensorflowlite.global.tensorflowlite.*; -// TfLiteOpaqueNode is an opaque version of TfLiteNode; +/** TfLiteOpaqueNode is an opaque version of TfLiteNode; */ @Opaque @Properties(inherit = org.bytedeco.tensorflowlite.presets.tensorflowlite.class) public class TfLiteOpaqueNode extends Pointer { /** Empty constructor. Calls {@code super((Pointer)null)}. */ diff --git a/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/TfLiteOpaqueTensor.java b/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/TfLiteOpaqueTensor.java index 06a5776e4be..2d6ed3d1c9f 100644 --- a/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/TfLiteOpaqueTensor.java +++ b/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/TfLiteOpaqueTensor.java @@ -9,7 +9,7 @@ import static org.bytedeco.tensorflowlite.global.tensorflowlite.*; -// TfLiteOpaqueTensor is an opaque version of TfLiteTensor; +/** TfLiteOpaqueTensor is an opaque version of TfLiteTensor; */ @Opaque @Properties(inherit = org.bytedeco.tensorflowlite.presets.tensorflowlite.class) public class TfLiteOpaqueTensor extends Pointer { /** Empty constructor. Calls {@code super((Pointer)null)}. */ diff --git a/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/TfLiteQuantizationParams.java b/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/TfLiteQuantizationParams.java index 638beb47635..0433f7a0af4 100644 --- a/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/TfLiteQuantizationParams.java +++ b/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/TfLiteQuantizationParams.java @@ -9,12 +9,12 @@ import static org.bytedeco.tensorflowlite.global.tensorflowlite.*; -// Legacy. Will be deprecated in favor of TfLiteAffineQuantization. -// If per-layer quantization is specified this field will still be populated in -// addition to TfLiteAffineQuantization. -// Parameters for asymmetric quantization. Quantized values can be converted -// back to float using: -// real_value = scale * (quantized_value - zero_point) +/** Legacy. Will be deprecated in favor of TfLiteAffineQuantization. + * If per-layer quantization is specified this field will still be populated in + * addition to TfLiteAffineQuantization. + * Parameters for asymmetric quantization. Quantized values can be converted + * back to float using: + * real_value = scale * (quantized_value - zero_point) */ @Properties(inherit = org.bytedeco.tensorflowlite.presets.tensorflowlite.class) public class TfLiteQuantizationParams extends Pointer { static { Loader.load(); } diff --git a/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/TfLiteRegistration.java b/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/TfLiteRegistration.java index 57304c4d9ff..200c4579a0e 100644 --- a/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/TfLiteRegistration.java +++ b/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/TfLiteRegistration.java @@ -9,11 +9,6 @@ import static org.bytedeco.tensorflowlite.global.tensorflowlite.*; -// `TfLiteRegistrationExternal` is an external version of `TfLiteRegistration` -// for C API which doesn't use internal types (such as `TfLiteContext`) but only -// uses stable API types (such as `TfLiteOpaqueContext`). The purpose of each -// field is the exactly the same as with `TfLiteRegistration`. - @Properties(inherit = org.bytedeco.tensorflowlite.presets.tensorflowlite.class) public class TfLiteRegistration extends Pointer { static { Loader.load(); } @@ -149,4 +144,8 @@ public static class Profiling_string_TfLiteContext_TfLiteNode extends FunctionPo // by applying a delegate. // If the function returns nullptr, that means that the underlying delegate // does not support asynchronous execution for this `node`. + + // Indicates if an operator's output may safely overwrite its inputs. + // See the comments in `TfLiteInPlaceOp`. + public native @Cast("uint64_t") long inplace_operator(); public native TfLiteRegistration inplace_operator(long setter); } diff --git a/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/TfLiteRegistrationExternal.java b/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/TfLiteRegistrationExternal.java index 2380e0820c6..a8873072a2f 100644 --- a/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/TfLiteRegistrationExternal.java +++ b/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/TfLiteRegistrationExternal.java @@ -8,12 +8,12 @@ import static org.bytedeco.tensorflowlite.global.tensorflowlite.*; +// #endif // __cplusplus -/** TfLiteRegistrationExternal is an external version of TfLiteRegistration to - * use custom op registration API. - * \warning This is an experimental type and subject to change. */ - -/// +// TfLiteRegistrationExternal is an external version of TfLiteRegistration to +// use custom op registration API. +// +// \warning This is an experimental type and subject to change. @Opaque @Properties(inherit = org.bytedeco.tensorflowlite.presets.tensorflowlite.class) public class TfLiteRegistrationExternal extends Pointer { /** Empty constructor. Calls {@code super((Pointer)null)}. */ diff --git a/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/TfLiteRegistration_V3.java b/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/TfLiteRegistration_V3.java new file mode 100644 index 00000000000..6b24b565dd6 --- /dev/null +++ b/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/TfLiteRegistration_V3.java @@ -0,0 +1,90 @@ +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE + +package org.bytedeco.tensorflowlite; + +import java.nio.*; +import org.bytedeco.javacpp.*; +import org.bytedeco.javacpp.annotation.*; + +import static org.bytedeco.tensorflowlite.global.tensorflowlite.*; + + +/** \private */ +// Old version of `TfLiteRegistration` to maintain binary backward +// compatibility. +// The legacy registration type must be a POD struct type whose field types must +// be a prefix of the field types in TfLiteRegistration, and offset of the first +// field in TfLiteRegistration that is not present in the legacy registration +// type must be greater than or equal to the size of the legacy registration +// type. +// WARNING: This structure is deprecated / not an official part of the +// API. It should be only used for binary backward compatibility. +@Properties(inherit = org.bytedeco.tensorflowlite.presets.tensorflowlite.class) +public class TfLiteRegistration_V3 extends Pointer { + static { Loader.load(); } + /** Default native constructor. */ + public TfLiteRegistration_V3() { super((Pointer)null); allocate(); } + /** Native array allocator. Access with {@link Pointer#position(long)}. */ + public TfLiteRegistration_V3(long size) { super((Pointer)null); allocateArray(size); } + /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ + public TfLiteRegistration_V3(Pointer p) { super(p); } + private native void allocate(); + private native void allocateArray(long size); + @Override public TfLiteRegistration_V3 position(long position) { + return (TfLiteRegistration_V3)super.position(position); + } + @Override public TfLiteRegistration_V3 getPointer(long i) { + return new TfLiteRegistration_V3((Pointer)this).offsetAddress(i); + } + + public static class Init_TfLiteContext_BytePointer_long extends FunctionPointer { + static { Loader.load(); } + /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ + public Init_TfLiteContext_BytePointer_long(Pointer p) { super(p); } + protected Init_TfLiteContext_BytePointer_long() { allocate(); } + private native void allocate(); + public native Pointer call(TfLiteContext context, @Cast("const char*") BytePointer buffer, @Cast("size_t") long length); + } + public native Init_TfLiteContext_BytePointer_long init(); public native TfLiteRegistration_V3 init(Init_TfLiteContext_BytePointer_long setter); + public static class Free_TfLiteContext_Pointer extends FunctionPointer { + static { Loader.load(); } + /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ + public Free_TfLiteContext_Pointer(Pointer p) { super(p); } + protected Free_TfLiteContext_Pointer() { allocate(); } + private native void allocate(); + public native void call(TfLiteContext context, Pointer buffer); + } + public native @Name("free") Free_TfLiteContext_Pointer _free(); public native TfLiteRegistration_V3 _free(Free_TfLiteContext_Pointer setter); + public static class Prepare_TfLiteContext_TfLiteNode extends FunctionPointer { + static { Loader.load(); } + /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ + public Prepare_TfLiteContext_TfLiteNode(Pointer p) { super(p); } + protected Prepare_TfLiteContext_TfLiteNode() { allocate(); } + private native void allocate(); + public native @Cast("TfLiteStatus") int call(TfLiteContext context, TfLiteNode node); + } + public native Prepare_TfLiteContext_TfLiteNode prepare(); public native TfLiteRegistration_V3 prepare(Prepare_TfLiteContext_TfLiteNode setter); + public static class Invoke_TfLiteContext_TfLiteNode extends FunctionPointer { + static { Loader.load(); } + /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ + public Invoke_TfLiteContext_TfLiteNode(Pointer p) { super(p); } + protected Invoke_TfLiteContext_TfLiteNode() { allocate(); } + private native void allocate(); + public native @Cast("TfLiteStatus") int call(TfLiteContext context, TfLiteNode node); + } + public native Invoke_TfLiteContext_TfLiteNode invoke(); public native TfLiteRegistration_V3 invoke(Invoke_TfLiteContext_TfLiteNode setter); + public static class Profiling_string_TfLiteContext_TfLiteNode extends FunctionPointer { + static { Loader.load(); } + /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ + public Profiling_string_TfLiteContext_TfLiteNode(Pointer p) { super(p); } + protected Profiling_string_TfLiteContext_TfLiteNode() { allocate(); } + private native void allocate(); + public native @Cast("const char*") BytePointer call(@Const TfLiteContext context, + @Const TfLiteNode node); + } + public native Profiling_string_TfLiteContext_TfLiteNode profiling_string(); public native TfLiteRegistration_V3 profiling_string(Profiling_string_TfLiteContext_TfLiteNode setter); + public native int builtin_code(); public native TfLiteRegistration_V3 builtin_code(int setter); + public native @Cast("const char*") BytePointer custom_name(); public native TfLiteRegistration_V3 custom_name(BytePointer setter); + public native int version(); public native TfLiteRegistration_V3 version(int setter); + public native TfLiteRegistrationExternal registration_external(); public native TfLiteRegistration_V3 registration_external(TfLiteRegistrationExternal setter); +} diff --git a/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/TfLiteIntArrayDeleter.java b/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/TfLiteTensorDeleter.java similarity index 52% rename from tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/TfLiteIntArrayDeleter.java rename to tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/TfLiteTensorDeleter.java index 0dffb9090a7..5daebf84c15 100644 --- a/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/TfLiteIntArrayDeleter.java +++ b/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/TfLiteTensorDeleter.java @@ -9,23 +9,24 @@ import static org.bytedeco.tensorflowlite.global.tensorflowlite.*; +// `unique_ptr` wrapper for `TfLiteTensor`s. @Namespace("tflite") @Properties(inherit = org.bytedeco.tensorflowlite.presets.tensorflowlite.class) -public class TfLiteIntArrayDeleter extends Pointer { +public class TfLiteTensorDeleter extends Pointer { static { Loader.load(); } /** Default native constructor. */ - public TfLiteIntArrayDeleter() { super((Pointer)null); allocate(); } + public TfLiteTensorDeleter() { super((Pointer)null); allocate(); } /** Native array allocator. Access with {@link Pointer#position(long)}. */ - public TfLiteIntArrayDeleter(long size) { super((Pointer)null); allocateArray(size); } + public TfLiteTensorDeleter(long size) { super((Pointer)null); allocateArray(size); } /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ - public TfLiteIntArrayDeleter(Pointer p) { super(p); } + public TfLiteTensorDeleter(Pointer p) { super(p); } private native void allocate(); private native void allocateArray(long size); - @Override public TfLiteIntArrayDeleter position(long position) { - return (TfLiteIntArrayDeleter)super.position(position); + @Override public TfLiteTensorDeleter position(long position) { + return (TfLiteTensorDeleter)super.position(position); } - @Override public TfLiteIntArrayDeleter getPointer(long i) { - return new TfLiteIntArrayDeleter((Pointer)this).offsetAddress(i); + @Override public TfLiteTensorDeleter getPointer(long i) { + return new TfLiteTensorDeleter((Pointer)this).offsetAddress(i); } - public native @Name("operator ()") void apply(TfLiteIntArray a); + public native @Name("operator ()") void apply(TfLiteTensor t); } diff --git a/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/VariantData.java b/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/VariantData.java new file mode 100644 index 00000000000..76160f3b3f4 --- /dev/null +++ b/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/VariantData.java @@ -0,0 +1,88 @@ +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE + +package org.bytedeco.tensorflowlite; + +import java.nio.*; +import org.bytedeco.javacpp.*; +import org.bytedeco.javacpp.annotation.*; + +import static org.bytedeco.tensorflowlite.global.tensorflowlite.*; + + +// --- TFLITE VARIANT TENSORS ---- +// Programming languges usually define "variant" as a type that can hold an +// unbounded set of types. See std::any +// (https://en.cppreference.com/w/cpp/utility/any) for a related standard +// library construct. In tensorflow, variant tensors have a data member which is +// an Object that is destructible and copy constructible. +// Variant tensors are commonly used to represent non trivial data +// semantics that don't fit into simple primitives, such as lists of tensors and +// datasets. Additionally, they can facilitate containers for optimizing +// memory movement of tensor data. +// +// The following set of classes define the variant tensor member for tflite. +// They implement a type-erased container intended to be used behind the +// `data.data : void*` member of `TfLiteTensor`s. Runtime functions interact +// the variant member at the level of a `VariantData`, whereas kernels +// operate with the full knowledge of the un-erased type. The `VariantData` +// class provides abstract methods for destroying and copying `VariantData`. +// Invoking these methods will dispatch to the erased type opaquely. +// The contents of any object of type derived from `AbstractVariant` can be +// written to `TfLiteTensor::data::data : void*` from kernels. If the runtime +// were to copy such a tensor through `TfLiteTensorCopy`, the destination data +// member will contain the result of invoking the erased type's copy +// constructor. Similar for the runtime releasing tensors from memory, the +// erased type's destructor will be invoked. There are a few caveats to consider +// to use these safely, which we discuss below. +// +// EXAMPLE: READING VARIANT TENSORS +// ``` +// // retrieve input with `type == kTfLiteVariant` +// TfLiteTensor* input = ... +// // must first static cast to `VariantData`, more on this below. +// VariantData* vd_input = static_cast(t->data.data); +// CustomType* typed_input = +// static_cast(vd_input); +// // do custom work on `typed_input`... +// ``` +// +// EXAMPLE: WRITING VARIANT TENSORS +// ``` +// TfLiteTensor* output = ... +// // construct a new variant object behind the target tensor +// TfLiteVariantRealloc(output, args...); +// // again must static cast to `VariantData*` before writing to `void*`. +// output->data.data = static_cast(typed_output); +// ``` +// +// WHY STATIC CAST TO `VariantData*` +// The Standard defines a `reinterpret_cast` from a derived type to its +// parents as undefined behavior when the parent is a non-standard layout. +// https://en.cppreference.com/w/cpp/language/reinterpret_cast (see bullet 5). +// Due to the `VariantData` having virtual members it is indeed non-standard +// layout, and any type derived from `VariantData` fails to be +// "transparently-replaceable". I.e. implicit cast from derived to base in this +// case may adjust the pointer and by definition `reinterpret_cast` will not +// the adjust the pointer. +// Thus, dereferencing a pointer of type `VariantData` which addresses +// the first byte of an object of said derived type is UB unless it was first +// implicitly or statically casted to a `VariantData`. Writing the object of +// derived type directly to `void*` which is dereferenced as a `VariantData` is +// then UB, and so the intermediate cast through `VariantData` must be enforced. +// A good example of this issue is ellucidate in the bottom code snippet +// here: https://en.cppreference.com/w/cpp/utility/launder. +@Properties(inherit = org.bytedeco.tensorflowlite.presets.tensorflowlite.class) +public class VariantData extends Pointer { + static { Loader.load(); } + /** Pointer cast constructor. Invokes {@link Pointer#Pointer(Pointer)}. */ + public VariantData(Pointer p) { super(p); } + + // All variant objects must be able to be destroyed and copied. + // A "virtual copy-constructor". Often the destination tensor of a variant + // copy may have been previously allocated in a prior call to inference. We + // allow the copy to target the destinations buffer (`maybe_alloc`), + // for potential reuse and optimizations. `maybe_alloc` must be of the same + // underlying derived type. References to whatever object is at + // `maybe_alloc` may be invalidated. + public native VariantData CloneTo(VariantData maybe_alloc); +} diff --git a/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/global/tensorflowlite.java b/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/global/tensorflowlite.java index 1d573dc2afd..9a0580531be 100644 --- a/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/global/tensorflowlite.java +++ b/tensorflow-lite/src/gen/java/org/bytedeco/tensorflowlite/global/tensorflowlite.java @@ -284,14 +284,16 @@ public class tensorflowlite extends org.bytedeco.tensorflowlite.presets.tensorfl limitations under the License. ==============================================================================*/ -// This file declares types used by the pure C inference API defined in c_api.h, -// some of which are also used in the C++ and C kernel and interpreter APIs. +/** This file declares types used by the pure C inference API defined in +/** c_api.h, some of which are also used in the C++ and C kernel and interpreter +/** APIs. */ + +// WARNING: Users of TensorFlow Lite should not include this file directly, +// but should instead include +// "third_party/tensorflow/lite/c/c_api_types.h". +// Only the TensorFlow Lite implementation itself should include this +// file directly. -/** WARNING: Users of TensorFlow Lite should not include this file directly, -/** but should instead include -/** "third_party/tensorflow/lite/c/c_api_types.h". -/** Only the TensorFlow Lite implementation itself should include this -/** file directly. */ // IWYU pragma: private, include "third_party/tensorflow/lite/c/c_api_types.h" // #ifndef TENSORFLOW_LITE_CORE_C_C_API_TYPES_H_ @@ -302,6 +304,10 @@ public class tensorflowlite extends org.bytedeco.tensorflowlite.presets.tensorfl // #ifdef __cplusplus // #endif +/** \addtogroup c_api_types tensorflow/lite/c/c_api_types.h + * \{ + */ + // Define TFL_CAPI_EXPORT macro to export a function properly with a shared // library. // #ifdef SWIG @@ -320,50 +326,51 @@ public class tensorflowlite extends org.bytedeco.tensorflowlite.presets.tensorfl // #endif // _WIN32 // #endif // SWIG -// Note that new error status values may be added in future in order to -// indicate more fine-grained internal states, therefore, applications should -// not rely on status values being members of the enum. +/** Note that new error status values may be added in future in order to + * indicate more fine-grained internal states, therefore, applications should + * not rely on status values being members of the enum. */ /** enum TfLiteStatus */ public static final int + /** Success */ kTfLiteOk = 0, - // Generally referring to an error in the runtime (i.e. interpreter) + /** Generally referring to an error in the runtime (i.e. interpreter) */ kTfLiteError = 1, - // Generally referring to an error from a TfLiteDelegate itself. + /** Generally referring to an error from a TfLiteDelegate itself. */ kTfLiteDelegateError = 2, - // Generally referring to an error in applying a delegate due to - // incompatibility between runtime and delegate, e.g., this error is returned - // when trying to apply a TF Lite delegate onto a model graph that's already - // immutable. + /** Generally referring to an error in applying a delegate due to + * incompatibility between runtime and delegate, e.g., this error is returned + * when trying to apply a TF Lite delegate onto a model graph that's already + * immutable. */ kTfLiteApplicationError = 3, - // Generally referring to serialized delegate data not being found. - // See tflite::delegates::Serialization. + /** Generally referring to serialized delegate data not being found. + * See tflite::delegates::Serialization. */ kTfLiteDelegateDataNotFound = 4, - // Generally referring to data-writing issues in delegate serialization. - // See tflite::delegates::Serialization. + /** Generally referring to data-writing issues in delegate serialization. + * See tflite::delegates::Serialization. */ kTfLiteDelegateDataWriteError = 5, - // Generally referring to data-reading issues in delegate serialization. - // See tflite::delegates::Serialization. + /** Generally referring to data-reading issues in delegate serialization. + * See tflite::delegates::Serialization. */ kTfLiteDelegateDataReadError = 6, - // Generally referring to issues when the TF Lite model has ops that cannot be - // resolved at runtime. This could happen when the specific op is not - // registered or built with the TF Lite framework. + /** Generally referring to issues when the TF Lite model has ops that cannot + * be resolved at runtime. This could happen when the specific op is not + * registered or built with the TF Lite framework. */ kTfLiteUnresolvedOps = 7, - // Generally referring to invocation cancelled by the user. - // See `interpreter::Cancel`. + /** Generally referring to invocation cancelled by the user. + * See {@code interpreter::Cancel}. */ // TODO(b/194915839): Implement `interpreter::Cancel`. // TODO(b/250636993): Cancellation triggered by `SetCancellationFunction` // should also return this status code. kTfLiteCancelled = 8; -// Types supported by tensor +/** Types supported by tensor */ /** enum TfLiteType */ public static final int kTfLiteNoType = 0, @@ -398,21 +405,23 @@ public class tensorflowlite extends org.bytedeco.tensorflowlite.presets.tensorfl -// TfLiteDelegate: allows delegation of nodes to alternative backends. -// Forward declaration of concrete type declared in common.h. +/** TfLiteDelegate: allows delegation of nodes to alternative backends. + * Forward declaration of concrete type declared in common.h. */ // Targeting ../TfLiteOpaqueDelegateStruct.java -// TfLiteOpaqueDelegate: conditionally opaque version of -// TfLiteDelegate; allows delegation of nodes to alternative backends. -// For TF Lite in Play Services, this is an opaque type, -// but for regular TF Lite, this is just a typedef for TfLiteDelegate. -// WARNING: This is an experimental type and subject to change. +/** TfLiteOpaqueDelegate: conditionally opaque version of + * TfLiteDelegate; allows delegation of nodes to alternative backends. + * For TF Lite in Play Services, this is an opaque type, + * but for regular TF Lite, this is just a typedef for TfLiteDelegate. + * WARNING: This is an experimental type and subject to change. */ // #if TFLITE_WITH_STABLE_ABI || TFLITE_USE_OPAQUE_DELEGATE // #else // #endif +/** \} */ + // #ifdef __cplusplus // extern C // #endif // #endif // TENSORFLOW_LITE_CORE_C_C_API_TYPES_H_ @@ -467,10 +476,12 @@ public class tensorflowlite extends org.bytedeco.tensorflowlite.presets.tensorfl See the License for the specific language governing permissions and limitations under the License. ==============================================================================*/ -/** \warning Users of TensorFlow Lite should not include this file directly, -/** but should instead include "third_party/tensorflow/lite/c/c_api.h". -/** Only the TensorFlow Lite implementation itself should include this -/** file directly. */ +// \warning Note: Users of TensorFlow Lite should not include this file +// directly, but should instead include +// "third_party/tensorflow/lite/c/c_api.h". Only the TensorFlow Lite +// implementation itself should include this +// file directly. + // #ifndef TENSORFLOW_LITE_CORE_C_C_API_H_ // #define TENSORFLOW_LITE_CORE_C_C_API_H_ @@ -481,6 +492,7 @@ public class tensorflowlite extends org.bytedeco.tensorflowlite.presets.tensorfl // #include "tensorflow/lite/builtin_ops.h" // #include "tensorflow/lite/core/async/c/types.h" +// #include "tensorflow/lite/core/c/c_api_types.h" // IWYU pragma: export /// /// @@ -490,12 +502,9 @@ public class tensorflowlite extends org.bytedeco.tensorflowlite.presets.tensorfl /// /// /// -/// -// #include "tensorflow/lite/core/c/c_api_types.h" // IWYU pragma: export +// #include "tensorflow/lite/core/c/registration_external.h" // IWYU pragma: export -// -------------------------------------------------------------------------- -/** \file - * C API for TensorFlow Lite. +/** C API for TensorFlow Lite: * * The API leans towards simplicity and uniformity instead of convenience, as * most usage will be by language-specific wrappers. It provides largely the @@ -539,7 +548,6 @@ public class tensorflowlite extends org.bytedeco.tensorflowlite.presets.tensorfl * TfLiteInterpreterDelete(interpreter); * TfLiteInterpreterOptionsDelete(options); * TfLiteModelDelete(model); - * *
*/ // #ifdef __cplusplus @@ -555,9 +563,6 @@ public class tensorflowlite extends org.bytedeco.tensorflowlite.presets.tensorfl /** A tensor in the interpreter system which is a wrapper around a buffer of * data including a dimensionality (or NULL if not currently defined). */ -// Targeting ../TfLiteRegistrationExternal.java - - // -------------------------------------------------------------------------- /** The TensorFlow Lite Runtime version. @@ -987,60 +992,98 @@ public static native int TfLiteTensorDim(@Const TfLiteTensor tensor, /** Copies to the provided output buffer from the tensor's buffer. * REQUIRES: output_data_size == TfLiteTensorByteSize(tensor) */ - -/// public static native @Cast("TfLiteStatus") int TfLiteTensorCopyToBuffer( @Const TfLiteTensor output_tensor, Pointer output_data, @Cast("size_t") long output_data_size); -/** Returns a new TfLiteRegistrationExternal instance. - * - * \note The caller retains ownership and should ensure that - * the lifetime of the {@code TfLiteRegistrationExternal} must be at least as long as - * the lifetime of the {@code TfLiteInterpreter}. - * \warning This is an experimental API and subject to change. */ +// NOLINTEND(modernize-redundant-void-arg) -/// +/** \} */ + +// #ifdef __cplusplus // extern "C" +// #endif // __cplusplus + +// #endif // TENSORFLOW_LITE_CORE_C_C_API_H_ + + +// Parsed from tensorflow/lite/core/c/registration_external.h + +/* Copyright 2023 The TensorFlow Authors. All Rights Reserved. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +==============================================================================*/ +/** \warning Users of TensorFlow Lite should not include this file directly, +/** but should instead include "third_party/tensorflow/lite/c/c_api.h". +/** Only the TensorFlow Lite implementation itself should include this +/** file directly. */ +// #ifndef TENSORFLOW_LITE_CORE_C_REGISTRATION_EXTERNAL_H_ +// #define TENSORFLOW_LITE_CORE_C_REGISTRATION_EXTERNAL_H_ + +// #include + +// #include "tensorflow/lite/builtin_ops.h" +// #include "tensorflow/lite/core/async/c/types.h" +// #include "tensorflow/lite/core/c/c_api_types.h" + +// #ifdef __cplusplus +// Targeting ../TfLiteRegistrationExternal.java + + + +// Returns a new TfLiteRegistrationExternal instance. +// +// \note The caller retains ownership and should ensure that +// the lifetime of the `TfLiteRegistrationExternal` must be at least as long as +// the lifetime of the `TfLiteInterpreter`. +// +// \warning This is an experimental API and subject to change. public static native TfLiteRegistrationExternal TfLiteRegistrationExternalCreate(@Cast("TfLiteBuiltinOperator") int builtin_code, @Cast("const char*") BytePointer custom_name, int version); public static native TfLiteRegistrationExternal TfLiteRegistrationExternalCreate(@Cast("TfLiteBuiltinOperator") int builtin_code, String custom_name, int version); -/** Return the builtin op code of the provided external 'registration'. - * - * \warning This is an experimental API and subject to change. */ +// Destroys the TfLiteRegistrationExternal instance. +// +// \warning This is an experimental API and subject to change. +public static native void TfLiteRegistrationExternalDelete( + TfLiteRegistrationExternal registration); + +// Return the builtin op code of the provided external 'registration'. +// +// \warning This is an experimental API and subject to change. /// public static native @Cast("TfLiteBuiltinOperator") int TfLiteRegistrationExternalGetBuiltInCode( @Const TfLiteRegistrationExternal registration); -/** Return the OP version of the provided external 'registration'. Return -1 - * in case of error, or if the provided address is null. +/** Returns the custom name of the provided 'registration'. The returned pointer + * will be non-null iff the op is a custom op. * * \warning This is an experimental API and subject to change. */ /// -public static native int TfLiteRegistrationExternalGetVersion( +public static native @Cast("const char*") BytePointer TfLiteRegistrationExternalGetCustomName( @Const TfLiteRegistrationExternal registration); -/** Returns the custom name of the provided 'registration'. The returned pointer - * will be non-null iff the op is a custom op. +/** Return the OP version of the provided external 'registration'. Return -1 + * in case of error, or if the provided address is null. * * \warning This is an experimental API and subject to change. */ -public static native @Cast("const char*") BytePointer TfLiteRegistrationExternalGetCustomName( +public static native int TfLiteRegistrationExternalGetVersion( @Const TfLiteRegistrationExternal registration); - -/** Destroys the TfLiteRegistrationExternal instance. - * \warning This is an experimental API and subject to change. */ - -/// -public static native void TfLiteRegistrationExternalDelete( - TfLiteRegistrationExternal registration); // Targeting ../Init_TfLiteOpaqueContext_BytePointer_long.java - -/// public static native void TfLiteRegistrationExternalSetInit( TfLiteRegistrationExternal registration, Init_TfLiteOpaqueContext_BytePointer_long init); @@ -1053,16 +1096,12 @@ public static native void TfLiteRegistrationExternalSetInit( // Targeting ../Free_TfLiteOpaqueContext_Pointer.java - -/// public static native void TfLiteRegistrationExternalSetFree( TfLiteRegistrationExternal registration, Free_TfLiteOpaqueContext_Pointer _free); // Targeting ../Prepare_TfLiteOpaqueContext_TfLiteOpaqueNode.java - -/// public static native void TfLiteRegistrationExternalSetPrepare( TfLiteRegistrationExternal registration, Prepare_TfLiteOpaqueContext_TfLiteOpaqueNode prepare); @@ -1084,12 +1123,19 @@ public static native void TfLiteRegistrationExternalSetInvoke( * Please refer {@code async_kernel} of {@code TfLiteRegistration} for the detail. * \warning This is an experimental API and subject to change. */ -// NOLINTEND(modernize-redundant-void-arg) +/** Sets the inplace_operator field of the external registration. + * + * This is a bitmask. Please refer to {@code inplace_operator} field of + * {@code TfLiteRegistration} for details. + * + * \warning This is an experimental API and subject to change. */ +public static native void TfLiteRegistrationExternalSetInplaceOperator( + TfLiteRegistrationExternal registration, @Cast("uint64_t") long inplace_operator); // #ifdef __cplusplus // extern "C" // #endif // __cplusplus -// #endif // TENSORFLOW_LITE_CORE_C_C_API_H_ +// #endif // TENSORFLOW_LITE_CORE_C_REGISTRATION_EXTERNAL_H_ // Parsed from tensorflow/lite/c/c_api_experimental.h @@ -1210,6 +1256,7 @@ public static native void TfLiteInterpreterOptionsAddBuiltinOp( /// /// /// +/// public static native void TfLiteInterpreterOptionsAddCustomOp( TfLiteInterpreterOptions options, @Cast("const char*") BytePointer name, @Const TfLiteRegistration registration, int min_version, @@ -1225,8 +1272,6 @@ public static native void TfLiteInterpreterOptionsAddCustomOp( -/// -/// /// /// /// @@ -1243,19 +1288,79 @@ public static native void TfLiteInterpreterOptionsSetOpResolverExternal( /// -public static native void TfLiteInterpreterOptionsSetOpResolver( +/// +/// +/// +/// +public static native void TfLiteInterpreterOptionsSetOpResolverExternalWithFallback( TfLiteInterpreterOptions options, + Find_builtin_op_external_Pointer_int_int find_builtin_op_external, + Find_custom_op_external_Pointer_String_int find_custom_op_external, Find_builtin_op_Pointer_int_int find_builtin_op, Find_custom_op_Pointer_BytePointer_int find_custom_op, Pointer op_resolver_user_data); // Targeting ../Find_custom_op_Pointer_String_int.java +public static native void TfLiteInterpreterOptionsSetOpResolverExternalWithFallback( + TfLiteInterpreterOptions options, + Find_builtin_op_external_Pointer_int_int find_builtin_op_external, + Find_custom_op_external_Pointer_String_int find_custom_op_external, + Find_builtin_op_Pointer_int_int find_builtin_op, + Find_custom_op_Pointer_String_int find_custom_op, + Pointer op_resolver_user_data); + +/** Registers callbacks for resolving builtin or custom operators. + * + * The {@code TfLiteInterpreterOptionsSetOpResolver} function provides an alternative + * method for registering builtin ops and/or custom ops, by providing operator + * resolver callbacks. Unlike using {@code TfLiteInterpreterOptionsAddBuiltinOp} + * and/or {@code TfLiteInterpreterOptionsAddAddCustomOp}, these let you register all + * the operators in a single call. + * + * Code that uses this function should NOT call + * {@code TfLiteInterpreterOptionsAddBuiltin} or + * {@code TfLiteInterpreterOptionsAddCustomOp} on the same options object. + * + * If {@code op_resolver_user_data} is non-null, its lifetime must be at least as + * long as the lifetime of the {@code TfLiteInterpreterOptions}. + * + * WARNING: This is an experimental API and subject to change. + * + * DEPRECATED: use TfLiteInterpreterOptionsSetOpResolverExternal instead. */ + +/// +public static native void TfLiteInterpreterOptionsSetOpResolver( + TfLiteInterpreterOptions options, + Find_builtin_op_Pointer_int_int find_builtin_op, + Find_custom_op_Pointer_BytePointer_int find_custom_op, + Pointer op_resolver_user_data); public static native void TfLiteInterpreterOptionsSetOpResolver( TfLiteInterpreterOptions options, Find_builtin_op_Pointer_int_int find_builtin_op, Find_custom_op_Pointer_String_int find_custom_op, Pointer op_resolver_user_data); +// Targeting ../Find_builtin_op_v3_Pointer_int_int.java + + +// Targeting ../Find_custom_op_v3_Pointer_BytePointer_int.java + + + +/// +public static native void TfLiteInterpreterOptionsSetOpResolverV3( + TfLiteInterpreterOptions options, + Find_builtin_op_v3_Pointer_int_int find_builtin_op_v3, + Find_custom_op_v3_Pointer_BytePointer_int find_custom_op_v3, + Pointer op_resolver_user_data); +// Targeting ../Find_custom_op_v3_Pointer_String_int.java + + +public static native void TfLiteInterpreterOptionsSetOpResolverV3( + TfLiteInterpreterOptions options, + Find_builtin_op_v3_Pointer_int_int find_builtin_op_v3, + Find_custom_op_v3_Pointer_String_int find_custom_op_v3, + Pointer op_resolver_user_data); // Targeting ../Find_builtin_op_v2_Pointer_int_int.java @@ -1973,6 +2078,8 @@ public static native int TfLiteIntArrayEqualsArray(@Const TfLiteIntArray a, int // as constant inputs for downstream ops (also in prepare). // * kTfLiteCustom: Custom memory allocation provided by the user. See // TfLiteCustomAllocation below. +// * kTfLiteVariantObject: Allocation is an arbitrary type-erased C++ object. +// Allocation and deallocation are done through `new` and `delete`. /** enum TfLiteAllocationType */ public static final int kTfLiteMemNone = 0, @@ -1981,7 +2088,8 @@ public static native int TfLiteIntArrayEqualsArray(@Const TfLiteIntArray a, int kTfLiteArenaRwPersistent = 3, kTfLiteDynamic = 4, kTfLitePersistentRo = 5, - kTfLiteCustom = 6; + kTfLiteCustom = 6, + kTfLiteVariantObject = 7; // The delegates should use zero or positive integers to represent handles. // -1 is reserved from unallocated status. @@ -2133,9 +2241,78 @@ public static native void TfLiteTensorReset(@Cast("TfLiteType") int type, String // Targeting ../TfLiteContext.java + +// `TfLiteRegistrationExternal` is an external version of `TfLiteRegistration` +// for C API which doesn't use internal types (such as `TfLiteContext`) but only +// uses stable API types (such as `TfLiteOpaqueContext`). The purpose of each +// field is the exactly the same as with `TfLiteRegistration`. + +// The valid values of the `inplace_operator` field in `TfLiteRegistration`. +// This allow an op to signal to the runtime that the same data pointer +// may be passed as an input and output without impacting the result. +// This does not mean that the memory can safely be reused, it is up to the +// runtime to determine this, e.g. if another op consumes the same input or not +// or if an input tensor has sufficient memory allocated to store the output +// data. +// +// Setting these flags authorizes the runtime to set the data pointers of an +// input and output tensor to the same value. In such cases, the memory required +// by the output must be less than or equal to that required by the shared +// input, never greater. If kTfLiteInplaceOpDataUnmodified is set, then the +// runtime can share the same input tensor with multiple operator's outputs, +// provided that kTfLiteInplaceOpDataUnmodified is set for all of them. +// Otherwise, if an input tensor is consumed by multiple operators, it may only +// be shared with the operator which is the last to consume it. +// +// Note that this is a bitmask, so the values should be 1, 2, 4, 8, ...etc. +/** enum TfLiteInPlaceOp */ +public static final int + // The default value. This indicates that the same data pointer cannot safely + // be passed as an op's input and output. + kTfLiteInplaceOpNone = 0, + // This indicates that an op's first output's data is identical to its first + // input's data, for example Reshape. + kTfLiteInplaceOpDataUnmodified = 1, + // Setting kTfLiteInplaceInputCanBeSharedWithCorrespondingOutput means + // that InputN may be shared with OutputN instead of with the first output. + // This flag requires one or more of kTfLiteInplaceOpInputNShared to be set. + kTfLiteInplaceInputCanBeSharedWithCorrespondingOutput = 2, + // kTfLiteInplaceOpInputNShared indicates that it is safe for an op to share + // InputN's data pointer with an output tensor. If + // kTfLiteInplaceInputCanBeSharedWithCorrespondingOutput is set then + // kTfLiteInplaceOpInputNShared indicates that InputN may be shared + // with OutputN, otherwise kTfLiteInplaceOpInputNShared indicates that InputN + // may be shared with the first output. + // + // Indicates that an op's first input may be shared with the first output + // tensor. kTfLiteInplaceInputCanBeSharedWithCorrespondingOutput has + // no impact on the behavior allowed by this flag. + kTfLiteInplaceOpInput0Shared = 4, + // Indicates that an op's second input may be shared with the first output + // if kTfLiteInplaceInputCanBeSharedWithCorrespondingOutput is not set + // or second output if kTfLiteInplaceInputCanBeSharedWithCorrespondingOutput + // is set. + kTfLiteInplaceOpInput1Shared = 8, + // Indicates that an op's third input may be shared with the first output + // if kTfLiteInplaceInputCanBeSharedWithCorrespondingOutput is not set + // or third output if kTfLiteInplaceInputCanBeSharedWithCorrespondingOutput is + // set. + kTfLiteInplaceOpInput2Shared = 16; +public static native @MemberGetter int kTfLiteInplaceOpMaxValue(); +public static final int + // Placeholder to ensure that enum can hold 64 bit values to accommodate + // future fields. + kTfLiteInplaceOpMaxValue = kTfLiteInplaceOpMaxValue(); + +// The number of shareable inputs supported. +@MemberGetter public static native int kTfLiteMaxSharableOpInputs(); +public static final int kTfLiteMaxSharableOpInputs = kTfLiteMaxSharableOpInputs(); // Targeting ../TfLiteRegistration.java +// Targeting ../TfLiteRegistration_V3.java + + // Targeting ../TfLiteRegistration_V2.java @@ -2196,6 +2373,7 @@ public static native void TfLiteTensorReset(@Cast("TfLiteType") int type, String +// #ifndef TF_LITE_STATIC_MEMORY // Creates an opaque delegate and returns its address. The opaque delegate will // behave according to the provided 'opaque_delegate_builder'. The lifetime of // the objects pointed to by any of the fields within the @@ -2212,6 +2390,7 @@ public static native void TfLiteTensorReset(@Cast("TfLiteType") int type, String // Deletes the provided opaque 'delegate'. This function has no effect if the // 'delegate' is a null pointer. public static native void TfLiteOpaqueDelegateDelete(@Cast("TfLiteOpaqueDelegate*") TfLiteOpaqueDelegateStruct delegate); +// #endif // TF_LITE_STATIC_MEMORY // Returns a pointer to the data associated with the provided opaque 'delegate'. // @@ -2228,6 +2407,20 @@ public static native void TfLiteTensorReset(@Cast("TfLiteType") int type, String public static native Pointer TfLiteOpaqueDelegateGetData(@Cast("const TfLiteOpaqueDelegate*") TfLiteOpaqueDelegateStruct delegate); // #ifdef __cplusplus // extern "C" + +// #include +// Targeting ../VariantData.java + + + +// Concrete implementations extend `AbstractVariantData` with CRPT. + +// Analogous to `TfLiteTensorRealloc` for allocation of tensors whose +// data member points to an arbitrary C++ object. `VariantType` refers +// to the erased type of said object and `VariantArgs` refers to +// a list of argument types with which to construct a new `VariantType`. +// `VariantArgs` must match a constructor of `VariantType`. + // #endif // __cplusplus // #endif // TENSORFLOW_LITE_CORE_C_COMMON_H_ @@ -2295,15 +2488,30 @@ public static native void TfLiteTensorReset(@Cast("TfLiteType") int type, String // #define TENSORFLOW_LITE_CORE_API_OP_RESOLVER_H_ // #include +// #include // #include +// #include +// #include // #include // #include "tensorflow/lite/core/api/error_reporter.h" // #include "tensorflow/lite/core/c/common.h" // #include "tensorflow/lite/schema/schema_generated.h" +// Targeting ../OpResolverInternal.java + + // For friend declaration below. +// Targeting ../CommonOpaqueConversionUtil.java + + // For friend declaration below. // Forward decl. + // Targeting ../OpResolver.java +// Targeting ../RegistrationExternalsCache.java + + + // namespace internal +// #endif // Handles the logic for converting between an OperatorCode structure extracted // from a flatbuffer and information about a registered operator @@ -2776,12 +2984,14 @@ public static native void TfLiteTensorReset(@Cast("TfLiteType") int type, String // #define TENSORFLOW_LITE_UTIL_H_ // #include +// #include // #include // #include // #include // #include +// #include "tensorflow/lite/array.h" // #include "tensorflow/lite/core/c/common.h" // Memory allocation parameter used by ArenaPlanner. @@ -2823,18 +3033,6 @@ public static native void TfLiteTensorReset(@Cast("TfLiteType") int type, String @Const IntBuffer b); @Namespace("tflite") public static native @Cast("bool") boolean EqualArrayAndTfLiteIntArray(@Const TfLiteIntArray a, int b_size, @Const int[] b); -// Targeting ../TfLiteIntArrayDeleter.java - - - -// Helper for Building TfLiteIntArray that is wrapped in a unique_ptr, -// So that it is automatically freed when it goes out of the scope. -@Namespace("tflite") public static native @UniquePtr("TfLiteIntArray,tflite::TfLiteIntArrayDeleter") @ByVal TfLiteIntArray BuildTfLiteIntArray( - @StdVector IntPointer data); -@Namespace("tflite") public static native @UniquePtr("TfLiteIntArray,tflite::TfLiteIntArrayDeleter") @ByVal TfLiteIntArray BuildTfLiteIntArray( - @StdVector IntBuffer data); -@Namespace("tflite") public static native @UniquePtr("TfLiteIntArray,tflite::TfLiteIntArrayDeleter") @ByVal TfLiteIntArray BuildTfLiteIntArray( - @StdVector int[] data); // Populates the size in bytes of a type into `bytes`. Returns kTfLiteOk for // valid types, and kTfLiteError otherwise. @@ -2877,11 +3075,16 @@ public static native void TfLiteTensorReset(@Cast("TfLiteType") int type, String // specified by the array dims (of length dims_size). Returns the status code // and bytes. @Namespace("tflite") public static native @Cast("TfLiteStatus") int BytesRequired(@Cast("TfLiteType") int type, @Const IntPointer dims, @Cast("size_t") long dims_size, - @Cast("size_t*") SizeTPointer bytes, @ByVal TfLiteContext context); + @Cast("size_t*") SizeTPointer bytes, TfLiteContext context); @Namespace("tflite") public static native @Cast("TfLiteStatus") int BytesRequired(@Cast("TfLiteType") int type, @Const IntBuffer dims, @Cast("size_t") long dims_size, - @Cast("size_t*") SizeTPointer bytes, @ByVal TfLiteContext context); + @Cast("size_t*") SizeTPointer bytes, TfLiteContext context); @Namespace("tflite") public static native @Cast("TfLiteStatus") int BytesRequired(@Cast("TfLiteType") int type, @Const int[] dims, @Cast("size_t") long dims_size, - @Cast("size_t*") SizeTPointer bytes, @ByVal TfLiteContext context); + @Cast("size_t*") SizeTPointer bytes, TfLiteContext context); +// Targeting ../TfLiteTensorDeleter.java + + + + // namespace tflite @@ -2905,7 +3108,7 @@ public static native void TfLiteTensorReset(@Cast("TfLiteType") int type, String limitations under the License. ==============================================================================*/ // This provides utility macros and functions that are inherently platform -// specific. +// specific or shared across runtime & converter. // #ifndef TENSORFLOW_LITE_CORE_MACROS_H_ // #define TENSORFLOW_LITE_CORE_MACROS_H_ @@ -2956,6 +3159,17 @@ public static native void TfLiteTensorReset(@Cast("TfLiteType") int type, String // #define TFLITE_ATTRIBUTE_WEAK // #endif +// #ifndef TF_LITE_STATIC_MEMORY +// maximum size of a valid flatbuffer +@MemberGetter public static native @Cast("const unsigned int") int flatbuffer_size_max(); +// If none zero then the buffer is stored outside of the flatbuffers, string +@MemberGetter public static native @Cast("const char") byte tflite_metadata_buffer_location(int i); +@MemberGetter public static native @Cast("const char*") BytePointer tflite_metadata_buffer_location(); +// field for minimum runtime version, string +@MemberGetter public static native @Cast("const char") byte tflite_metadata_min_runtime_version(int i); +@MemberGetter public static native @Cast("const char*") BytePointer tflite_metadata_min_runtime_version(); +// #endif + // #endif // TENSORFLOW_LITE_CORE_MACROS_H_ @@ -2983,10 +3197,8 @@ public static native void TfLiteTensorReset(@Cast("TfLiteType") int type, String // #include // #include -// #include // #include // #include -// #include // #include // #include // #include @@ -2995,6 +3207,7 @@ public static native void TfLiteTensorReset(@Cast("TfLiteType") int type, String // #include "tensorflow/lite/allocation.h" // #include "tensorflow/lite/c/common_internal.h" // #include "tensorflow/lite/core/api/error_reporter.h" +// #include "tensorflow/lite/core/api/op_resolver.h" // #include "tensorflow/lite/core/api/profiler.h" // #include "tensorflow/lite/core/c/common.h" // #include "tensorflow/lite/core/macros.h" @@ -3006,15 +3219,12 @@ public static native void TfLiteTensorReset(@Cast("TfLiteType") int type, String // #include "tensorflow/lite/util.h" // Targeting ../SingleOpModel.java - -// Targeting ../CommonOpaqueConversionUtil.java - - // Class for friend declarations. + // Class for friend declarations. // Class for friend declarations. // Targeting ../AsyncSubgraph.java // Class for friend declarations. - // Class for friend declarations. // Class for friend declarations. + // Class for friend declarations. // Class for friend declarations. // Class for friend declarations. // Targeting ../TestDelegate.java @@ -3191,7 +3401,55 @@ public static native void TfLiteTensorReset(@Cast("TfLiteType") int type, String limitations under the License. ==============================================================================*/ // #ifndef TENSORFLOW_LITE_SIGNATURE_RUNNER_H_ + +/// // #define TENSORFLOW_LITE_SIGNATURE_RUNNER_H_ +/** \file + * + * An abstraction for invoking the TF Lite interpreter. + * Provides support for named parameters, and for including multiple + * named computations in a single model, each with its own inputs/outputs. +

+ * For documentation, see + * third_party/tensorflow/lite/core/signature_runner.h. */ + +// #include "tensorflow/lite/core/signature_runner.h" // IWYU pragma: export + // namespace tflite + +// #endif // TENSORFLOW_LITE_SIGNATURE_RUNNER_H_ + + +// Parsed from tensorflow/lite/core/signature_runner.h + +/* Copyright 2021 The TensorFlow Authors. All Rights Reserved. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +==============================================================================*/ +// #ifndef TENSORFLOW_LITE_CORE_SIGNATURE_RUNNER_H_ + +/// +/// +// #define TENSORFLOW_LITE_CORE_SIGNATURE_RUNNER_H_ +/** \file + * + * An abstraction for invoking the TF Lite interpreter. + * Provides support for named parameters, and for including multiple + * named computations in a single model, each with its own inputs/outputs. + * + * Do NOT include this file directly, + * instead include third_party/tensorflow/lite/signature_riunner.h + * See third_party/tensorflow/lite/c/common.h for the API for defining + * operations (TfLiteRegistration). */ // #include // #include @@ -3200,24 +3458,25 @@ public static native void TfLiteTensorReset(@Cast("TfLiteType") int type, String // #include "tensorflow/lite/core/c/common.h" // #include "tensorflow/lite/core/subgraph.h" -// #include "tensorflow/lite/internal/signature_def.h" // Class for friend declarations. - -// Targeting ../SignatureRunnerJNIHelper.java +// #include "tensorflow/lite/internal/signature_def.h" // Class for friend declarations. +// Targeting ../SignatureRunnerHelper.java -// Targeting ../TensorHandle.java +// Targeting ../SignatureRunnerJNIHelper.java -// Targeting ../SignatureRunnerHelper.java +// Targeting ../TensorHandle.java + // Class for friend declarations. // Targeting ../SignatureRunner.java + // namespace impl // namespace tflite -// #endif // TENSORFLOW_LITE_SIGNATURE_RUNNER_H_ +// #endif // TENSORFLOW_LITE_CORE_SIGNATURE_RUNNER_H_ // Parsed from tensorflow/lite/type_to_tflitetype.h @@ -3403,9 +3662,10 @@ public static native void TfLiteTensorReset(@Cast("TfLiteType") int type, String // #include "tensorflow/lite/allocation.h" // #include "tensorflow/lite/core/api/error_reporter.h" -// #include "tensorflow/lite/core/async/async_signature_runner.h" // #include "tensorflow/lite/core/api/profiler.h" +// #include "tensorflow/lite/core/async/async_signature_runner.h" // #include "tensorflow/lite/core/c/common.h" // IWYU pragma: export +// #include "tensorflow/lite/core/signature_runner.h" // #include "tensorflow/lite/core/subgraph.h" // #include "tensorflow/lite/experimental/remat/metadata_util.h" // #include "tensorflow/lite/experimental/resource/initialization_status.h" @@ -3416,7 +3676,6 @@ public static native void TfLiteTensorReset(@Cast("TfLiteType") int type, String // #include "tensorflow/lite/portable_type_to_tflitetype.h" // #include "tensorflow/lite/profiling/root_profiler.h" // #include "tensorflow/lite/profiling/telemetry/c/telemetry_setting_internal.h" -// #include "tensorflow/lite/signature_runner.h" // #include "tensorflow/lite/stderr_reporter.h" // #include "tensorflow/lite/string_type.h" // #include "tensorflow/lite/type_to_tflitetype.h" @@ -3794,6 +4053,10 @@ public static native void TfLiteTensorReset(@Cast("TfLiteType") int type, String // #include "tensorflow/lite/core/interpreter.h" // Prints a dump of what tensors and what nodes are in the interpreter. +@Namespace("tflite") public static native void PrintInterpreterState(@Const Interpreter interpreter, + int tensor_name_display_length/*=25*/, + int tensor_type_display_length/*=15*/, + int alloc_type_display_length/*=18*/); @Namespace("tflite") public static native void PrintInterpreterState(@Const Interpreter interpreter); // namespace tflite diff --git a/tensorflow-lite/src/main/java/org/bytedeco/tensorflowlite/presets/tensorflowlite.java b/tensorflow-lite/src/main/java/org/bytedeco/tensorflowlite/presets/tensorflowlite.java index 3ffe9c47928..b5d75e5f938 100644 --- a/tensorflow-lite/src/main/java/org/bytedeco/tensorflowlite/presets/tensorflowlite.java +++ b/tensorflow-lite/src/main/java/org/bytedeco/tensorflowlite/presets/tensorflowlite.java @@ -52,6 +52,7 @@ "tensorflow/lite/core/c/c_api_types.h", "tensorflow/lite/c/c_api.h", "tensorflow/lite/core/c/c_api.h", + "tensorflow/lite/core/c/registration_external.h", "tensorflow/lite/c/c_api_experimental.h", "tensorflow/lite/core/c/c_api_experimental.h", "tensorflow/lite/c/common.h", @@ -68,12 +69,14 @@ "tensorflow/lite/interpreter_options.h", "tensorflow/lite/memory_planner.h", "tensorflow/lite/util.h", +// "tensorflow/lite/array.h", "tensorflow/lite/core/macros.h", "tensorflow/lite/core/subgraph.h", "tensorflow/lite/external_cpu_backend_context.h", "tensorflow/lite/portable_type_to_tflitetype.h", "tensorflow/lite/profiling/root_profiler.h", "tensorflow/lite/signature_runner.h", + "tensorflow/lite/core/signature_runner.h", "tensorflow/lite/type_to_tflitetype.h", "tensorflow/lite/string_type.h", "tensorflow/lite/mutable_op_resolver.h", @@ -111,9 +114,10 @@ public void map(InfoMap infoMap) { .put(new Info("TfLiteIntArray", "TfLiteFloatArray").purify()) .put(new Info("tflite::ops::builtin::BuiltinOpResolver").pointerTypes("BuiltinOpResolver")) .put(new Info("tflite::ops::builtin::BuiltinOpResolverWithoutDefaultDelegates").pointerTypes("BuiltinOpResolverWithoutDefaultDelegates")) - .put(new Info("std::initializer_list", "tflite::typeToTfLiteType", "TfLiteContext::ReportError", "tflite::MMAPAllocation", - "tflite::OpResolver::GetOpaqueDelegateCreators", "tflite::MutableOpResolver::GetOpaqueDelegateCreators", + .put(new Info("std::initializer_list", "tflite::BuildTfLiteTensor", "tflite::typeToTfLiteType", "TfLiteContext::ReportError", "tflite::MMAPAllocation", + "tflite::OpResolver::GetOpaqueDelegateCreators", "tflite::MutableOpResolver::GetOpaqueDelegateCreators", "IntArrayUniquePtr", "tflite::InterpreterBuilder::PreserveAllTensorsExperimental", "tflite::async::AsyncSignatureRunner", "TfLiteAsyncKernel").skip()) + .put(new Info("kTfLiteInplaceOpMaxValue").translate(false)) .put(new Info("tflite::Model", "tflite::ModelT", "tflite::OperatorCode", "tflite::OpResolver::TfLiteDelegateCreators", "tflite::internal::SignatureDef").cast().pointerTypes("Pointer")) .put(new Info("tflite::Subgraph").valueTypes("@StdMove Subgraph").pointerTypes("Subgraph")) @@ -124,7 +128,7 @@ public void map(InfoMap infoMap) { .put(new Info("std::map").pointerTypes("StringIntMap").define()) .put(new Info("std::map").pointerTypes("StringStringMap").define()) .put(new Info("std::unique_ptr").annotations("@UniquePtr(\"TfLiteDelegate,void(*)(TfLiteDelegate*)\")").pointerTypes("TfLiteDelegate")) - .put(new Info("std::unique_ptr").annotations("@UniquePtr(\"TfLiteIntArray,tflite::TfLiteIntArrayDeleter\")").pointerTypes("TfLiteIntArray")) + .put(new Info("std::unique_ptr").annotations("@UniquePtr(\"TfLiteIntArray,tflite::TfLiteArrayDeleter\")").pointerTypes("TfLiteIntArray")) .put(new Info("std::unique_ptr").annotations("@UniquePtr").pointerTypes("Subgraph") .valueTypes("@Cast({\"\", \"std::unique_ptr&&\"}) Subgraph")) .put(new Info("std::unique_ptr").annotations("@UniquePtr").pointerTypes("ResourceBase") diff --git a/tvm/README.md b/tvm/README.md index ca67353c9f6..f5e93a1c61e 100644 --- a/tvm/README.md +++ b/tvm/README.md @@ -9,7 +9,7 @@ Introduction ------------ This directory contains the JavaCPP Presets module for: - * TVM 0.12.0 http://tvm.apache.org/ + * TVM 0.13.0 http://tvm.apache.org/ Please refer to the parent README.md file for more detailed information about the JavaCPP Presets. @@ -49,14 +49,14 @@ We can use [Maven 3](http://maven.apache.org/) to download and install automatic org.bytedeco tvm-platform - 0.12.0-1.5.10-SNAPSHOT + 0.13.0-1.5.10-SNAPSHOT org.bytedeco tvm-platform-gpu - 0.12.0-1.5.10-SNAPSHOT + 0.13.0-1.5.10-SNAPSHOT diff --git a/tvm/cppbuild.sh b/tvm/cppbuild.sh index 587a4121114..66003ab286a 100755 --- a/tvm/cppbuild.sh +++ b/tvm/cppbuild.sh @@ -12,7 +12,7 @@ if [[ "$EXTENSION" == *gpu ]]; then GPU_FLAGS="-DUSE_CUDA=ON -DUSE_CUDNN=ON -DUSE_CUBLAS=ON" fi -TVM_VERSION=0.12.0 +TVM_VERSION=0.13.0 mkdir -p "$PLATFORM$EXTENSION" cd "$PLATFORM$EXTENSION" @@ -87,6 +87,7 @@ sedinplace 's/llvm::None/std::nullopt/g' src/target/llvm/codegen_llvm.cc sedinplace '/numpy/d' python/setup.py sedinplace '/scipy/d' python/setup.py sedinplace '/candidate_path/d' python/setup.py +sedinplace '/dir == "3rdparty"/d' python/setup.py sedinplace '/find_library/a\ include_directories(SYSTEM ${USE_DNNL}/include)\ ' cmake/modules/contrib/DNNL.cmake @@ -111,7 +112,7 @@ if [[ -f $f ]]; then chmod +x $LLVM_PATH/bin/llvm-config* fi if [[ -f "$LLVM_PATH/lib/libLLVM.dylib" ]]; then - ln -sf libLLVM.dylib $LLVM_PATH/lib/libLLVM-16.dylib + ln -sf libLLVM.dylib $LLVM_PATH/lib/libLLVM-17rc.dylib fi if [[ -f "$LLVM_PATH/lib/LTO.lib" ]]; then ln -sf LTO.lib $LLVM_PATH/lib/LLVM.lib diff --git a/tvm/platform/gpu/pom.xml b/tvm/platform/gpu/pom.xml index 2e834c6ba28..09b5fc7d845 100644 --- a/tvm/platform/gpu/pom.xml +++ b/tvm/platform/gpu/pom.xml @@ -12,7 +12,7 @@ org.bytedeco tvm-platform-gpu - 0.12.0-${project.parent.version} + 0.13.0-${project.parent.version} JavaCPP Presets Platform GPU for TVM @@ -29,7 +29,7 @@ org.bytedeco llvm-platform - 16.0.6-${project.parent.version} + 17.0.0-${project.parent.version} org.bytedeco diff --git a/tvm/platform/pom.xml b/tvm/platform/pom.xml index cfb66d01d7d..6e4f884939f 100644 --- a/tvm/platform/pom.xml +++ b/tvm/platform/pom.xml @@ -12,7 +12,7 @@ org.bytedeco tvm-platform - 0.12.0-${project.parent.version} + 0.13.0-${project.parent.version} JavaCPP Presets Platform for TVM @@ -28,7 +28,7 @@ org.bytedeco llvm-platform - 16.0.6-${project.parent.version} + 17.0.0-${project.parent.version} org.bytedeco diff --git a/tvm/pom.xml b/tvm/pom.xml index c7cb0fcb7dc..1b64570e31e 100644 --- a/tvm/pom.xml +++ b/tvm/pom.xml @@ -11,7 +11,7 @@ org.bytedeco tvm - 0.12.0-${project.parent.version} + 0.13.0-${project.parent.version} JavaCPP Presets for TVM @@ -23,7 +23,7 @@ org.bytedeco llvm - 16.0.6-${project.parent.version} + 17.0.0-${project.parent.version} org.bytedeco @@ -61,7 +61,7 @@ org.bytedeco llvm-platform - 16.0.6-${project.parent.version} + 17.0.0-${project.parent.version} org.bytedeco diff --git a/tvm/samples/pom.xml b/tvm/samples/pom.xml index eded882c3a3..6fa5fc344ce 100644 --- a/tvm/samples/pom.xml +++ b/tvm/samples/pom.xml @@ -12,14 +12,14 @@ org.bytedeco tvm-platform - 0.12.0-1.5.10-SNAPSHOT + 0.13.0-1.5.10-SNAPSHOT org.bytedeco tvm-platform-gpu - 0.12.0-1.5.10-SNAPSHOT + 0.13.0-1.5.10-SNAPSHOT diff --git a/tvm/src/gen/java/org/bytedeco/tvm/ADT.java b/tvm/src/gen/java/org/bytedeco/tvm/ADT.java index 0b3439c57a2..544009a5d48 100644 --- a/tvm/src/gen/java/org/bytedeco/tvm/ADT.java +++ b/tvm/src/gen/java/org/bytedeco/tvm/ADT.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.tvm; @@ -39,7 +39,6 @@ public class ADT extends ObjectRef { * \brief construct an ADT object reference. * @param tag The tag of the ADT object. * @param fields The fields of the ADT object. - * @return The constructed ADT object reference. */ public ADT(@Cast("int32_t") int tag, @StdVector ObjectRef fields) { super((Pointer)null); allocate(tag, fields); } private native void allocate(@Cast("int32_t") int tag, @StdVector ObjectRef fields); @@ -49,14 +48,12 @@ public class ADT extends ObjectRef { * @param tag The tag of the ADT object. * @param begin The begin iterator to the start of the fields array. * @param end The end iterator to the end of the fields array. - * @return The constructed ADT object reference. */ /** * \brief construct an ADT object reference. * @param tag The tag of the ADT object. * @param init The initializer list of fields. - * @return The constructed ADT object reference. */ /** diff --git a/tvm/src/gen/java/org/bytedeco/tvm/ADTObj.java b/tvm/src/gen/java/org/bytedeco/tvm/ADTObj.java index c3c05743e6c..3e881fa48c0 100644 --- a/tvm/src/gen/java/org/bytedeco/tvm/ADTObj.java +++ b/tvm/src/gen/java/org/bytedeco/tvm/ADTObj.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.tvm; diff --git a/tvm/src/gen/java/org/bytedeco/tvm/ADTObjBase.java b/tvm/src/gen/java/org/bytedeco/tvm/ADTObjBase.java index 62bd841f0ab..8a4309457d5 100644 --- a/tvm/src/gen/java/org/bytedeco/tvm/ADTObjBase.java +++ b/tvm/src/gen/java/org/bytedeco/tvm/ADTObjBase.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.tvm; diff --git a/tvm/src/gen/java/org/bytedeco/tvm/ArrayNode.java b/tvm/src/gen/java/org/bytedeco/tvm/ArrayNode.java index 983fe0fa027..fbfafba8be1 100644 --- a/tvm/src/gen/java/org/bytedeco/tvm/ArrayNode.java +++ b/tvm/src/gen/java/org/bytedeco/tvm/ArrayNode.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.tvm; diff --git a/tvm/src/gen/java/org/bytedeco/tvm/ArrayNodeBase.java b/tvm/src/gen/java/org/bytedeco/tvm/ArrayNodeBase.java index d7effafaeb7..d2c724d7620 100644 --- a/tvm/src/gen/java/org/bytedeco/tvm/ArrayNodeBase.java +++ b/tvm/src/gen/java/org/bytedeco/tvm/ArrayNodeBase.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.tvm; diff --git a/tvm/src/gen/java/org/bytedeco/tvm/ArrayNodePtr.java b/tvm/src/gen/java/org/bytedeco/tvm/ArrayNodePtr.java index 6b02c3410c3..11a5535f086 100644 --- a/tvm/src/gen/java/org/bytedeco/tvm/ArrayNodePtr.java +++ b/tvm/src/gen/java/org/bytedeco/tvm/ArrayNodePtr.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.tvm; diff --git a/tvm/src/gen/java/org/bytedeco/tvm/Closure.java b/tvm/src/gen/java/org/bytedeco/tvm/Closure.java index e2e1b338ff9..08210ba1b55 100644 --- a/tvm/src/gen/java/org/bytedeco/tvm/Closure.java +++ b/tvm/src/gen/java/org/bytedeco/tvm/Closure.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.tvm; diff --git a/tvm/src/gen/java/org/bytedeco/tvm/ClosureObj.java b/tvm/src/gen/java/org/bytedeco/tvm/ClosureObj.java index 5ccfaa6538a..d596dc413fc 100644 --- a/tvm/src/gen/java/org/bytedeco/tvm/ClosureObj.java +++ b/tvm/src/gen/java/org/bytedeco/tvm/ClosureObj.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.tvm; diff --git a/tvm/src/gen/java/org/bytedeco/tvm/Container.java b/tvm/src/gen/java/org/bytedeco/tvm/Container.java index dd6ec838810..284ed0b27a5 100644 --- a/tvm/src/gen/java/org/bytedeco/tvm/Container.java +++ b/tvm/src/gen/java/org/bytedeco/tvm/Container.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.tvm; diff --git a/tvm/src/gen/java/org/bytedeco/tvm/ContainerBase.java b/tvm/src/gen/java/org/bytedeco/tvm/ContainerBase.java index 0e10648525c..27e361a5083 100644 --- a/tvm/src/gen/java/org/bytedeco/tvm/ContainerBase.java +++ b/tvm/src/gen/java/org/bytedeco/tvm/ContainerBase.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.tvm; diff --git a/tvm/src/gen/java/org/bytedeco/tvm/DLDataType.java b/tvm/src/gen/java/org/bytedeco/tvm/DLDataType.java index a03c6306c25..8cac2fc4cfa 100644 --- a/tvm/src/gen/java/org/bytedeco/tvm/DLDataType.java +++ b/tvm/src/gen/java/org/bytedeco/tvm/DLDataType.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.tvm; diff --git a/tvm/src/gen/java/org/bytedeco/tvm/DLDevice.java b/tvm/src/gen/java/org/bytedeco/tvm/DLDevice.java index e252c6d4274..ef2c2becd75 100644 --- a/tvm/src/gen/java/org/bytedeco/tvm/DLDevice.java +++ b/tvm/src/gen/java/org/bytedeco/tvm/DLDevice.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.tvm; diff --git a/tvm/src/gen/java/org/bytedeco/tvm/DLManagedTensor.java b/tvm/src/gen/java/org/bytedeco/tvm/DLManagedTensor.java index a2b7d897fbe..798fc1921e5 100644 --- a/tvm/src/gen/java/org/bytedeco/tvm/DLManagedTensor.java +++ b/tvm/src/gen/java/org/bytedeco/tvm/DLManagedTensor.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.tvm; diff --git a/tvm/src/gen/java/org/bytedeco/tvm/DLTensor.java b/tvm/src/gen/java/org/bytedeco/tvm/DLTensor.java index 1e19dcb5928..84d0fd5229a 100644 --- a/tvm/src/gen/java/org/bytedeco/tvm/DLTensor.java +++ b/tvm/src/gen/java/org/bytedeco/tvm/DLTensor.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.tvm; diff --git a/tvm/src/gen/java/org/bytedeco/tvm/DataType.java b/tvm/src/gen/java/org/bytedeco/tvm/DataType.java index 73fcc627cd3..abff190b2f9 100644 --- a/tvm/src/gen/java/org/bytedeco/tvm/DataType.java +++ b/tvm/src/gen/java/org/bytedeco/tvm/DataType.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.tvm; @@ -18,6 +18,7 @@ import static org.bytedeco.tvm.global.tvm_runtime.*; + /** * \brief Runtime primitive data type. * @@ -53,6 +54,8 @@ public enum TypeCode { kFloat(kDLFloat), kHandle(kTVMOpaqueHandle), kBFloat(kDLBfloat), + kE4M3Float(6), + kE5M2Float(7), kCustomBegin(129); public final long value; @@ -92,6 +95,8 @@ public enum TypeCode { public native @Cast("bool") boolean is_bool(); /** @return whether type is a float type. */ public native @Cast("bool") boolean is_float(); + /** @return whether type is a float8 type. */ + public native @Cast("bool") boolean is_float8(); /** @return whether type is a float16 type. */ public native @Cast("bool") boolean is_float16(); /** @return whether type is a bfloat16 type. */ @@ -179,6 +184,20 @@ public enum TypeCode { */ public static native @ByVal DataType BFloat(int bits, int lanes/*=1*/); public static native @ByVal DataType BFloat(int bits); + /** + * \brief Construct NV float8 e4m3 datatype. + * @param lanes The number of lanes + * @return The constructed data type. + */ + public static native @ByVal DataType NVFloat8E4M3(int lanes/*=1*/); + public static native @ByVal DataType NVFloat8E4M3(); + /** + * \brief Construct NV float8 e5m2 datatype. + * @param lanes The number of lanes + * @return The constructed data type. + */ + public static native @ByVal DataType NVFloat8E5M2(int lanes/*=1*/); + public static native @ByVal DataType NVFloat8E5M2(); /** * \brief Construct a bool type. * @param lanes The number of lanes diff --git a/tvm/src/gen/java/org/bytedeco/tvm/DenseMapNode.java b/tvm/src/gen/java/org/bytedeco/tvm/DenseMapNode.java index 220dccc3bba..2065b5f95f1 100644 --- a/tvm/src/gen/java/org/bytedeco/tvm/DenseMapNode.java +++ b/tvm/src/gen/java/org/bytedeco/tvm/DenseMapNode.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.tvm; diff --git a/tvm/src/gen/java/org/bytedeco/tvm/Error.java b/tvm/src/gen/java/org/bytedeco/tvm/Error.java index 2623eab2b0c..6b049f50859 100644 --- a/tvm/src/gen/java/org/bytedeco/tvm/Error.java +++ b/tvm/src/gen/java/org/bytedeco/tvm/Error.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.tvm; diff --git a/tvm/src/gen/java/org/bytedeco/tvm/FSig.java b/tvm/src/gen/java/org/bytedeco/tvm/FSig.java index 3b70e1ae11e..2ba9dac7486 100644 --- a/tvm/src/gen/java/org/bytedeco/tvm/FSig.java +++ b/tvm/src/gen/java/org/bytedeco/tvm/FSig.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.tvm; diff --git a/tvm/src/gen/java/org/bytedeco/tvm/FileInfo.java b/tvm/src/gen/java/org/bytedeco/tvm/FileInfo.java index f1c8d427d47..09fabd70567 100644 --- a/tvm/src/gen/java/org/bytedeco/tvm/FileInfo.java +++ b/tvm/src/gen/java/org/bytedeco/tvm/FileInfo.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.tvm; diff --git a/tvm/src/gen/java/org/bytedeco/tvm/FileSystem.java b/tvm/src/gen/java/org/bytedeco/tvm/FileSystem.java index 71023acca61..979bea0a2d4 100644 --- a/tvm/src/gen/java/org/bytedeco/tvm/FileSystem.java +++ b/tvm/src/gen/java/org/bytedeco/tvm/FileSystem.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.tvm; diff --git a/tvm/src/gen/java/org/bytedeco/tvm/Handler.java b/tvm/src/gen/java/org/bytedeco/tvm/Handler.java index 53011835790..e9aeea8e828 100644 --- a/tvm/src/gen/java/org/bytedeco/tvm/Handler.java +++ b/tvm/src/gen/java/org/bytedeco/tvm/Handler.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.tvm; diff --git a/tvm/src/gen/java/org/bytedeco/tvm/InputSplit.java b/tvm/src/gen/java/org/bytedeco/tvm/InputSplit.java index be5cc61a8fc..2a893fb3dc7 100644 --- a/tvm/src/gen/java/org/bytedeco/tvm/InputSplit.java +++ b/tvm/src/gen/java/org/bytedeco/tvm/InputSplit.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.tvm; diff --git a/tvm/src/gen/java/org/bytedeco/tvm/MapNode.java b/tvm/src/gen/java/org/bytedeco/tvm/MapNode.java index 9e1e0ad2c9b..db016f9b7fe 100644 --- a/tvm/src/gen/java/org/bytedeco/tvm/MapNode.java +++ b/tvm/src/gen/java/org/bytedeco/tvm/MapNode.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.tvm; diff --git a/tvm/src/gen/java/org/bytedeco/tvm/MapNodePtr.java b/tvm/src/gen/java/org/bytedeco/tvm/MapNodePtr.java index ccb6bf78b84..b92dc5e915f 100644 --- a/tvm/src/gen/java/org/bytedeco/tvm/MapNodePtr.java +++ b/tvm/src/gen/java/org/bytedeco/tvm/MapNodePtr.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.tvm; diff --git a/tvm/src/gen/java/org/bytedeco/tvm/Module.java b/tvm/src/gen/java/org/bytedeco/tvm/Module.java index 8047787d88e..0d31a0f9395 100644 --- a/tvm/src/gen/java/org/bytedeco/tvm/Module.java +++ b/tvm/src/gen/java/org/bytedeco/tvm/Module.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.tvm; @@ -51,10 +51,8 @@ public class Module extends ObjectRef { * This function will return PackedFunc(nullptr) if function do not exist. * \note Implemented in packed_func.cc */ - public native @ByVal PackedFunc GetFunction(@StdString BytePointer name, @Cast("bool") boolean query_imports/*=false*/); - public native @ByVal PackedFunc GetFunction(@StdString BytePointer name); - public native @ByVal PackedFunc GetFunction(@StdString String name, @Cast("bool") boolean query_imports/*=false*/); - public native @ByVal PackedFunc GetFunction(@StdString String name); + public native @ByVal PackedFunc GetFunction(@Const @ByRef TVMString name, @Cast("bool") boolean query_imports/*=false*/); + public native @ByVal PackedFunc GetFunction(@Const @ByRef TVMString name); // The following functions requires link with runtime. /** * \brief Import another module into this module. @@ -74,9 +72,7 @@ public class Module extends ObjectRef { * \note This function won't load the import relationship. * Re-create import relationship by calling Import. */ - public static native @ByVal Module LoadFromFile(@StdString BytePointer file_name, @StdString BytePointer format/*=""*/); - public static native @ByVal Module LoadFromFile(@StdString BytePointer file_name); - public static native @ByVal Module LoadFromFile(@StdString String file_name, @StdString String format/*=""*/); - public static native @ByVal Module LoadFromFile(@StdString String file_name); + public static native @ByVal Module LoadFromFile(@Const @ByRef TVMString file_name, @Const @ByRef(nullValue = "tvm::runtime::String(\"\")") TVMString format); + public static native @ByVal Module LoadFromFile(@Const @ByRef TVMString file_name); // refer to the corresponding container. } diff --git a/tvm/src/gen/java/org/bytedeco/tvm/ModuleNode.java b/tvm/src/gen/java/org/bytedeco/tvm/ModuleNode.java index 708080d0033..d4e2d9a1b1e 100644 --- a/tvm/src/gen/java/org/bytedeco/tvm/ModuleNode.java +++ b/tvm/src/gen/java/org/bytedeco/tvm/ModuleNode.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.tvm; @@ -70,17 +70,13 @@ public class ModuleNode extends TVMObject { * If the function need resource from the module(e.g. late linking), * it should capture sptr_to_self. */ - public native @ByVal PackedFunc GetFunction(@StdString BytePointer name, - @Const @ByRef ObjectPtr sptr_to_self); - public native @ByVal PackedFunc GetFunction(@StdString String name, - @Const @ByRef ObjectPtr sptr_to_self); + public native @ByVal PackedFunc GetFunction(@Const @ByRef TVMString name, @Const @ByRef ObjectPtr sptr_to_self); /** * \brief Save the module to file. * @param file_name The file to be saved to. * @param format The format of the file. */ - public native void SaveToFile(@StdString BytePointer file_name, @StdString BytePointer format); - public native void SaveToFile(@StdString String file_name, @StdString String format); + public native void SaveToFile(@Const @ByRef TVMString file_name, @Const @ByRef TVMString format); /** * \brief Save the module to binary stream. * @param stream The binary stream to save to. @@ -94,14 +90,13 @@ public class ModuleNode extends TVMObject { * @param format Format of the source code, can be empty by default. * @return Possible source code when available. */ - public native @StdString BytePointer GetSource(@StdString BytePointer format/*=""*/); - public native @StdString BytePointer GetSource(); - public native @StdString String GetSource(@StdString String format/*=""*/); + public native @ByVal TVMString GetSource(@Const @ByRef(nullValue = "tvm::runtime::String(\"\")") TVMString format); + public native @ByVal TVMString GetSource(); /** * \brief Get the format of the module, when available. * @return Possible format when available. */ - public native @StdString BytePointer GetFormat(); + public native @ByVal TVMString GetFormat(); /** * \brief Get packed function from current module by name. * @@ -111,10 +106,8 @@ public class ModuleNode extends TVMObject { * This function will return PackedFunc(nullptr) if function do not exist. * \note Implemented in packed_func.cc */ - public native @ByVal PackedFunc GetFunction(@StdString BytePointer name, @Cast("bool") boolean query_imports/*=false*/); - public native @ByVal PackedFunc GetFunction(@StdString BytePointer name); - public native @ByVal PackedFunc GetFunction(@StdString String name, @Cast("bool") boolean query_imports/*=false*/); - public native @ByVal PackedFunc GetFunction(@StdString String name); + public native @ByVal PackedFunc GetFunction(@Const @ByRef TVMString name, @Cast("bool") boolean query_imports/*=false*/); + public native @ByVal PackedFunc GetFunction(@Const @ByRef TVMString name); /** * \brief Import another module into this module. * @param other The module to be imported. @@ -130,8 +123,7 @@ public class ModuleNode extends TVMObject { * @param name name of the function. * @return The corresponding function. */ - public native @Const PackedFunc GetFuncFromEnv(@StdString BytePointer name); - public native @Const PackedFunc GetFuncFromEnv(@StdString String name); + public native @Const PackedFunc GetFuncFromEnv(@Const @ByRef TVMString name); /** @return The module it imports from */ public native @StdVector Module imports(); diff --git a/tvm/src/gen/java/org/bytedeco/tvm/NDArray.java b/tvm/src/gen/java/org/bytedeco/tvm/NDArray.java index eccfc00cac5..83010745f0c 100644 --- a/tvm/src/gen/java/org/bytedeco/tvm/NDArray.java +++ b/tvm/src/gen/java/org/bytedeco/tvm/NDArray.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.tvm; diff --git a/tvm/src/gen/java/org/bytedeco/tvm/NullOptType.java b/tvm/src/gen/java/org/bytedeco/tvm/NullOptType.java index 8cd5cbd4c94..c4f5562e7f6 100644 --- a/tvm/src/gen/java/org/bytedeco/tvm/NullOptType.java +++ b/tvm/src/gen/java/org/bytedeco/tvm/NullOptType.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.tvm; diff --git a/tvm/src/gen/java/org/bytedeco/tvm/ObjectEqual.java b/tvm/src/gen/java/org/bytedeco/tvm/ObjectEqual.java index 39951cafa6a..a3e151cead3 100644 --- a/tvm/src/gen/java/org/bytedeco/tvm/ObjectEqual.java +++ b/tvm/src/gen/java/org/bytedeco/tvm/ObjectEqual.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.tvm; diff --git a/tvm/src/gen/java/org/bytedeco/tvm/ObjectHash.java b/tvm/src/gen/java/org/bytedeco/tvm/ObjectHash.java index ba89f453d9f..c1436cc1dfe 100644 --- a/tvm/src/gen/java/org/bytedeco/tvm/ObjectHash.java +++ b/tvm/src/gen/java/org/bytedeco/tvm/ObjectHash.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.tvm; diff --git a/tvm/src/gen/java/org/bytedeco/tvm/ObjectPtr.java b/tvm/src/gen/java/org/bytedeco/tvm/ObjectPtr.java index f8dc9beee7d..b89f429cede 100644 --- a/tvm/src/gen/java/org/bytedeco/tvm/ObjectPtr.java +++ b/tvm/src/gen/java/org/bytedeco/tvm/ObjectPtr.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.tvm; diff --git a/tvm/src/gen/java/org/bytedeco/tvm/ObjectPtrEqual.java b/tvm/src/gen/java/org/bytedeco/tvm/ObjectPtrEqual.java index 35ef83595af..cb13ea11568 100644 --- a/tvm/src/gen/java/org/bytedeco/tvm/ObjectPtrEqual.java +++ b/tvm/src/gen/java/org/bytedeco/tvm/ObjectPtrEqual.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.tvm; diff --git a/tvm/src/gen/java/org/bytedeco/tvm/ObjectPtrHash.java b/tvm/src/gen/java/org/bytedeco/tvm/ObjectPtrHash.java index b7896a31ff7..67693a87e56 100644 --- a/tvm/src/gen/java/org/bytedeco/tvm/ObjectPtrHash.java +++ b/tvm/src/gen/java/org/bytedeco/tvm/ObjectPtrHash.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.tvm; diff --git a/tvm/src/gen/java/org/bytedeco/tvm/ObjectRef.java b/tvm/src/gen/java/org/bytedeco/tvm/ObjectRef.java index 7b02922b479..8025af63aee 100644 --- a/tvm/src/gen/java/org/bytedeco/tvm/ObjectRef.java +++ b/tvm/src/gen/java/org/bytedeco/tvm/ObjectRef.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.tvm; @@ -77,16 +77,36 @@ public class ObjectRef extends Pointer { public native @Cast("bool") boolean unique(); /** @return The use count of the ptr, for debug purposes */ public native int use_count(); + /** * \brief Try to downcast the internal Object to a * raw pointer of a corresponding type. * * The function will return a nullptr if the cast failed. * - * if (const Add *add = node_ref.As()) { - * // This is an add node - * } - * \tparam ObjectType the target type, must be a subtype of Object/ + * if (const AddNode *ptr = node_ref.as()) { + * // This is an add node + * } + * + * \tparam ObjectType the target type, must be a subtype of Object + */ + + /** + * \brief Try to downcast the ObjectRef to a + * Optional of the requested type. + * + * The function will return a NullOpt if the cast failed. + * + * if (Optional opt = node_ref.as()) { + * // This is an add node + * } + * + * \note While this method is declared in , + * the implementation is in to + * prevent circular includes. This additional include file is only + * required in compilation units that uses this method. + * + * \tparam ObjectRefType the target type, must be a subtype of ObjectRef */ /** \brief type indicate the container type. */ diff --git a/tvm/src/gen/java/org/bytedeco/tvm/PackedFunc.java b/tvm/src/gen/java/org/bytedeco/tvm/PackedFunc.java index 4d668269398..d0198d71776 100644 --- a/tvm/src/gen/java/org/bytedeco/tvm/PackedFunc.java +++ b/tvm/src/gen/java/org/bytedeco/tvm/PackedFunc.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.tvm; diff --git a/tvm/src/gen/java/org/bytedeco/tvm/PackedFuncObj.java b/tvm/src/gen/java/org/bytedeco/tvm/PackedFuncObj.java index 4b4f6ddd446..dcd32af3fa5 100644 --- a/tvm/src/gen/java/org/bytedeco/tvm/PackedFuncObj.java +++ b/tvm/src/gen/java/org/bytedeco/tvm/PackedFuncObj.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.tvm; diff --git a/tvm/src/gen/java/org/bytedeco/tvm/PackedFuncValueConverter.java b/tvm/src/gen/java/org/bytedeco/tvm/PackedFuncValueConverter.java index 38980783ee6..03cad059862 100644 --- a/tvm/src/gen/java/org/bytedeco/tvm/PackedFuncValueConverter.java +++ b/tvm/src/gen/java/org/bytedeco/tvm/PackedFuncValueConverter.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.tvm; diff --git a/tvm/src/gen/java/org/bytedeco/tvm/Registry.java b/tvm/src/gen/java/org/bytedeco/tvm/Registry.java index a82713868e3..3abf1502fbe 100644 --- a/tvm/src/gen/java/org/bytedeco/tvm/Registry.java +++ b/tvm/src/gen/java/org/bytedeco/tvm/Registry.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.tvm; @@ -184,30 +184,26 @@ public class Registry extends Pointer { * @param override Whether allow override existing function. * @return Reference to the registry. */ - public static native @ByRef Registry Register(@StdString BytePointer name, @Cast("bool") boolean override/*=false*/); - public static native @ByRef Registry Register(@StdString BytePointer name); - public static native @ByRef Registry Register(@StdString String name, @Cast("bool") boolean override/*=false*/); - public static native @ByRef Registry Register(@StdString String name); // NOLINT(*) + public static native @ByRef Registry Register(@Const @ByRef TVMString name, @Cast("bool") boolean override/*=false*/); + public static native @ByRef Registry Register(@Const @ByRef TVMString name); // NOLINT(*) /** * \brief Erase global function from registry, if exist. * @param name The name of the function. * @return Whether function exist. */ - public static native @Cast("bool") boolean Remove(@StdString BytePointer name); - public static native @Cast("bool") boolean Remove(@StdString String name); + public static native @Cast("bool") boolean Remove(@Const @ByRef TVMString name); /** * \brief Get the global function by name. * @param name The name of the function. * @return pointer to the registered function, * nullptr if it does not exist. */ - public static native @Const PackedFunc Get(@StdString BytePointer name); - public static native @Const PackedFunc Get(@StdString String name); // NOLINT(*) + public static native @Const PackedFunc Get(@Const @ByRef TVMString name); // NOLINT(*) /** * \brief Get the names of currently registered global function. * @return The names */ - public static native @ByVal StringVector ListNames(); + public static native @StdVector TVMString ListNames(); // Internal class. } diff --git a/tvm/src/gen/java/org/bytedeco/tvm/SeekStream.java b/tvm/src/gen/java/org/bytedeco/tvm/SeekStream.java index a96db03e5fc..f3d51a2b8f6 100644 --- a/tvm/src/gen/java/org/bytedeco/tvm/SeekStream.java +++ b/tvm/src/gen/java/org/bytedeco/tvm/SeekStream.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.tvm; diff --git a/tvm/src/gen/java/org/bytedeco/tvm/Serializable.java b/tvm/src/gen/java/org/bytedeco/tvm/Serializable.java index 169f07ab8d2..6d6aa0d8110 100644 --- a/tvm/src/gen/java/org/bytedeco/tvm/Serializable.java +++ b/tvm/src/gen/java/org/bytedeco/tvm/Serializable.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.tvm; diff --git a/tvm/src/gen/java/org/bytedeco/tvm/ShapeTuple.java b/tvm/src/gen/java/org/bytedeco/tvm/ShapeTuple.java index e32333c4c39..614e1db11c9 100644 --- a/tvm/src/gen/java/org/bytedeco/tvm/ShapeTuple.java +++ b/tvm/src/gen/java/org/bytedeco/tvm/ShapeTuple.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.tvm; diff --git a/tvm/src/gen/java/org/bytedeco/tvm/ShapeTupleObj.java b/tvm/src/gen/java/org/bytedeco/tvm/ShapeTupleObj.java index 5566ea6b750..e44d4224bae 100644 --- a/tvm/src/gen/java/org/bytedeco/tvm/ShapeTupleObj.java +++ b/tvm/src/gen/java/org/bytedeco/tvm/ShapeTupleObj.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.tvm; diff --git a/tvm/src/gen/java/org/bytedeco/tvm/SimpleObjAllocator.java b/tvm/src/gen/java/org/bytedeco/tvm/SimpleObjAllocator.java index bf5a3a838b5..055496fe486 100644 --- a/tvm/src/gen/java/org/bytedeco/tvm/SimpleObjAllocator.java +++ b/tvm/src/gen/java/org/bytedeco/tvm/SimpleObjAllocator.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.tvm; diff --git a/tvm/src/gen/java/org/bytedeco/tvm/SimpleObjAllocatorBase.java b/tvm/src/gen/java/org/bytedeco/tvm/SimpleObjAllocatorBase.java index 06c44b92aab..8f578554d68 100644 --- a/tvm/src/gen/java/org/bytedeco/tvm/SimpleObjAllocatorBase.java +++ b/tvm/src/gen/java/org/bytedeco/tvm/SimpleObjAllocatorBase.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.tvm; diff --git a/tvm/src/gen/java/org/bytedeco/tvm/SmallMapNode.java b/tvm/src/gen/java/org/bytedeco/tvm/SmallMapNode.java index 309a6845904..226c04382ce 100644 --- a/tvm/src/gen/java/org/bytedeco/tvm/SmallMapNode.java +++ b/tvm/src/gen/java/org/bytedeco/tvm/SmallMapNode.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.tvm; diff --git a/tvm/src/gen/java/org/bytedeco/tvm/SmallMapNodeBase.java b/tvm/src/gen/java/org/bytedeco/tvm/SmallMapNodeBase.java index f29ee730da3..b6ac8c5721b 100644 --- a/tvm/src/gen/java/org/bytedeco/tvm/SmallMapNodeBase.java +++ b/tvm/src/gen/java/org/bytedeco/tvm/SmallMapNodeBase.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.tvm; diff --git a/tvm/src/gen/java/org/bytedeco/tvm/Stream.java b/tvm/src/gen/java/org/bytedeco/tvm/Stream.java index c33c7b7cc2a..423a191bf38 100644 --- a/tvm/src/gen/java/org/bytedeco/tvm/Stream.java +++ b/tvm/src/gen/java/org/bytedeco/tvm/Stream.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.tvm; diff --git a/tvm/src/gen/java/org/bytedeco/tvm/StringObj.java b/tvm/src/gen/java/org/bytedeco/tvm/StringObj.java index e4def18df24..527ae3cebdb 100644 --- a/tvm/src/gen/java/org/bytedeco/tvm/StringObj.java +++ b/tvm/src/gen/java/org/bytedeco/tvm/StringObj.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.tvm; diff --git a/tvm/src/gen/java/org/bytedeco/tvm/StringVector.java b/tvm/src/gen/java/org/bytedeco/tvm/StringVector.java index 2c8c2f75824..0bc38fdfd37 100644 --- a/tvm/src/gen/java/org/bytedeco/tvm/StringVector.java +++ b/tvm/src/gen/java/org/bytedeco/tvm/StringVector.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.tvm; @@ -38,6 +38,8 @@ public class StringVector extends Pointer { public void clear() { resize(0); } public native void resize(@Cast("size_t") long n); + public BytePointer front() { return get(0); } + public BytePointer back() { return get(size() - 1); } @Index(function = "at") public native @StdString BytePointer get(@Cast("size_t") long i); public native StringVector put(@Cast("size_t") long i, BytePointer value); @ValueSetter @Index(function = "at") public native StringVector put(@Cast("size_t") long i, @StdString String value); diff --git a/tvm/src/gen/java/org/bytedeco/tvm/TVMArgValue.java b/tvm/src/gen/java/org/bytedeco/tvm/TVMArgValue.java index 2fab48c1874..27e5349bcbd 100644 --- a/tvm/src/gen/java/org/bytedeco/tvm/TVMArgValue.java +++ b/tvm/src/gen/java/org/bytedeco/tvm/TVMArgValue.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.tvm; diff --git a/tvm/src/gen/java/org/bytedeco/tvm/TVMArgs.java b/tvm/src/gen/java/org/bytedeco/tvm/TVMArgs.java index 97c4c95422a..e5b0eb5fb59 100644 --- a/tvm/src/gen/java/org/bytedeco/tvm/TVMArgs.java +++ b/tvm/src/gen/java/org/bytedeco/tvm/TVMArgs.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.tvm; diff --git a/tvm/src/gen/java/org/bytedeco/tvm/TVMArgsSetter.java b/tvm/src/gen/java/org/bytedeco/tvm/TVMArgsSetter.java index 8361e6c99ad..204abaf0b62 100644 --- a/tvm/src/gen/java/org/bytedeco/tvm/TVMArgsSetter.java +++ b/tvm/src/gen/java/org/bytedeco/tvm/TVMArgsSetter.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.tvm; diff --git a/tvm/src/gen/java/org/bytedeco/tvm/TVMByteArray.java b/tvm/src/gen/java/org/bytedeco/tvm/TVMByteArray.java index 5c87837aa77..10afa3f5bda 100644 --- a/tvm/src/gen/java/org/bytedeco/tvm/TVMByteArray.java +++ b/tvm/src/gen/java/org/bytedeco/tvm/TVMByteArray.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.tvm; diff --git a/tvm/src/gen/java/org/bytedeco/tvm/TVMExtensionFuncDeclarer.java b/tvm/src/gen/java/org/bytedeco/tvm/TVMExtensionFuncDeclarer.java index 95a0c89dbc9..3ffd89b12ba 100644 --- a/tvm/src/gen/java/org/bytedeco/tvm/TVMExtensionFuncDeclarer.java +++ b/tvm/src/gen/java/org/bytedeco/tvm/TVMExtensionFuncDeclarer.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.tvm; diff --git a/tvm/src/gen/java/org/bytedeco/tvm/TVMFunctionHandle.java b/tvm/src/gen/java/org/bytedeco/tvm/TVMFunctionHandle.java index b2c98215d9e..8ea31e2c194 100644 --- a/tvm/src/gen/java/org/bytedeco/tvm/TVMFunctionHandle.java +++ b/tvm/src/gen/java/org/bytedeco/tvm/TVMFunctionHandle.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.tvm; diff --git a/tvm/src/gen/java/org/bytedeco/tvm/TVMModuleHandle.java b/tvm/src/gen/java/org/bytedeco/tvm/TVMModuleHandle.java index 0f94369885f..703c5992a53 100644 --- a/tvm/src/gen/java/org/bytedeco/tvm/TVMModuleHandle.java +++ b/tvm/src/gen/java/org/bytedeco/tvm/TVMModuleHandle.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.tvm; diff --git a/tvm/src/gen/java/org/bytedeco/tvm/TVMMovableArgValue_.java b/tvm/src/gen/java/org/bytedeco/tvm/TVMMovableArgValue_.java index 2578cac1138..3250e44475f 100644 --- a/tvm/src/gen/java/org/bytedeco/tvm/TVMMovableArgValue_.java +++ b/tvm/src/gen/java/org/bytedeco/tvm/TVMMovableArgValue_.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.tvm; diff --git a/tvm/src/gen/java/org/bytedeco/tvm/TVMObject.java b/tvm/src/gen/java/org/bytedeco/tvm/TVMObject.java index 333d0cf9824..74746d7d372 100644 --- a/tvm/src/gen/java/org/bytedeco/tvm/TVMObject.java +++ b/tvm/src/gen/java/org/bytedeco/tvm/TVMObject.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.tvm; diff --git a/tvm/src/gen/java/org/bytedeco/tvm/TVMObjectHandle.java b/tvm/src/gen/java/org/bytedeco/tvm/TVMObjectHandle.java index 70b77629e17..02b3b7e9635 100644 --- a/tvm/src/gen/java/org/bytedeco/tvm/TVMObjectHandle.java +++ b/tvm/src/gen/java/org/bytedeco/tvm/TVMObjectHandle.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.tvm; diff --git a/tvm/src/gen/java/org/bytedeco/tvm/TVMPODValue_.java b/tvm/src/gen/java/org/bytedeco/tvm/TVMPODValue_.java index 120deabfe19..b4362df39fb 100644 --- a/tvm/src/gen/java/org/bytedeco/tvm/TVMPODValue_.java +++ b/tvm/src/gen/java/org/bytedeco/tvm/TVMPODValue_.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.tvm; diff --git a/tvm/src/gen/java/org/bytedeco/tvm/TVMPackedCFunc.java b/tvm/src/gen/java/org/bytedeco/tvm/TVMPackedCFunc.java index 1a884097ccf..12b2efcd9d0 100644 --- a/tvm/src/gen/java/org/bytedeco/tvm/TVMPackedCFunc.java +++ b/tvm/src/gen/java/org/bytedeco/tvm/TVMPackedCFunc.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.tvm; diff --git a/tvm/src/gen/java/org/bytedeco/tvm/TVMPackedCFuncFinalizer.java b/tvm/src/gen/java/org/bytedeco/tvm/TVMPackedCFuncFinalizer.java index 7621db8d0b3..a0a62de1b37 100644 --- a/tvm/src/gen/java/org/bytedeco/tvm/TVMPackedCFuncFinalizer.java +++ b/tvm/src/gen/java/org/bytedeco/tvm/TVMPackedCFuncFinalizer.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.tvm; diff --git a/tvm/src/gen/java/org/bytedeco/tvm/TVMRetValue.java b/tvm/src/gen/java/org/bytedeco/tvm/TVMRetValue.java index 262152d9c47..8a409cd161b 100644 --- a/tvm/src/gen/java/org/bytedeco/tvm/TVMRetValue.java +++ b/tvm/src/gen/java/org/bytedeco/tvm/TVMRetValue.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.tvm; diff --git a/tvm/src/gen/java/org/bytedeco/tvm/TVMRetValueHandle.java b/tvm/src/gen/java/org/bytedeco/tvm/TVMRetValueHandle.java index f162bf79f0e..9ba01cc0ecd 100644 --- a/tvm/src/gen/java/org/bytedeco/tvm/TVMRetValueHandle.java +++ b/tvm/src/gen/java/org/bytedeco/tvm/TVMRetValueHandle.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.tvm; diff --git a/tvm/src/gen/java/org/bytedeco/tvm/TVMStreamHandle.java b/tvm/src/gen/java/org/bytedeco/tvm/TVMStreamHandle.java index 267a6667a92..0f73aeb7dff 100644 --- a/tvm/src/gen/java/org/bytedeco/tvm/TVMStreamHandle.java +++ b/tvm/src/gen/java/org/bytedeco/tvm/TVMStreamHandle.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.tvm; diff --git a/tvm/src/gen/java/org/bytedeco/tvm/TVMString.java b/tvm/src/gen/java/org/bytedeco/tvm/TVMString.java index 5376c1e9d89..4d58cfea8cc 100644 --- a/tvm/src/gen/java/org/bytedeco/tvm/TVMString.java +++ b/tvm/src/gen/java/org/bytedeco/tvm/TVMString.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.tvm; diff --git a/tvm/src/gen/java/org/bytedeco/tvm/TVMStringOptional.java b/tvm/src/gen/java/org/bytedeco/tvm/TVMStringOptional.java index 53cd359b2b4..9b97de9c757 100644 --- a/tvm/src/gen/java/org/bytedeco/tvm/TVMStringOptional.java +++ b/tvm/src/gen/java/org/bytedeco/tvm/TVMStringOptional.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.tvm; diff --git a/tvm/src/gen/java/org/bytedeco/tvm/TVMValue.java b/tvm/src/gen/java/org/bytedeco/tvm/TVMValue.java index 166a333b368..f1c0a34ea83 100644 --- a/tvm/src/gen/java/org/bytedeco/tvm/TVMValue.java +++ b/tvm/src/gen/java/org/bytedeco/tvm/TVMValue.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.tvm; diff --git a/tvm/src/gen/java/org/bytedeco/tvm/Type2Str.java b/tvm/src/gen/java/org/bytedeco/tvm/Type2Str.java index dd83e695a7f..ef20f0a3ec3 100644 --- a/tvm/src/gen/java/org/bytedeco/tvm/Type2Str.java +++ b/tvm/src/gen/java/org/bytedeco/tvm/Type2Str.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.tvm; diff --git a/tvm/src/gen/java/org/bytedeco/tvm/TypeIndex.java b/tvm/src/gen/java/org/bytedeco/tvm/TypeIndex.java index 559c70db8be..26a0ad19f98 100644 --- a/tvm/src/gen/java/org/bytedeco/tvm/TypeIndex.java +++ b/tvm/src/gen/java/org/bytedeco/tvm/TypeIndex.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.tvm; diff --git a/tvm/src/gen/java/org/bytedeco/tvm/URI.java b/tvm/src/gen/java/org/bytedeco/tvm/URI.java index 66916974fdd..c959c84e28f 100644 --- a/tvm/src/gen/java/org/bytedeco/tvm/URI.java +++ b/tvm/src/gen/java/org/bytedeco/tvm/URI.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.tvm; diff --git a/tvm/src/gen/java/org/bytedeco/tvm/global/tvm_runtime.java b/tvm/src/gen/java/org/bytedeco/tvm/global/tvm_runtime.java index 1300bc9fda2..0b4fa2bc0f1 100644 --- a/tvm/src/gen/java/org/bytedeco/tvm/global/tvm_runtime.java +++ b/tvm/src/gen/java/org/bytedeco/tvm/global/tvm_runtime.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.tvm.global; @@ -907,7 +907,7 @@ public class tvm_runtime extends org.bytedeco.tvm.presets.tvm_runtime { // #endif // TVM version -public static final String TVM_VERSION = "0.12.0"; +public static final String TVM_VERSION = "0.13.0"; // TVM Runtime is DLPack compatible. // #include @@ -1727,6 +1727,8 @@ public static native int TVMObjectDerivedFrom(@Cast("uint32_t") int child_type_i // Targeting ../MapNodePtr.java + +// Forward declaration, to prevent circular includes. // Targeting ../ObjectRef.java @@ -2252,6 +2254,8 @@ public static native int TVMObjectDerivedFrom(@Cast("uint32_t") int child_type_i + + // namespace runtime // expose the functions to the root namespace. @@ -2838,8 +2842,7 @@ public static native int TVMObjectDerivedFrom(@Cast("uint32_t") int child_type_i * @param target The target module name. * @return Whether runtime is enabled. */ -@Namespace("tvm::runtime") public static native @Cast("bool") boolean RuntimeEnabled(@StdString BytePointer target); -@Namespace("tvm::runtime") public static native @Cast("bool") boolean RuntimeEnabled(@StdString String target); +@Namespace("tvm::runtime") public static native @Cast("bool") boolean RuntimeEnabled(@Const @ByRef TVMString target); /** \brief namespace for constant symbols */ /** \brief A PackedFunc that retrieves exported metadata. */ @@ -2848,8 +2851,6 @@ public static native int TVMObjectDerivedFrom(@Cast("uint32_t") int child_type_i @Namespace("tvm::runtime::symbol") @MemberGetter public static native @Cast("const char*") BytePointer tvm_module_ctx(); /** \brief Global variable to store device module blob */ @Namespace("tvm::runtime::symbol") @MemberGetter public static native @Cast("const char*") BytePointer tvm_dev_mblob(); -/** \brief Number of bytes of device module blob. */ -@Namespace("tvm::runtime::symbol") @MemberGetter public static native @Cast("const char*") BytePointer tvm_dev_mblob_nbytes(); /** \brief global function to set device */ @Namespace("tvm::runtime::symbol") @MemberGetter public static native @Cast("const char*") BytePointer tvm_set_device(); /** \brief Auxiliary counter to global barrier. */ @@ -3273,9 +3274,9 @@ public static native int TVMObjectDerivedFrom(@Cast("uint32_t") int child_type_i // #ifndef TVM_RUNTIME_REGISTRY_H_ // #define TVM_RUNTIME_REGISTRY_H_ +// #include // #include -// #include // #include // #include // #include diff --git a/tvm/src/gen/java/org/bytedeco/tvm/is_floating_point.java b/tvm/src/gen/java/org/bytedeco/tvm/is_floating_point.java index 4700f518d22..9f798122338 100644 --- a/tvm/src/gen/java/org/bytedeco/tvm/is_floating_point.java +++ b/tvm/src/gen/java/org/bytedeco/tvm/is_floating_point.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.tvm; diff --git a/tvm/src/gen/java/org/bytedeco/tvm/is_integral.java b/tvm/src/gen/java/org/bytedeco/tvm/is_integral.java index a9141af4340..c9234e3020d 100644 --- a/tvm/src/gen/java/org/bytedeco/tvm/is_integral.java +++ b/tvm/src/gen/java/org/bytedeco/tvm/is_integral.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.tvm; diff --git a/tvm/src/gen/java/org/bytedeco/tvm/is_pod.java b/tvm/src/gen/java/org/bytedeco/tvm/is_pod.java index f0db13aa463..2905500b10f 100644 --- a/tvm/src/gen/java/org/bytedeco/tvm/is_pod.java +++ b/tvm/src/gen/java/org/bytedeco/tvm/is_pod.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.tvm; diff --git a/tvm/src/gen/java/org/bytedeco/tvm/istream.java b/tvm/src/gen/java/org/bytedeco/tvm/istream.java index 2a4ec7db9bb..d9ac5190add 100644 --- a/tvm/src/gen/java/org/bytedeco/tvm/istream.java +++ b/tvm/src/gen/java/org/bytedeco/tvm/istream.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.tvm; diff --git a/tvm/src/gen/java/org/bytedeco/tvm/ostream.java b/tvm/src/gen/java/org/bytedeco/tvm/ostream.java index 6eee247ecdd..1f60e89648b 100644 --- a/tvm/src/gen/java/org/bytedeco/tvm/ostream.java +++ b/tvm/src/gen/java/org/bytedeco/tvm/ostream.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.tvm; diff --git a/tvm/src/gen/java/org/bytedeco/tvm/type_name_helper.java b/tvm/src/gen/java/org/bytedeco/tvm/type_name_helper.java index c7c5f3471f3..1e333316b40 100644 --- a/tvm/src/gen/java/org/bytedeco/tvm/type_name_helper.java +++ b/tvm/src/gen/java/org/bytedeco/tvm/type_name_helper.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.tvm; diff --git a/tvm/src/gen/java/org/bytedeco/tvm/typed_packed_call_dispatcher.java b/tvm/src/gen/java/org/bytedeco/tvm/typed_packed_call_dispatcher.java index ac92c000516..54d237422e5 100644 --- a/tvm/src/gen/java/org/bytedeco/tvm/typed_packed_call_dispatcher.java +++ b/tvm/src/gen/java/org/bytedeco/tvm/typed_packed_call_dispatcher.java @@ -1,4 +1,4 @@ -// Targeted by JavaCPP version 1.5.9: DO NOT EDIT THIS FILE +// Targeted by JavaCPP version 1.5.10-SNAPSHOT: DO NOT EDIT THIS FILE package org.bytedeco.tvm;