From 66baa349c63f07bd3f0625ccd47dace98769f814 Mon Sep 17 00:00:00 2001 From: Matthias Springer Date: Thu, 27 Oct 2022 12:20:05 +0200 Subject: [PATCH] [mlir][tensor] Fix build: Add missing line break to test case This should have been part of D136767. --- mlir/test/Dialect/Tensor/bufferize.mlir | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/mlir/test/Dialect/Tensor/bufferize.mlir b/mlir/test/Dialect/Tensor/bufferize.mlir index d112725..a2a1fb0 100644 --- a/mlir/test/Dialect/Tensor/bufferize.mlir +++ b/mlir/test/Dialect/Tensor/bufferize.mlir @@ -191,7 +191,8 @@ func.func @tensor.from_elements_3d(%f0 : f32) -> tensor<3x2x2xf32> { // CHECK-DAG: %[[ARG_M:.*]] = bufferization.to_memref %[[ARG]] : memref<*xf32> // CHECK-DAG: %[[ALLOC:.*]] = memref.alloc(%[[DYNAMIC_EXTENT]]) {{.*}} : memref // CHECK: %[[ALLOC_T:.*]] = bufferization.to_tensor %[[ALLOC]] -// CHECK: %[[MAPPED:.*]] = linalg.map outs(%[[ALLOC_T]] : tensor)() { +// CHECK: %[[MAPPED:.*]] = linalg.map +// CHECK: outs(%[[ALLOC_T]] : tensor) // CHECK: %[[INDEX:.*]] = linalg.index 0 : index // CHECK: %[[ELEM:.*]] = memref.dim %[[ARG_M]], %[[INDEX]] : memref<*xf32> // CHECK: linalg.yield %[[ELEM]] @@ -216,7 +217,8 @@ func.func @tensor.generate(%arg: tensor<*xf32>, %dynamic_extent: index) -> tenso // CHECK-SAME: %[[DYNAMIC_EXTENT:.*]]: index) -> tensor<16x?xindex> { // CHECK: %[[ALLOC:.*]] = memref.alloc(%[[DYNAMIC_EXTENT]]) {{.*}} : memref<16x?xindex> // CHECK: %[[ALLOC_T:.*]] = bufferization.to_tensor %[[ALLOC]] -// CHECK: %[[MAPPED:.*]] = linalg.map outs(%[[ALLOC_T]] : tensor<16x?xindex>)() { +// CHECK: %[[MAPPED:.*]] = linalg.map +// CHECK: outs(%[[ALLOC_T]] : tensor<16x?xindex>) // CHECK: %[[INDEX0:.*]] = linalg.index 0 // CHECK: %[[INDEX1:.*]] = linalg.index 1 // CHECK: %[[ADD:.*]] = arith.addi %[[INDEX0]], %[[INDEX1]] @@ -552,7 +554,8 @@ func.func @tensor.pad(%t1: tensor, %l2: index, %h1: index, // CHECK-DAG: %[[size1:.*]] = affine.apply #[[$sum_map]]()[%[[dim1]], %[[l2]], %[[h2]]] // CHECK: %[[alloc:.*]] = memref.alloc(%[[size0]], %[[size1]]) {{.*}} : memref // CHECK: %[[alloc_t:.*]] = bufferization.to_tensor %[[alloc]] - // CHECK: %[[mapped:.*]] = linalg.map outs(%[[alloc_t]] : tensor)() { + // CHECK: %[[mapped:.*]] = linalg.map + // CHECK: outs(%[[alloc_t]] : tensor) // CHECK: %[[index0:.*]] = linalg.index 0 // CHECK: %[[index1:.*]] = linalg.index 1 // CHECK: %[[mul:.*]] = arith.muli %[[index0]], %[[index1]] -- 2.7.4