MLIR
20.0.0git
|
#include "mlir/Conversion/ArithToAMDGPU/ArithToAMDGPU.h"
#include "mlir/Dialect/AMDGPU/IR/AMDGPUDialect.h"
#include "mlir/Dialect/AMDGPU/Utils/Chipset.h"
#include "mlir/Dialect/Arith/IR/Arith.h"
#include "mlir/Dialect/Arith/Utils/Utils.h"
#include "mlir/Dialect/LLVMIR/LLVMDialect.h"
#include "mlir/Dialect/LLVMIR/ROCDLDialect.h"
#include "mlir/Dialect/Vector/IR/VectorOps.h"
#include "mlir/IR/BuiltinTypes.h"
#include "mlir/IR/PatternMatch.h"
#include "mlir/IR/TypeUtilities.h"
#include "mlir/Pass/Pass.h"
#include "mlir/Transforms/GreedyPatternRewriteDriver.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_ARITHTOAMDGPUCONVERSIONPASS |
Functions | |
static Value | castF32To (Type elementType, Value f32, Location loc, PatternRewriter &rewriter) |
static Value | castToF32 (Value value, Location loc, PatternRewriter &rewriter) |
static Value | clampInput (PatternRewriter &rewriter, Location loc, Type outElemType, Value source) |
#define GEN_PASS_DEF_ARITHTOAMDGPUCONVERSIONPASS |
Definition at line 25 of file ArithToAMDGPU.cpp.
|
static |
Definition at line 71 of file ArithToAMDGPU.cpp.
References mlir::OpBuilder::create(), mlir::Type::getIntOrFloatBitWidth(), and mlir::Type::isF32().
|
static |
Definition at line 148 of file ArithToAMDGPU.cpp.
References mlir::OpBuilder::create(), mlir::Builder::getF32Type(), mlir::Type::getIntOrFloatBitWidth(), mlir::Value::getType(), and mlir::Type::isF32().
|
static |
Definition at line 164 of file ArithToAMDGPU.cpp.
References mlir::OpBuilder::create(), mlir::OpBuilder::createOrFold(), mlir::createScalarOrSplatConstant(), mlir::getElementTypeOrSelf(), mlir::Value::getType(), max(), and min().