Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement module-independent data retrieval operations for LLVMNamedMDNodeRef #995

Merged
merged 5 commits into from
Jan 15, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@

* Add `NamedMetadataOperations.h` implementing data retrieval operations for LLVM nodes ([pull #995](https://github.com/bytedeco/javacpp-presets/pull/995))
* Enable OpenMP for ONNX Runtime on Mac once again ([issue #917](https://github.com/bytedeco/javacpp-presets/issues/917))
* Build OpenCV without OpenBLAS when environment variable `NOOPENBLAS=yes` ([pull #987](https://github.com/bytedeco/javacpp-presets/pull/987))
* Enable OpenCL acceleration for DNNL ([issue #938](https://github.com/bytedeco/javacpp-presets/issues/938))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public class LLVMMCJITCompilerOptions extends Pointer {
return (LLVMMCJITCompilerOptions)super.position(position);
}
@Override public LLVMMCJITCompilerOptions getPointer(long i) {
return new LLVMMCJITCompilerOptions(this).position(position + i);
return new LLVMMCJITCompilerOptions((Pointer)this).position(position + i);
}

public native @Cast("unsigned") int OptLevel(); public native LLVMMCJITCompilerOptions OptLevel(int setter);
Expand Down
2 changes: 1 addition & 1 deletion llvm/src/gen/java/org/bytedeco/llvm/LLVM/LLVMOpInfo1.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public class LLVMOpInfo1 extends Pointer {
return (LLVMOpInfo1)super.position(position);
}
@Override public LLVMOpInfo1 getPointer(long i) {
return new LLVMOpInfo1(this).position(position + i);
return new LLVMOpInfo1((Pointer)this).position(position + i);
}

public native @ByRef LLVMOpInfoSymbol1 AddSymbol(); public native LLVMOpInfo1 AddSymbol(LLVMOpInfoSymbol1 setter);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public class LLVMOpInfoSymbol1 extends Pointer {
return (LLVMOpInfoSymbol1)super.position(position);
}
@Override public LLVMOpInfoSymbol1 getPointer(long i) {
return new LLVMOpInfoSymbol1(this).position(position + i);
return new LLVMOpInfoSymbol1((Pointer)this).position(position + i);
}

public native @Cast("uint64_t") long Present(); public native LLVMOpInfoSymbol1 Present(long setter); /* 1 if this symbol is present */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public class LTOObjectBuffer extends Pointer {
return (LTOObjectBuffer)super.position(position);
}
@Override public LTOObjectBuffer getPointer(long i) {
return new LTOObjectBuffer(this).position(position + i);
return new LTOObjectBuffer((Pointer)this).position(position + i);
}

public native @Cast("const char*") BytePointer Buffer(); public native LTOObjectBuffer Buffer(BytePointer setter);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public class CXCodeCompleteResults extends Pointer {
return (CXCodeCompleteResults)super.position(position);
}
@Override public CXCodeCompleteResults getPointer(long i) {
return new CXCodeCompleteResults(this).position(position + i);
return new CXCodeCompleteResults((Pointer)this).position(position + i);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion llvm/src/gen/java/org/bytedeco/llvm/clang/CXComment.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public class CXComment extends Pointer {
return (CXComment)super.position(position);
}
@Override public CXComment getPointer(long i) {
return new CXComment(this).position(position + i);
return new CXComment((Pointer)this).position(position + i);
}

public native @Const Pointer ASTNode(); public native CXComment ASTNode(Pointer setter);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class CXCompletionResult extends Pointer {
return (CXCompletionResult)super.position(position);
}
@Override public CXCompletionResult getPointer(long i) {
return new CXCompletionResult(this).position(position + i);
return new CXCompletionResult((Pointer)this).position(position + i);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion llvm/src/gen/java/org/bytedeco/llvm/clang/CXCursor.java
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public class CXCursor extends Pointer {
return (CXCursor)super.position(position);
}
@Override public CXCursor getPointer(long i) {
return new CXCursor(this).position(position + i);
return new CXCursor((Pointer)this).position(position + i);
}

public native @Cast("CXCursorKind") int kind(); public native CXCursor kind(int setter);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class CXCursorAndRangeVisitor extends Pointer {
return (CXCursorAndRangeVisitor)super.position(position);
}
@Override public CXCursorAndRangeVisitor getPointer(long i) {
return new CXCursorAndRangeVisitor(this).position(position + i);
return new CXCursorAndRangeVisitor((Pointer)this).position(position + i);
}

public native Pointer context(); public native CXCursorAndRangeVisitor context(Pointer setter);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public class CXFileUniqueID extends Pointer {
return (CXFileUniqueID)super.position(position);
}
@Override public CXFileUniqueID getPointer(long i) {
return new CXFileUniqueID(this).position(position + i);
return new CXFileUniqueID((Pointer)this).position(position + i);
}

public native @Cast("unsigned long long") long data(int i); public native CXFileUniqueID data(int i, long setter);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class CXIdxAttrInfo extends Pointer {
return (CXIdxAttrInfo)super.position(position);
}
@Override public CXIdxAttrInfo getPointer(long i) {
return new CXIdxAttrInfo(this).position(position + i);
return new CXIdxAttrInfo((Pointer)this).position(position + i);
}

public native @Cast("CXIdxAttrKind") int kind(); public native CXIdxAttrInfo kind(int setter);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class CXIdxBaseClassInfo extends Pointer {
return (CXIdxBaseClassInfo)super.position(position);
}
@Override public CXIdxBaseClassInfo getPointer(long i) {
return new CXIdxBaseClassInfo(this).position(position + i);
return new CXIdxBaseClassInfo((Pointer)this).position(position + i);
}

public native @Const CXIdxEntityInfo base(); public native CXIdxBaseClassInfo base(CXIdxEntityInfo setter);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class CXIdxCXXClassDeclInfo extends Pointer {
return (CXIdxCXXClassDeclInfo)super.position(position);
}
@Override public CXIdxCXXClassDeclInfo getPointer(long i) {
return new CXIdxCXXClassDeclInfo(this).position(position + i);
return new CXIdxCXXClassDeclInfo((Pointer)this).position(position + i);
}

public native @Const CXIdxDeclInfo declInfo(); public native CXIdxCXXClassDeclInfo declInfo(CXIdxDeclInfo setter);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class CXIdxContainerInfo extends Pointer {
return (CXIdxContainerInfo)super.position(position);
}
@Override public CXIdxContainerInfo getPointer(long i) {
return new CXIdxContainerInfo(this).position(position + i);
return new CXIdxContainerInfo((Pointer)this).position(position + i);
}

public native @ByRef CXCursor cursor(); public native CXIdxContainerInfo cursor(CXCursor setter);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class CXIdxDeclInfo extends Pointer {
return (CXIdxDeclInfo)super.position(position);
}
@Override public CXIdxDeclInfo getPointer(long i) {
return new CXIdxDeclInfo(this).position(position + i);
return new CXIdxDeclInfo((Pointer)this).position(position + i);
}

public native @Const CXIdxEntityInfo entityInfo(); public native CXIdxDeclInfo entityInfo(CXIdxEntityInfo setter);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class CXIdxEntityInfo extends Pointer {
return (CXIdxEntityInfo)super.position(position);
}
@Override public CXIdxEntityInfo getPointer(long i) {
return new CXIdxEntityInfo(this).position(position + i);
return new CXIdxEntityInfo((Pointer)this).position(position + i);
}

public native @Cast("CXIdxEntityKind") int kind(); public native CXIdxEntityInfo kind(int setter);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class CXIdxEntityRefInfo extends Pointer {
return (CXIdxEntityRefInfo)super.position(position);
}
@Override public CXIdxEntityRefInfo getPointer(long i) {
return new CXIdxEntityRefInfo(this).position(position + i);
return new CXIdxEntityRefInfo((Pointer)this).position(position + i);
}

public native @Cast("CXIdxEntityRefKind") int kind(); public native CXIdxEntityRefInfo kind(int setter);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class CXIdxIBOutletCollectionAttrInfo extends Pointer {
return (CXIdxIBOutletCollectionAttrInfo)super.position(position);
}
@Override public CXIdxIBOutletCollectionAttrInfo getPointer(long i) {
return new CXIdxIBOutletCollectionAttrInfo(this).position(position + i);
return new CXIdxIBOutletCollectionAttrInfo((Pointer)this).position(position + i);
}

public native @Const CXIdxAttrInfo attrInfo(); public native CXIdxIBOutletCollectionAttrInfo attrInfo(CXIdxAttrInfo setter);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class CXIdxImportedASTFileInfo extends Pointer {
return (CXIdxImportedASTFileInfo)super.position(position);
}
@Override public CXIdxImportedASTFileInfo getPointer(long i) {
return new CXIdxImportedASTFileInfo(this).position(position + i);
return new CXIdxImportedASTFileInfo((Pointer)this).position(position + i);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class CXIdxIncludedFileInfo extends Pointer {
return (CXIdxIncludedFileInfo)super.position(position);
}
@Override public CXIdxIncludedFileInfo getPointer(long i) {
return new CXIdxIncludedFileInfo(this).position(position + i);
return new CXIdxIncludedFileInfo((Pointer)this).position(position + i);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion llvm/src/gen/java/org/bytedeco/llvm/clang/CXIdxLoc.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class CXIdxLoc extends Pointer {
return (CXIdxLoc)super.position(position);
}
@Override public CXIdxLoc getPointer(long i) {
return new CXIdxLoc(this).position(position + i);
return new CXIdxLoc((Pointer)this).position(position + i);
}

public native Pointer ptr_data(int i); public native CXIdxLoc ptr_data(int i, Pointer setter);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class CXIdxObjCCategoryDeclInfo extends Pointer {
return (CXIdxObjCCategoryDeclInfo)super.position(position);
}
@Override public CXIdxObjCCategoryDeclInfo getPointer(long i) {
return new CXIdxObjCCategoryDeclInfo(this).position(position + i);
return new CXIdxObjCCategoryDeclInfo((Pointer)this).position(position + i);
}

public native @Const CXIdxObjCContainerDeclInfo containerInfo(); public native CXIdxObjCCategoryDeclInfo containerInfo(CXIdxObjCContainerDeclInfo setter);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class CXIdxObjCContainerDeclInfo extends Pointer {
return (CXIdxObjCContainerDeclInfo)super.position(position);
}
@Override public CXIdxObjCContainerDeclInfo getPointer(long i) {
return new CXIdxObjCContainerDeclInfo(this).position(position + i);
return new CXIdxObjCContainerDeclInfo((Pointer)this).position(position + i);
}

public native @Const CXIdxDeclInfo declInfo(); public native CXIdxObjCContainerDeclInfo declInfo(CXIdxDeclInfo setter);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class CXIdxObjCInterfaceDeclInfo extends Pointer {
return (CXIdxObjCInterfaceDeclInfo)super.position(position);
}
@Override public CXIdxObjCInterfaceDeclInfo getPointer(long i) {
return new CXIdxObjCInterfaceDeclInfo(this).position(position + i);
return new CXIdxObjCInterfaceDeclInfo((Pointer)this).position(position + i);
}

public native @Const CXIdxObjCContainerDeclInfo containerInfo(); public native CXIdxObjCInterfaceDeclInfo containerInfo(CXIdxObjCContainerDeclInfo setter);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class CXIdxObjCPropertyDeclInfo extends Pointer {
return (CXIdxObjCPropertyDeclInfo)super.position(position);
}
@Override public CXIdxObjCPropertyDeclInfo getPointer(long i) {
return new CXIdxObjCPropertyDeclInfo(this).position(position + i);
return new CXIdxObjCPropertyDeclInfo((Pointer)this).position(position + i);
}

public native @Const CXIdxDeclInfo declInfo(); public native CXIdxObjCPropertyDeclInfo declInfo(CXIdxDeclInfo setter);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class CXIdxObjCProtocolRefInfo extends Pointer {
return (CXIdxObjCProtocolRefInfo)super.position(position);
}
@Override public CXIdxObjCProtocolRefInfo getPointer(long i) {
return new CXIdxObjCProtocolRefInfo(this).position(position + i);
return new CXIdxObjCProtocolRefInfo((Pointer)this).position(position + i);
}

public native @Const CXIdxEntityInfo protocol(); public native CXIdxObjCProtocolRefInfo protocol(CXIdxEntityInfo setter);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class CXIdxObjCProtocolRefListInfo extends Pointer {
return (CXIdxObjCProtocolRefListInfo)super.position(position);
}
@Override public CXIdxObjCProtocolRefListInfo getPointer(long i) {
return new CXIdxObjCProtocolRefListInfo(this).position(position + i);
return new CXIdxObjCProtocolRefListInfo((Pointer)this).position(position + i);
}

@MemberGetter public native @Const CXIdxObjCProtocolRefInfo protocols(int i);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public class CXPlatformAvailability extends Pointer {
return (CXPlatformAvailability)super.position(position);
}
@Override public CXPlatformAvailability getPointer(long i) {
return new CXPlatformAvailability(this).position(position + i);
return new CXPlatformAvailability((Pointer)this).position(position + i);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public class CXSourceLocation extends Pointer {
return (CXSourceLocation)super.position(position);
}
@Override public CXSourceLocation getPointer(long i) {
return new CXSourceLocation(this).position(position + i);
return new CXSourceLocation((Pointer)this).position(position + i);
}

public native @Const Pointer ptr_data(int i); public native CXSourceLocation ptr_data(int i, Pointer setter);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public class CXSourceRange extends Pointer {
return (CXSourceRange)super.position(position);
}
@Override public CXSourceRange getPointer(long i) {
return new CXSourceRange(this).position(position + i);
return new CXSourceRange((Pointer)this).position(position + i);
}

public native @Const Pointer ptr_data(int i); public native CXSourceRange ptr_data(int i, Pointer setter);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class CXSourceRangeList extends Pointer {
return (CXSourceRangeList)super.position(position);
}
@Override public CXSourceRangeList getPointer(long i) {
return new CXSourceRangeList(this).position(position + i);
return new CXSourceRangeList((Pointer)this).position(position + i);
}

/** The number of ranges in the \c ranges array. */
Expand Down
2 changes: 1 addition & 1 deletion llvm/src/gen/java/org/bytedeco/llvm/clang/CXString.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public class CXString extends Pointer {
return (CXString)super.position(position);
}
@Override public CXString getPointer(long i) {
return new CXString(this).position(position + i);
return new CXString((Pointer)this).position(position + i);
}

public String getString() {
Expand Down
2 changes: 1 addition & 1 deletion llvm/src/gen/java/org/bytedeco/llvm/clang/CXStringSet.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class CXStringSet extends Pointer {
return (CXStringSet)super.position(position);
}
@Override public CXStringSet getPointer(long i) {
return new CXStringSet(this).position(position + i);
return new CXStringSet((Pointer)this).position(position + i);
}

public native CXString Strings(); public native CXStringSet Strings(CXString setter);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class CXTUResourceUsage extends Pointer {
return (CXTUResourceUsage)super.position(position);
}
@Override public CXTUResourceUsage getPointer(long i) {
return new CXTUResourceUsage(this).position(position + i);
return new CXTUResourceUsage((Pointer)this).position(position + i);
}

/* Private data member, used for queries. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public class CXTUResourceUsageEntry extends Pointer {
return (CXTUResourceUsageEntry)super.position(position);
}
@Override public CXTUResourceUsageEntry getPointer(long i) {
return new CXTUResourceUsageEntry(this).position(position + i);
return new CXTUResourceUsageEntry((Pointer)this).position(position + i);
}

/* The memory usage category. */
Expand Down
2 changes: 1 addition & 1 deletion llvm/src/gen/java/org/bytedeco/llvm/clang/CXToken.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class CXToken extends Pointer {
return (CXToken)super.position(position);
}
@Override public CXToken getPointer(long i) {
return new CXToken(this).position(position + i);
return new CXToken((Pointer)this).position(position + i);
}

public native @Cast("unsigned") int int_data(int i); public native CXToken int_data(int i, int setter);
Expand Down
2 changes: 1 addition & 1 deletion llvm/src/gen/java/org/bytedeco/llvm/clang/CXType.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public class CXType extends Pointer {
return (CXType)super.position(position);
}
@Override public CXType getPointer(long i) {
return new CXType(this).position(position + i);
return new CXType((Pointer)this).position(position + i);
}

public native @Cast("CXTypeKind") int kind(); public native CXType kind(int setter);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public class CXUnsavedFile extends Pointer {
return (CXUnsavedFile)super.position(position);
}
@Override public CXUnsavedFile getPointer(long i) {
return new CXUnsavedFile(this).position(position + i);
return new CXUnsavedFile((Pointer)this).position(position + i);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion llvm/src/gen/java/org/bytedeco/llvm/clang/CXVersion.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class CXVersion extends Pointer {
return (CXVersion)super.position(position);
}
@Override public CXVersion getPointer(long i) {
return new CXVersion(this).position(position + i);
return new CXVersion((Pointer)this).position(position + i);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public class IndexerCallbacks extends Pointer {
return (IndexerCallbacks)super.position(position);
}
@Override public IndexerCallbacks getPointer(long i) {
return new IndexerCallbacks(this).position(position + i);
return new IndexerCallbacks((Pointer)this).position(position + i);
}

/**
Expand Down
Loading