[llvm] [C API] Add accessors for new no-wrap flags on GEP instructions (PR #97970)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 15 00:24:43 PDT 2024


================
@@ -3904,6 +3929,20 @@ void LLVMSetIsInBounds(LLVMValueRef GEP, LLVMBool InBounds);
  */
 LLVMTypeRef LLVMGetGEPSourceElementType(LLVMValueRef GEP);
 
+/**
+ * Get the no-wrap related flags for the given GEP instruction.
+ *
+ * @see llvm::GetElementPtrInst::getNoWrapFlags
+ */
+LLVMGEPNoWrapFlags LLVMGEPGetNoWrapFlags(LLVMValueRef GEP);
+
+/**
+ * Get the no-wrap related flags for the given GEP instruction.
----------------
nikic wrote:

```suggestion
 * Set the no-wrap related flags for the given GEP instruction.
```

https://github.com/llvm/llvm-project/pull/97970


More information about the llvm-commits mailing list