MLIR 23.0.0git
MathToNVVM.h
Go to the documentation of this file.
1//===- MathToNVVM.h - Utils to convert from the Math dialect to NVVM -----===//
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_MATHTONVVM_MATHTONVVM_H_
9#define MLIR_CONVERSION_MATHTONVVM_MATHTONVVM_H_
10
13
14namespace mlir {
15class Pass;
16
17#define GEN_PASS_DECL_CONVERTMATHTONVVM
18#include "mlir/Conversion/Passes.h.inc"
19
20/// Populate the given list with patterns that convert from Math to NVVM
21/// libdevice calls.
22void populateLibDeviceConversionPatterns(const LLVMTypeConverter &converter,
23 RewritePatternSet &patterns,
24 PatternBenefit benefit = 1);
25} // namespace mlir
26
27#endif // MLIR_CONVERSION_MATHTONVVM_MATHTONVVM_H_
The abstract base pass class.
Definition Pass.h:52
Include the generated interface declarations.
void populateLibDeviceConversionPatterns(const LLVMTypeConverter &converter, RewritePatternSet &patterns, PatternBenefit benefit=1)
Populate the given list with patterns that convert from Math to NVVM libdevice calls.