MLIR 22.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
12#include "mlir/Pass/Pass.h"
13
14namespace mlir {
15template <typename T>
16class 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.
24 PatternBenefit benefit = 1);
25
26} // namespace mlir
27
28#endif // MLIR_CONVERSION_MATHTOLIBM_MATHTOLIBM_H_
Pass to transform an operation of a specific type.
Definition Pass.h:356
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.
const FrozenRewritePatternSet & patterns