1 //===- BufferizationToMemRef.h - Bufferization to MemRef conversion -------===// 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_CONVERSION_BUFFERIZATIONTOMEMREF_BUFFERIZATIONTOMEMREF_H 10 #define MLIR_CONVERSION_BUFFERIZATIONTOMEMREF_BUFFERIZATIONTOMEMREF_H 11 12 #include <memory> 13 14 namespace mlir { 15 class Pass; 16 class RewritePatternSet; 17 18 /// Collect a set of patterns to convert memory-related operations from the 19 /// Bufferization dialect to the MemRef dialect. 20 void populateBufferizationToMemRefConversionPatterns( 21 RewritePatternSet &patterns); 22 23 std::unique_ptr<Pass> createBufferizationToMemRefPass(); 24 } // namespace mlir 25 26 #endif // MLIR_CONVERSION_BUFFERIZATIONTOMEMREF_BUFFERIZATIONTOMEMREF_H 27