MLIR 24.0.0git
ArithToAMDGPU.cpp File Reference

Go to the source code of this file.

Classes

class  mlir::impl::ArithToAMDGPUConversionPassBase< DerivedT >

Namespaces

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

Macros

#define GEN_PASS_DEF_ARITHTOAMDGPUCONVERSIONPASS

Functions

std::unique_ptr<::mlir::Pass > mlir::impl::createArithToAMDGPUConversionPass ()
std::unique_ptr<::mlir::Pass > mlir::impl::createArithToAMDGPUConversionPass (ArithToAMDGPUConversionPassOptions options)
std::unique_ptr<::mlir::Pass > mlir::createArithToAMDGPUConversionPass ()
std::unique_ptr<::mlir::Pass > mlir::createArithToAMDGPUConversionPass (ArithToAMDGPUConversionPassOptions options)
static bool isSupportedF8 (Type elementType, const ROCDL::TargetInfo &target)
static Value castF32To (Type desType, 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)
static Value getOriginalVectorValue (Value value)
 Get the broadcasted / splatted value for a chain of ops.

Macro Definition Documentation

◆ GEN_PASS_DEF_ARITHTOAMDGPUCONVERSIONPASS

#define GEN_PASS_DEF_ARITHTOAMDGPUCONVERSIONPASS

Definition at line 27 of file ArithToAMDGPU.cpp.

Function Documentation

◆ castF32To()

Value castF32To ( Type desType,
Value f32,
Location loc,
PatternRewriter & rewriter )
static

◆ castToF32()

◆ clampInput()

Value clampInput ( PatternRewriter & rewriter,
Location loc,
Type outElemType,
Value source )
static

◆ getOriginalVectorValue()

Value getOriginalVectorValue ( Value value)
static

Get the broadcasted / splatted value for a chain of ops.

Definition at line 422 of file ArithToAMDGPU.cpp.

References mlir::Value::getDefiningOp().

◆ isSupportedF8()

bool isSupportedF8 ( Type elementType,
const ROCDL::TargetInfo & target )
static

Definition at line 94 of file ArithToAMDGPU.cpp.

References target.