MLIR 22.0.0git
MathToROCDL.cpp File Reference

Go to the source code of this file.

Classes

class  mlir::impl::ConvertMathToROCDLBase< DerivedT >
struct  ClampFOpConversion
struct  ConvertMathToROCDLPass

Namespaces

namespace  mlir
 Include the generated interface declarations.
namespace  mlir::impl
 Attribute collections provide a dictionary-like interface.

Macros

#define GEN_PASS_DEF_CONVERTMATHTOROCDL
#define DEBUG_TYPE   "math-to-rocdl"

Functions

std::unique_ptr<::mlir::Passmlir::impl::createConvertMathToROCDL ()
std::unique_ptr<::mlir::Passmlir::impl::createConvertMathToROCDL (ConvertMathToROCDLOptions options)
std::unique_ptr<::mlir::Passmlir::createConvertMathToROCDL ()
std::unique_ptr<::mlir::Passmlir::createConvertMathToROCDL (ConvertMathToROCDLOptions options)
template<typename OpTy>
static void populateOpPatterns (const LLVMTypeConverter &converter, RewritePatternSet &patterns, StringRef f32Func, StringRef f64Func, StringRef f16Func, StringRef f32ApproxFunc="")

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "math-to-rocdl"

Definition at line 36 of file MathToROCDL.cpp.

◆ GEN_PASS_DEF_CONVERTMATHTOROCDL

#define GEN_PASS_DEF_CONVERTMATHTOROCDL

Definition at line 30 of file MathToROCDL.cpp.

Function Documentation

◆ populateOpPatterns()

template<typename OpTy>
void populateOpPatterns ( const LLVMTypeConverter & converter,
RewritePatternSet & patterns,
StringRef f32Func,
StringRef f64Func,
StringRef f16Func,
StringRef f32ApproxFunc = "" )
static

Definition at line 39 of file MathToROCDL.cpp.

References mlir::patterns.

Referenced by mlir::populateMathToROCDLConversionPatterns().