[llvm] [Verifier] Accept range assume bundles (PR #202586)
Nikolas Klauser via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 15 07:49:13 PDT 2026
================
@@ -6135,6 +6135,21 @@ void Verifier::visitIntrinsicCall(Intrinsic::ID ID, CallBase &Call) {
Check(OBU.Inputs.size() == 1,
"noundef assumptions should have 1 argument", Call);
break;
+ case BundleAttr::Range:
+ Check(OBU.Inputs.size() == 3,
+ "range assumptions should have 3 arguments", Call);
+ Check(GetTypeAt(0)->isIntegerTy(),
+ "first argument should be an integer", Call);
+ Check(isa<ConstantInt>(OBU.Inputs[1]),
+ "second argument should be a constant integer", Call);
+ Check(isa<ConstantInt>(OBU.Inputs[2]),
+ "third argument should be a constant integer", Call);
----------------
philnik777 wrote:
My original plan was to avoid non-constants for simplicity and add them later, but I realized that I need to take non-constant arguments into consideration for the design due to the comment above. I've decided to drop this constraint for that reason.
https://github.com/llvm/llvm-project/pull/202586
More information about the llvm-commits
mailing list