MLIR  19.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 #ifndef MLIR_DIALECT_VECTOR_TRANSFORMS_PASSES_H_
10 #define MLIR_DIALECT_VECTOR_TRANSFORMS_PASSES_H_
11 
13 #include "mlir/Pass/Pass.h"
14 
15 namespace mlir {
16 namespace vector {
17 #define GEN_PASS_DECL
18 #include "mlir/Dialect/Vector/Transforms/Passes.h.inc"
19 
20 /// Creates an instance of the `vector` dialect bufferization pass.
21 std::unique_ptr<Pass> createVectorBufferizePass();
22 
23 /// Creates an instance of the `vector.mask` lowering pass.
24 std::unique_ptr<Pass> createLowerVectorMaskPass();
25 
26 /// Creates an instance of the `vector.multi_reduction` lowering pass.
28  VectorMultiReductionLowering option =
29  VectorMultiReductionLowering::InnerParallel);
30 
31 //===----------------------------------------------------------------------===//
32 // Registration
33 //===----------------------------------------------------------------------===//
34 
35 /// Generate the code for registering passes.
36 #define GEN_PASS_REGISTRATION
37 #include "mlir/Dialect/Vector/Transforms/Passes.h.inc"
38 } // namespace vector
39 } // namespace mlir
40 
41 #endif // MLIR_DIALECT_VECTOR_TRANSFORMS_PASSES_H_
std::unique_ptr< Pass > createLowerVectorMultiReductionPass(VectorMultiReductionLowering option=VectorMultiReductionLowering::InnerParallel)
Creates an instance of the vector.multi_reduction lowering pass.
std::unique_ptr< Pass > createLowerVectorMaskPass()
Creates an instance of the vector.mask lowering pass.
std::unique_ptr< Pass > createVectorBufferizePass()
Creates an instance of the vector dialect bufferization pass.
Definition: Bufferize.cpp:53
Include the generated interface declarations.