[Mlir-commits] [mlir] 8a5c7e3 - [mlir][spirv] fix ordering in Intel joint matrix ops

Nirvedh Meshram llvmlistbot at llvm.org
Mon Sep 19 11:10:28 PDT 2022


Author: Nirvedh Meshram
Date: 2022-09-19T11:09:01-07:00
New Revision: 8a5c7e36c0aba34a15c927d16e26116b9ddc46fd

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

LOG: [mlir][spirv] fix ordering in Intel joint matrix ops

Reviwed By: antiagainst

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

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/mlir/include/mlir/Dialect/SPIRV/IR/SPIRVJointMatrixOps.td b/mlir/include/mlir/Dialect/SPIRV/IR/SPIRVJointMatrixOps.td
index 7419f63c747aa..61070885d4109 100644
--- a/mlir/include/mlir/Dialect/SPIRV/IR/SPIRVJointMatrixOps.td
+++ b/mlir/include/mlir/Dialect/SPIRV/IR/SPIRVJointMatrixOps.td
@@ -104,10 +104,10 @@ def SPV_INTELJointMatrixLoadOp : SPV_IntelVendorOp<"JointMatrixLoad", []> {
   ];
 
   let arguments = (ins
-    SPV_ScopeAttr:$scope,
-    SPV_MatrixLayoutAttr:$layout,
     SPV_AnyPtr:$pointer,
     SPV_Integer:$stride,
+    SPV_MatrixLayoutAttr:$layout,
+    SPV_ScopeAttr:$scope,
     OptionalAttr<SPV_MemoryAccessAttr>:$memory_access,
     OptionalAttr<I32Attr>:$alignment
   );
@@ -169,10 +169,10 @@ def SPV_INTELJointMatrixMadOp : SPV_IntelVendorOp<"JointMatrixMad",
   ];
 
   let arguments = (ins
-    SPV_ScopeAttr:$scope,
     SPV_AnyJointMatrix:$a,
     SPV_AnyJointMatrix:$b,
-    SPV_AnyJointMatrix:$c
+    SPV_AnyJointMatrix:$c,
+    SPV_ScopeAttr:$scope
   );
 
   let results = (outs
@@ -231,11 +231,11 @@ def SPV_INTELJointMatrixStoreOp : SPV_IntelVendorOp<"JointMatrixStore", []> {
   ];
 
   let arguments = (ins
-    SPV_ScopeAttr:$scope,
-    SPV_MatrixLayoutAttr:$layout,
     SPV_AnyPtr:$pointer,
     SPV_AnyJointMatrix:$object,
     SPV_Integer:$stride,
+    SPV_MatrixLayoutAttr:$layout,
+    SPV_ScopeAttr:$scope,
     OptionalAttr<SPV_MemoryAccessAttr>:$memory_access,
     OptionalAttr<I32Attr>:$alignment
   );


        


More information about the Mlir-commits mailing list