[Mlir-commits] [llvm] [mlir] [NFC][LLVM] Define range attribute for `llvm.prefetch` args (PR #207300)

Durgadoss R llvmlistbot at llvm.org
Fri Jul 3 07:43:17 PDT 2026


================
@@ -6289,14 +6289,6 @@ void Verifier::visitIntrinsicCall(Intrinsic::ID ID, CallBase &Call) {
           "llvm.init_trampoline parameter #2 must resolve to a function.",
           Call);
     break;
-  case Intrinsic::prefetch:
-    Check(cast<ConstantInt>(Call.getArgOperand(1))->getZExtValue() < 2,
-          "rw argument to llvm.prefetch must be 0-1", Call);
-    Check(cast<ConstantInt>(Call.getArgOperand(2))->getZExtValue() < 4,
-          "locality argument to llvm.prefetch must be 0-3", Call);
-    Check(cast<ConstantInt>(Call.getArgOperand(3))->getZExtValue() < 2,
-          "cache type argument to llvm.prefetch must be 0-1", Call);
-    break;
----------------
durga4github wrote:

Nice ;-)

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


More information about the Mlir-commits mailing list