MLIR
24.0.0git
include
mlir
Conversion
MathToROCDL
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
11
#include "
mlir/Conversion/LLVMCommon/TypeConverter.h
"
12
#include "
mlir/Dialect/LLVMIR/ROCDLTargetInfo.h
"
13
#include "
mlir/IR/PatternMatch.h
"
14
#include <memory>
15
16
namespace
mlir
{
17
class
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
// `target` describes the AMDGPU target. If `std::nullopt`, none of the
24
// target-dependent patterns are added.
25
void
populateMathToROCDLConversionPatterns
(
26
const
LLVMTypeConverter &converter, RewritePatternSet &patterns,
27
std::optional<ROCDL::TargetInfo>
target
);
28
}
// namespace mlir
29
30
#endif
// MLIR_CONVERSION_MATHTOROCDL_MATHTOROCDL_H_
TypeConverter.h
target
target
Definition
LinalgTransformOps.cpp:2157
PatternMatch.h
ROCDLTargetInfo.h
mlir::Pass
The abstract base pass class.
Definition
Pass.h:52
mlir
Include the generated interface declarations.
Definition
ABIRewriteContext.h:32
mlir::populateMathToROCDLConversionPatterns
void populateMathToROCDLConversionPatterns(const LLVMTypeConverter &converter, RewritePatternSet &patterns, std::optional< ROCDL::TargetInfo > target)
Populate the given list with patterns that convert from Math to ROCDL calls.
Definition
MathToROCDL.cpp:86
Generated on
for MLIR by
1.14.0