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