MLIR  19.0.0git
ShapeToStandard.h
Go to the documentation of this file.
1 //===- ShapeToStandard.h - Conversion utils from shape to std dialect -----===//
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_SHAPETOSTANDARD_SHAPETOSTANDARD_H_
10 #define MLIR_CONVERSION_SHAPETOSTANDARD_SHAPETOSTANDARD_H_
11 
12 #include <memory>
13 
14 namespace mlir {
15 
16 class ModuleOp;
17 class Pass;
18 template <typename T>
19 class OperationPass;
20 class RewritePatternSet;
21 
22 #define GEN_PASS_DECL_CONVERTSHAPECONSTRAINTS
23 #define GEN_PASS_DECL_CONVERTSHAPETOSTANDARD
24 #include "mlir/Conversion/Passes.h.inc"
25 
26 void populateShapeToStandardConversionPatterns(RewritePatternSet &patterns);
27 
28 std::unique_ptr<OperationPass<ModuleOp>> createConvertShapeToStandardPass();
29 
31  RewritePatternSet &patterns);
32 
33 std::unique_ptr<Pass> createConvertShapeConstraintsPass();
34 
35 } // namespace mlir
36 
37 #endif // MLIR_CONVERSION_SHAPETOSTANDARD_SHAPETOSTANDARD_H_
Include the generated interface declarations.
void populateShapeToStandardConversionPatterns(RewritePatternSet &patterns)
std::unique_ptr< OperationPass< ModuleOp > > createConvertShapeToStandardPass()
std::unique_ptr< Pass > createConvertShapeConstraintsPass()
void populateConvertShapeConstraintsConversionPatterns(RewritePatternSet &patterns)