[Mlir-commits] [mlir] [mlir][nvvm] Introduce `setmaxregister.sync.aligned` Op (PR #73780)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Wed Nov 29 03:12:17 PST 2023


================
@@ -1007,6 +1007,12 @@ void NVVM::WgmmaMmaAsyncOp::getAsmValues(
   }
 }
 
+LogicalResult NVVM::SetMaxRegisterOp::verify() {
+  if (getCount() % 8)
+    return emitOpError("new register size must be multiple of 8");
+  return success();
----------------
durga4github wrote:

I think we can add the range check also:
if (getCount() < 24 || getCount() > 256)
  return emitOpError("...out-of-range..");

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


More information about the Mlir-commits mailing list