15
15
// CHECK: linalg.fill ins(%[[c50]] : index) outs(%[[alloc]] : memref<?x?xindex>)
16
16
// CHECK: %[[dim0:.*]] = tensor.dim %[[t]], %[[c0]]
17
17
// CHECK: %[[subview:.*]] = memref.subview %[[alloc]][5, %[[l2]]] [%[[dim0]], 10] [1, 1]
18
- // CHECK: memref.tensor_store %[[t]], %[[subview]]
18
+ // CHECK: bufferization.materialize_in_destination %[[t]] in writable %[[subview]]
19
19
// CHECK: %[[r:.*]] = bufferization.to_tensor %[[alloc]] restrict writable : memref<?x?xindex>
20
20
// CHECK: memref.dealloc %[[alloc]]
21
21
// CHECK: return %[[r]]
@@ -40,17 +40,17 @@ module attributes {transform.with_named_sequence} {
40
40
transform.test_print_number_of_associated_payload_ir_ops %fill_op : !transform.any_op
41
41
42
42
// Ensure that one linalg.copy was generated.
43
- %tensor_store = transform.select " memref.tensor_store " in %new : (!transform.any_op ) -> !transform.any_op
43
+ %mat = transform.select " bufferization.materialize_in_destination " in %new : (!transform.any_op ) -> !transform.any_op
44
44
// expected-remark @below{{1}}
45
- transform.test_print_number_of_associated_payload_ir_ops %tensor_store : !transform.any_op
45
+ transform.test_print_number_of_associated_payload_ir_ops %mat : !transform.any_op
46
46
transform.yield
47
47
}
48
48
}
49
49
50
50
// -----
51
51
52
52
// CHECK-LABEL: func @tensor_pad_constant_with_custom_copy(
53
- // CHECK-NOT: memref.tensor_store
53
+ // CHECK-NOT: bufferization.materialize_in_destination
54
54
// CHECK-NOT: memref.copy
55
55
// CHECK: memref.alloca
56
56
// CHECK: linalg.copy
@@ -194,7 +194,7 @@ module attributes {transform.with_named_sequence} {
194
194
// CHECK-LABEL: func @vector_mask(
195
195
// CHECK-SAME: %[[t:.*]]: tensor<?xf32>,
196
196
// CHECK: %[[alloc:.*]] = memref.alloc(%{{.*}}) : memref<?xf32, 4>
197
- // CHECK: memref.tensor_store %[[t]], %[[alloc]]
197
+ // CHECK: bufferization.materialize_in_destination %[[t]] in writable %[[alloc]]
198
198
// CHECK: vector.mask %{{.*}} { vector.transfer_write %{{.*}}, %[[alloc]]
199
199
// CHECK: %[[r:.*]] = bufferization.to_tensor %[[alloc]] restrict writable
200
200
// CHECK: memref.dealloc %[[alloc]]
@@ -217,7 +217,7 @@ module attributes {transform.with_named_sequence} {
217
217
// CHECK-LABEL: func @tensor_insert_destination(
218
218
// CHECK-SAME: %[[t:.*]]: tensor<?x10xindex>
219
219
// CHECK: %[[alloc:.*]] = memref.alloc(%{{.*}}) : memref<?x10xindex, 4>
220
- // CHECK: memref.tensor_store %[[t]], %[[alloc]]
220
+ // CHECK: bufferization.materialize_in_destination %[[t]] in writable %[[alloc]]
221
221
// CHECK: %[[t2:.*]] = bufferization.to_tensor %[[alloc]] restrict writable
222
222
// CHECK: %[[inserted:.*]] = tensor.insert %{{.*}} into %[[t2]]
223
223
// CHECK: memref.dealloc %[[alloc]]
@@ -240,7 +240,7 @@ module attributes {transform.with_named_sequence} {
240
240
// CHECK-LABEL: func @scf_for_destination(
241
241
// CHECK-SAME: %[[t:.*]]: tensor<?x10xindex>
242
242
// CHECK: %[[alloc:.*]] = memref.alloc(%{{.*}}) : memref<?x10xindex, 4>
243
- // CHECK: memref.tensor_store %[[t]], %[[alloc]]
243
+ // CHECK: bufferization.materialize_in_destination %[[t]] in writable %[[alloc]]
244
244
// CHECK: %[[t2:.*]] = bufferization.to_tensor %[[alloc]] restrict writable
245
245
// CHECK: %[[for:.*]] = scf.for {{.*}} iter_args(%{{.*}} = %[[t2]])
246
246
// CHECK: memref.dealloc %[[alloc]]
0 commit comments