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 FuncOp; 17 class MLIRContext; 18 class ModuleOp; 19 template <typename T> 20 class OperationPass; 21 class OwningRewritePatternList; 22 23 void populateShapeToStandardConversionPatterns( 24 OwningRewritePatternList &patterns, MLIRContext *ctx); 25 26 std::unique_ptr<OperationPass<ModuleOp>> createConvertShapeToStandardPass(); 27 28 void populateConvertShapeConstraintsConversionPatterns( 29 OwningRewritePatternList &patterns, MLIRContext *ctx); 30 31 std::unique_ptr<OperationPass<FuncOp>> createConvertShapeConstraintsPass(); 32 33 } // namespace mlir 34 35 #endif // MLIR_CONVERSION_SHAPETOSTANDARD_SHAPETOSTANDARD_H_ 36