MLIR  21.0.0git
ComplexToStandard.h
Go to the documentation of this file.
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 
12 #include "mlir/Pass/Pass.h"
13 #include <memory>
14 
15 namespace mlir {
16 class RewritePatternSet;
17 class Pass;
18 
19 #define GEN_PASS_DECL_CONVERTCOMPLEXTOSTANDARDPASS
20 #include "mlir/Conversion/Passes.h.inc"
21 
22 /// Populate the given list with patterns that convert from Complex to Standard.
25  mlir::complex::ComplexRangeFlags complexRange =
26  mlir::complex::ComplexRangeFlags::improved);
27 
28 } // namespace mlir
29 
30 #endif // MLIR_CONVERSION_COMPLEXTOSTANDARD_COMPLEXTOSTANDARD_H_
Include the generated interface declarations.
void populateComplexToStandardConversionPatterns(RewritePatternSet &patterns, mlir::complex::ComplexRangeFlags complexRange=mlir::complex::ComplexRangeFlags::improved)
Populate the given list with patterns that convert from Complex to Standard.
const FrozenRewritePatternSet & patterns