MLIR 23.0.0git
MathToXeVM.h
Go to the documentation of this file.
1//===- MathToXeVM.h - Utils for converting Math to XeVM -------------------===//
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_MATHTOXEVM_MATHTOXEVM_H_
9#define MLIR_CONVERSION_MATHTOXEVM_MATHTOXEVM_H_
10
14#include <memory>
15
16namespace mlir {
17class Pass;
18
19#define GEN_PASS_DECL_CONVERTMATHTOXEVM
20#include "mlir/Conversion/Passes.h.inc"
21
22/// Populate the given list with patterns that convert from Math to XeVM calls.
23void populateMathToXeVMConversionPatterns(RewritePatternSet &patterns,
24 bool convertArith,
25 PatternBenefit benefit = 1);
26
27/// Populate the given list with patterns that convert from Math to OCL LLVM-SPV
28/// builtin calls.
30 const LLVMTypeConverter &converter, RewritePatternSet &patterns,
31 PatternBenefit benefit = 1);
32} // namespace mlir
33
34#endif // MLIR_CONVERSION_MATHTOXEVM_MATHTOXEVM_H_
The abstract base pass class.
Definition Pass.h:52
Include the generated interface declarations.
void populateMathToScalarOCLExtSetConversionPatterns(const LLVMTypeConverter &converter, RewritePatternSet &patterns, PatternBenefit benefit=1)
Populate the given list with patterns that convert from Math to OCL LLVM-SPV builtin calls.
void populateMathToXeVMConversionPatterns(RewritePatternSet &patterns, bool convertArith, PatternBenefit benefit=1)
Populate the given list with patterns that convert from Math to XeVM calls.