[llvm] [C API] Add function to create constantRange attributes to C API (PR #90505)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Wed May 1 23:40:21 PDT 2024


================
@@ -673,6 +673,18 @@ LLVMAttributeRef LLVMCreateTypeAttribute(LLVMContextRef C, unsigned KindID,
  */
 LLVMTypeRef LLVMGetTypeAttributeValue(LLVMAttributeRef A);
 
+/**
+ * Create a ConstantRange attribute.
+ *
+ * LowerWords and UpperWords needs to be NumBits devided by 64 runded up
----------------
nikic wrote:

```suggestion
 * LowerWords and UpperWords needs to be NumBits divided by 64 rounded up
```

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


More information about the llvm-commits mailing list