MLIR 22.0.0git
MathToLLVM.h
Go to the documentation of this file.
1//===- MathToLLVM.h - Math to LLVM dialect conversion -----------*- C++ -*-===//
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
9#ifndef MLIR_CONVERSION_MATHTOLLVM_MATHTOLLVM_H
10#define MLIR_CONVERSION_MATHTOLLVM_MATHTOLLVM_H
11
13#include <memory>
14
15namespace mlir {
16
17class DialectRegistry;
20class Pass;
21
22#define GEN_PASS_DECL_CONVERTMATHTOLLVMPASS
23#include "mlir/Conversion/Passes.h.inc"
24
25void populateMathToLLVMConversionPatterns(const LLVMTypeConverter &converter,
26 RewritePatternSet &patterns,
27 bool approximateLog1p = true,
28 PatternBenefit benefit = 1);
29
30void registerConvertMathToLLVMInterface(DialectRegistry &registry);
31
32} // namespace mlir
33
34#endif // MLIR_CONVERSION_MATHTOLLVM_MATHTOLLVM_H
The DialectRegistry maps a dialect namespace to a constructor for the matching dialect.
Conversion from types to the LLVM IR dialect.
The abstract base pass class.
Definition Pass.h:51
Include the generated interface declarations.
void populateMathToLLVMConversionPatterns(const LLVMTypeConverter &converter, RewritePatternSet &patterns, bool approximateLog1p=true, PatternBenefit benefit=1)
const FrozenRewritePatternSet & patterns
void registerConvertMathToLLVMInterface(DialectRegistry &registry)