MLIR 22.0.0git
MathToROCDL.h
Go to the documentation of this file.
1//===- MathToROCDL.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_MATHTOROCDL_MATHTOROCDL_H_
9#define MLIR_CONVERSION_MATHTOROCDL_MATHTOROCDL_H_
10
14#include <memory>
15
16namespace mlir {
17class Pass;
18
19#define GEN_PASS_DECL_CONVERTMATHTOROCDL
20#include "mlir/Conversion/Passes.h.inc"
21
22/// Populate the given list with patterns that convert from Math to ROCDL calls.
23// `chipset` specifies the AMDGPU chipset to target. If `std::nullopt`,
24// none of the chipset dependent patterns are added.
26 const LLVMTypeConverter &converter, RewritePatternSet &patterns,
27 std::optional<amdgpu::Chipset> chipset);
28} // namespace mlir
29
30#endif // MLIR_CONVERSION_MATHTOROCDL_MATHTOROCDL_H_
The abstract base pass class.
Definition Pass.h:51
Include the generated interface declarations.
void populateMathToROCDLConversionPatterns(const LLVMTypeConverter &converter, RewritePatternSet &patterns, std::optional< amdgpu::Chipset > chipset)
Populate the given list with patterns that convert from Math to ROCDL calls.
const FrozenRewritePatternSet & patterns