Differential D138915 Diff 479618 mlir/test/Dialect/Bufferization/Transforms/tensor-copy-insertion.mlir
Changeset View
Changeset View
Standalone View
Standalone View
mlir/test/Dialect/Bufferization/Transforms/tensor-copy-insertion.mlir
// RUN: mlir-opt %s -tensor-copy-insertion -split-input-file | FileCheck %s | // RUN: mlir-opt %s -test-tensor-copy-insertion -split-input-file | FileCheck %s | ||||
// RUN: mlir-opt %s -tensor-copy-insertion="bufferize-function-boundaries allow-return-allocs" -split-input-file | FileCheck %s --check-prefix=CHECK-FUNC | // RUN: mlir-opt %s -test-tensor-copy-insertion="bufferize-function-boundaries allow-return-allocs" -split-input-file | FileCheck %s --check-prefix=CHECK-FUNC | ||||
// RUN: mlir-opt %s -tensor-copy-insertion="create-deallocs=0" -split-input-file | FileCheck %s --check-prefix=CHECK-NO-DEALLOC | // RUN: mlir-opt %s -test-tensor-copy-insertion="create-deallocs=0" -split-input-file | FileCheck %s --check-prefix=CHECK-NO-DEALLOC | ||||
// CHECK-LABEL: func @read_after_write_conflict( | // CHECK-LABEL: func @read_after_write_conflict( | ||||
// CHECK-SAME: %[[t:.*]]: tensor<?xf32> | // CHECK-SAME: %[[t:.*]]: tensor<?xf32> | ||||
// CHECK-FUNC-LABEL: func @read_after_write_conflict( | // CHECK-FUNC-LABEL: func @read_after_write_conflict( | ||||
// CHECK-NO-DEALLOC-LABEL: func @read_after_write_conflict( | // CHECK-NO-DEALLOC-LABEL: func @read_after_write_conflict( | ||||
func.func @read_after_write_conflict(%t: tensor<?xf32>, %idx: index, %f: f32) | func.func @read_after_write_conflict(%t: tensor<?xf32>, %idx: index, %f: f32) | ||||
-> (tensor<?xf32>, tensor<?xf32>) | -> (tensor<?xf32>, tensor<?xf32>) | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 76 Lines • Show Last 20 Lines |