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 void populateShapeToStandardConversionPatterns(RewritePatternSet &patterns);
23 
24 std::unique_ptr<OperationPass<ModuleOp>> createConvertShapeToStandardPass();
25 
26 void populateConvertShapeConstraintsConversionPatterns(
27     RewritePatternSet &patterns);
28 
29 std::unique_ptr<Pass> createConvertShapeConstraintsPass();
30 
31 } // namespace mlir
32 
33 #endif // MLIR_CONVERSION_SHAPETOSTANDARD_SHAPETOSTANDARD_H_
34