1 //===- TensorCopyInsertion.h - Resolve Bufferization Conflicts w/ Copies --===// 2 // 3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4 // See https://llvm.org/LICENSE.txt for license information. 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6 // 7 //===----------------------------------------------------------------------===// 8 9 #ifndef MLIR_DIALECT_BUFFERIZATION_TRANSFORMS_TENSORCOPYINSERTION_H 10 #define MLIR_DIALECT_BUFFERIZATION_TRANSFORMS_TENSORCOPYINSERTION_H 11 12 #include "mlir/IR/Operation.h" 13 14 namespace mlir { 15 namespace bufferization { 16 class AnalysisState; 17 struct OneShotBufferizationOptions; 18 19 LogicalResult insertTensorCopies(Operation *op, 20 const OneShotBufferizationOptions &options); 21 22 LogicalResult insertTensorCopies(Operation *op, const AnalysisState &state); 23 } // namespace bufferization 24 } // namespace mlir 25 26 #endif // MLIR_DIALECT_BUFFERIZATION_TRANSFORMS_TENSORCOPYINSERTION_H 27