[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
Tue Apr 30 21:34:54 PDT 2024


================
@@ -308,4 +310,36 @@ TEST(Attributes, RemoveParamAttributes) {
   EXPECT_EQ(AL.getNumAttrSets(), 0U);
 }
 
+TEST(Attributes, ConstantRangeAttributeCAPI) {
+  LLVMContext C;
+  {
+    const unsigned numBits = 8;
----------------
nikic wrote:

```suggestion
    const unsigned NumBits = 8;
```

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


More information about the llvm-commits mailing list