diff options
author | Durgadoss R <durgadossr@nvidia.com> | 2025-06-19 07:49:08 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-06-19 07:49:08 +0530 |
commit | bfee625821c07d9a05b48e4a8b0f3d73c1233107 (patch) | |
tree | 0bf4bbe4653ff95a57ef2de0f871642bf072b6b2 /llvm/lib/IR/Verifier.cpp | |
parent | faf9295f4e3a23a972d29e2be85052beef409d08 (diff) | |
download | llvm-bfee625821c07d9a05b48e4a8b0f3d73c1233107.zip llvm-bfee625821c07d9a05b48e4a8b0f3d73c1233107.tar.gz llvm-bfee625821c07d9a05b48e4a8b0f3d73c1233107.tar.bz2 |
[NVPTX] Attach Range attr to setmaxnreg and fence intrinsics (#144120)
This patch attaches the range attribute to the setmaxnreg
and fence.proxy.tensormap.* intrinsics. The range checks
are now handled generically in the Verifier. So, this patch
removes the per-intrinsic error-handling for range-checks
from the Verifier.
This patch also adds more coverage tests for these cases.
Signed-off-by: Durgadoss R <durgadossr@nvidia.com>
Diffstat (limited to 'llvm/lib/IR/Verifier.cpp')
-rw-r--r-- | llvm/lib/IR/Verifier.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/llvm/lib/IR/Verifier.cpp b/llvm/lib/IR/Verifier.cpp index 1f1041b..f0a4d7b 100644 --- a/llvm/lib/IR/Verifier.cpp +++ b/llvm/lib/IR/Verifier.cpp @@ -6557,8 +6557,6 @@ void Verifier::visitIntrinsicCall(Intrinsic::ID ID, CallBase &Call) { unsigned RegCount = cast<ConstantInt>(V)->getZExtValue(); Check(RegCount % 8 == 0, "reg_count argument to nvvm.setmaxnreg must be in multiples of 8"); - Check((RegCount >= 24 && RegCount <= 256), - "reg_count argument to nvvm.setmaxnreg must be within [24, 256]"); break; } case Intrinsic::experimental_convergence_entry: @@ -6605,14 +6603,6 @@ void Verifier::visitIntrinsicCall(Intrinsic::ID ID, CallBase &Call) { "llvm.threadlocal.address operand isThreadLocal() must be true"); break; } - case Intrinsic::nvvm_fence_proxy_tensormap_generic_acquire_cta: - case Intrinsic::nvvm_fence_proxy_tensormap_generic_acquire_cluster: - case Intrinsic::nvvm_fence_proxy_tensormap_generic_acquire_gpu: - case Intrinsic::nvvm_fence_proxy_tensormap_generic_acquire_sys: { - unsigned size = cast<ConstantInt>(Call.getArgOperand(1))->getZExtValue(); - Check(size == 128, " The only supported value for size operand is 128"); - break; - } }; // Verify that there aren't any unmediated control transfers between funclets. |