1 //===- BufferViewFlowOpInterface.h - Buffer View Flow Analysis --*- C++ -*-===// 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_IR_BUFFERVIEWFLOWOPINTERFACE_H_ 10 #define MLIR_DIALECT_BUFFERIZATION_IR_BUFFERVIEWFLOWOPINTERFACE_H_ 11 12 #include "mlir/IR/OpDefinition.h" 13 #include "mlir/Support/LLVM.h" 14 15 namespace mlir { 16 class ValueRange; 17 18 namespace bufferization { 19 20 using RegisterDependenciesFn = std::function<void(ValueRange, ValueRange)>; 21 22 } // namespace bufferization 23 } // namespace mlir 24 25 #include "mlir/Dialect/Bufferization/IR/BufferViewFlowOpInterface.h.inc" 26 27 #endif // MLIR_DIALECT_BUFFERIZATION_IR_BUFFERVIEWFLOWOPINTERFACE_H_ 28