[Mlir-commits] [mlir] fda861b - [mlir][spirv] Fix `spirv.NV.coopmatrix` syntax in examples. NFC.

Jakub Kuderski llvmlistbot at llvm.org
Mon Jul 10 08:55:42 PDT 2023


Author: Jakub Kuderski
Date: 2023-07-10T11:54:15-04:00
New Revision: fda861bb934f814065938e7da6d33de5615506da

URL: https://github.com/llvm/llvm-project/commit/fda861bb934f814065938e7da6d33de5615506da
DIFF: https://github.com/llvm/llvm-project/commit/fda861bb934f814065938e7da6d33de5615506da.diff

LOG: [mlir][spirv] Fix `spirv.NV.coopmatrix` syntax in examples. NFC.

Reviewed By: antiagainst, qedawkins

Differential Revision: https://reviews.llvm.org/D154847

Added: 
    

Modified: 
    mlir/include/mlir/Dialect/SPIRV/IR/SPIRVCooperativeMatrixOps.td

Removed: 
    


################################################################################
diff  --git a/mlir/include/mlir/Dialect/SPIRV/IR/SPIRVCooperativeMatrixOps.td b/mlir/include/mlir/Dialect/SPIRV/IR/SPIRVCooperativeMatrixOps.td
index 71c4f7e17bf013..fada7f64899ad0 100644
--- a/mlir/include/mlir/Dialect/SPIRV/IR/SPIRVCooperativeMatrixOps.td
+++ b/mlir/include/mlir/Dialect/SPIRV/IR/SPIRVCooperativeMatrixOps.td
@@ -39,7 +39,7 @@ def SPIRV_NVCooperativeMatrixLengthOp : SPIRV_NvVendorOp<"CooperativeMatrixLengt
     For example:
 
     ```
-    %0 = spirv.NV.CooperativeMatrixLength : !spirv.NV.coopmatrix<Subgroup, i32, 8, 16>
+    %0 = spirv.NV.CooperativeMatrixLength : !spirv.NV.coopmatrix<8x16xi32, Subgroup>
     ```
   }];
 
@@ -115,7 +115,7 @@ def SPIRV_NVCooperativeMatrixLoadOp : SPIRV_NvVendorOp<"CooperativeMatrixLoad",
 
     ```
     %0 = spirv.NV.CooperativeMatrixLoad %ptr, %stride, %colMajor
-         : !spirv.ptr<i32, StorageBuffer> as !spirv.NV.coopmatrix<i32, Workgroup, 16, 8>
+         : !spirv.ptr<i32, StorageBuffer> as !spirv.NV.coopmatrix<16x8xi32, Workgroup>
     ```
   }];
 
@@ -186,7 +186,7 @@ def SPIRV_NVCooperativeMatrixMulAddOp : SPIRV_NvVendorOp<"CooperativeMatrixMulAd
 
     ```
     %0 = spirv.NV.CooperativeMatrixMulAdd %arg0, %arg1, %arg2,  :
-      !spirv.NV.coopmatrix<Subgroup, i32, 8, 16>
+      !spirv.NV.coopmatrix<8x16xi32, Subgroup>
     ```
   }];
 
@@ -251,7 +251,7 @@ def SPIRV_NVCooperativeMatrixStoreOp : SPIRV_NvVendorOp<"CooperativeMatrixStore"
 
     ```
       spirv.NV.CooperativeMatrixStore %arg0, %arg2, %arg1, %arg3 :
-        !spirv.ptr<i32, StorageBuffer>, !spirv.NV.coopmatrix<Workgroup, i32, 16, 8>
+        !spirv.ptr<i32, StorageBuffer>, !spirv.NV.coopmatrix<16x8xi32, Workgroup>
     ```
   }];
 


        


More information about the Mlir-commits mailing list