[Mlir-commits] [mlir] c5fefbc - Fix MLIR Linalg Python test after adopting properties in f6ac7e3c6d5b

Mehdi Amini llvmlistbot at llvm.org
Fri May 5 17:15:55 PDT 2023


Author: Mehdi Amini
Date: 2023-05-05T17:15:48-07:00
New Revision: c5fefbc8dbc49d1c3133615b46fc9a3ca93dcdc2

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

LOG: Fix MLIR Linalg Python test after adopting properties in f6ac7e3c6d5b

Added: 
    

Modified: 
    mlir/test/python/dialects/linalg/ops.py

Removed: 
    


################################################################################
diff  --git a/mlir/test/python/dialects/linalg/ops.py b/mlir/test/python/dialects/linalg/ops.py
index 367aa331e9b20..1167abf84d4e4 100644
--- a/mlir/test/python/dialects/linalg/ops.py
+++ b/mlir/test/python/dialects/linalg/ops.py
@@ -91,13 +91,13 @@ def testNamedStructuredOpGenericForm():
       def named_form(lhs, rhs):
         init_result = tensor.EmptyOp([4, 8], f32)
         #      CHECK: "linalg.matmul"(%{{.*}})
+        # CHECK-SAME:    cast = #linalg.type_fn<cast_signed>
+        # CHECK-SAME:    operand_segment_sizes = array<i32: 2, 1>
         # CHECK-NEXT:  ^bb0(%{{.*}}: f32, %{{.*}}: f32, %{{.*}}: f32):
         # CHECK-NEXT:    arith.mulf{{.*}} (f32, f32) -> f32
         # CHECK-NEXT:    arith.addf{{.*}} (f32, f32) -> f32
         # CHECK-NEXT:    linalg.yield{{.*}} (f32) -> ()
-        # CHECK-NEXT:    cast = #linalg.type_fn<cast_signed>
-        # CHECK-SAME:    operand_segment_sizes = array<i32: 2, 1>
-        # CHECK-SAME: (tensor<4x16xf32>, tensor<16x8xf32>, tensor<4x8xf32>) -> tensor<4x8xf32>
+        # CHECK-NEXT: (tensor<4x16xf32>, tensor<16x8xf32>, tensor<4x8xf32>) -> tensor<4x8xf32>
         return linalg.matmul(lhs, rhs, outs=[init_result.result])
 
   module.operation.print(print_generic_op_form=True)


        


More information about the Mlir-commits mailing list