[llvm] [IR][TableGen] Add RangeSet TableGen intrinsic property (PR #203623)

Rahul Joshi via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 5 08:56:33 PDT 2026


================
@@ -388,6 +427,11 @@ CodeGenIntrinsic::CodeGenIntrinsic(const Record *R,
   for (auto &Attrs : ArgumentAttributes)
     llvm::sort(Attrs);
 
+  for (const ImmArgRangeSet &RangeSet : ImmArgRangeSets)
+    if (!isParamImmArg(RangeSet.ArgNo))
+      PrintFatalError(TheDef->getLoc(),
+                      "RangeSet requires ImmArg for the same argument index");
----------------
jurahul wrote:

nit: print arg no in the error message

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


More information about the llvm-commits mailing list