MLIR  16.0.0git
Passes.h
Go to the documentation of this file.
1 //===- Passes.h - Pass Entrypoints ------------------------------*- 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 // This header file defines prototypes that expose pass constructors in the Func
10 // transformation library.
11 //
12 //===----------------------------------------------------------------------===//
13 
14 #ifndef MLIR_DIALECT_FUNC_TRANSFORMS_PASSES_H
15 #define MLIR_DIALECT_FUNC_TRANSFORMS_PASSES_H
16 
17 #include "mlir/IR/BuiltinOps.h"
18 #include "mlir/Pass/Pass.h"
19 
20 namespace mlir {
21 namespace bufferization {
22 class BufferizeTypeConverter;
23 } // namespace bufferization
24 
25 class RewritePatternSet;
26 
27 namespace func {
28 /// Creates an instance of func bufferization pass.
29 std::unique_ptr<Pass> createFuncBufferizePass();
30 
31 //===----------------------------------------------------------------------===//
32 // Registration
33 //===----------------------------------------------------------------------===//
34 
35 /// Generate the code for registering passes.
36 #define GEN_PASS_REGISTRATION
37 #include "mlir/Dialect/Func/Transforms/Passes.h.inc"
38 
39 } // namespace func
40 } // namespace mlir
41 
42 #endif // MLIR_DIALECT_FUNC_TRANSFORMS_PASSES_H
Include the generated interface declarations.
std::unique_ptr< Pass > createFuncBufferizePass()
Creates an instance of func bufferization pass.