MLIR  20.0.0git
Namespaces | Macros | Functions
MathToROCDL.cpp File Reference
#include "mlir/Conversion/MathToROCDL/MathToROCDL.h"
#include "mlir/Conversion/LLVMCommon/LoweringOptions.h"
#include "mlir/Conversion/LLVMCommon/TypeConverter.h"
#include "mlir/Dialect/Func/IR/FuncOps.h"
#include "mlir/Dialect/LLVMIR/LLVMDialect.h"
#include "mlir/Dialect/LLVMIR/ROCDLDialect.h"
#include "mlir/Dialect/Math/IR/Math.h"
#include "mlir/Dialect/Utils/IndexingUtils.h"
#include "mlir/Dialect/Vector/IR/VectorOps.h"
#include "mlir/IR/BuiltinDialect.h"
#include "mlir/IR/PatternMatch.h"
#include "mlir/Pass/Pass.h"
#include "mlir/Transforms/DialectConversion.h"
#include "../GPUCommon/GPUOpsLowering.h"
#include "../GPUCommon/IndexIntrinsicsOpLowering.h"
#include "../GPUCommon/OpToFuncCallLowering.h"
#include "mlir/Conversion/GPUCommon/GPUCommonPass.h"
#include "mlir/Conversion/Passes.h.inc"

Go to the source code of this file.

Namespaces

 mlir
 Include the generated interface declarations.
 

Macros

#define GEN_PASS_DEF_CONVERTMATHTOROCDL
 
#define DEBUG_TYPE   "math-to-rocdl"
 
#define DBGS()   (llvm::dbgs() << "[" DEBUG_TYPE "]: ")
 

Functions

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

Macro Definition Documentation

◆ DBGS

#define DBGS ( )    (llvm::dbgs() << "[" DEBUG_TYPE "]: ")

Definition at line 36 of file MathToROCDL.cpp.

◆ DEBUG_TYPE

#define DEBUG_TYPE   "math-to-rocdl"

Definition at line 35 of file MathToROCDL.cpp.

◆ GEN_PASS_DEF_CONVERTMATHTOROCDL

#define GEN_PASS_DEF_CONVERTMATHTOROCDL

Definition at line 29 of file MathToROCDL.cpp.

Function Documentation

◆ populateOpPatterns()

template<typename OpTy >
static 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::RewritePatternSet::add().