1 //===- ComplexToStandard.h - Utils to convert from the complex 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 #ifndef MLIR_CONVERSION_COMPLEXTOSTANDARD_COMPLEXTOSTANDARD_H_ 9 #define MLIR_CONVERSION_COMPLEXTOSTANDARD_COMPLEXTOSTANDARD_H_ 10 11 #include <memory> 12 13 namespace mlir { 14 class RewritePatternSet; 15 class Pass; 16 17 /// Populate the given list with patterns that convert from Complex to Standard. 18 void populateComplexToStandardConversionPatterns(RewritePatternSet &patterns); 19 20 /// Create a pass to convert Complex operations to the Standard dialect. 21 std::unique_ptr<Pass> createConvertComplexToStandardPass(); 22 23 } // namespace mlir 24 25 #endif // MLIR_CONVERSION_COMPLEXTOSTANDARD_COMPLEXTOSTANDARD_H_ 26