MLIR  21.0.0git
ComplexToLibm.h
Go to the documentation of this file.
1 //===- ComplexToLibm.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_COMPLEXTOLIBM_COMPLEXTOLIBM_H_
9 #define MLIR_CONVERSION_COMPLEXTOLIBM_COMPLEXTOLIBM_H_
10 
11 #include "mlir/Pass/Pass.h"
13 
14 namespace mlir {
15 template <typename T>
16 class OperationPass;
17 
18 #define GEN_PASS_DECL_CONVERTCOMPLEXTOLIBM
19 #include "mlir/Conversion/Passes.h.inc"
20 
21 /// Populate the given list with patterns that convert from Complex to Libm
22 /// calls.
24  PatternBenefit benefit);
25 
26 } // namespace mlir
27 
28 #endif // MLIR_CONVERSION_COMPLEXTOLIBM_COMPLEXTOLIBM_H_
Include the generated interface declarations.
const FrozenRewritePatternSet & patterns
void populateComplexToLibmConversionPatterns(RewritePatternSet &patterns, PatternBenefit benefit)
Populate the given list with patterns that convert from Complex to Libm calls.