[Mlir-commits] [mlir] [MLIR][NVVM] Add support for st.bulk Op (PR #131727)

Durgadoss R llvmlistbot at llvm.org
Tue Mar 18 03:06:46 PDT 2025


================
@@ -2583,6 +2583,34 @@ def NVVM_MapaOp: NVVM_Op<"mapa",
   let assemblyFormat = "$a`,` $b attr-dict `:` type($a) `->` type($res)";
 }
 
+//===----------------------------------------------------------------------===//
+// NVVM Bulk Store Op
+//===----------------------------------------------------------------------===//
+
+def NVVM_BulkStoreOp: NVVM_Op<"st.bulk"> {
+  let arguments = (ins AnyTypeOf<[LLVM_PointerGeneric, LLVM_PointerShared]>:$addr, I64:$size, I64Attr:$initval);
+
+  let summary = "Bulk Store Op";
+  let description = [{
+    Initializes a region of shared memory at the address given by `addr`.
+    The `size` operand specifies the number of bytes to initialize and must be 
+    a multiple of 8.
+    The `initval` operand specifies the value to initialize the memory to. The 
+    only supported value is 0.
----------------
durga4github wrote:

Should we add a verifier check for this along with a test?

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


More information about the Mlir-commits mailing list