MLIR  21.0.0git
MathToLibm.h
Go to the documentation of this file.
1 //===- MathToLibm.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_MATHTOLIBM_MATHTOLIBM_H_
9 #define MLIR_CONVERSION_MATHTOLIBM_MATHTOLIBM_H_
10 
11 #include "mlir/IR/PatternMatch.h"
12 #include "mlir/Pass/Pass.h"
13 
14 namespace mlir {
15 template <typename T>
16 class OperationPass;
17 
18 #define GEN_PASS_DECL_CONVERTMATHTOLIBMPASS
19 #include "mlir/Conversion/Passes.h.inc"
20 
21 /// Populate the given list with patterns that convert from Math to Libm calls.
22 /// If log1pBenefit is present, use it instead of benefit for the Log1p op.
23 void populateMathToLibmConversionPatterns(RewritePatternSet &patterns,
24  PatternBenefit benefit = 1);
25 
26 } // namespace mlir
27 
28 #endif // MLIR_CONVERSION_MATHTOLIBM_MATHTOLIBM_H_
Include the generated interface declarations.
void populateMathToLibmConversionPatterns(RewritePatternSet &patterns, PatternBenefit benefit=1)
Populate the given list with patterns that convert from Math to Libm calls.
Definition: MathToLibm.cpp:163
const FrozenRewritePatternSet & patterns