MLIR 22.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::Passmlir::impl::createArithToAMDGPUConversionPass ()
std::unique_ptr<::mlir::Passmlir::impl::createArithToAMDGPUConversionPass (ArithToAMDGPUConversionPassOptions options)
std::unique_ptr<::mlir::Passmlir::createArithToAMDGPUConversionPass ()
std::unique_ptr<::mlir::Passmlir::createArithToAMDGPUConversionPass (ArithToAMDGPUConversionPassOptions options)
static bool isSupportedF8 (Type elementType, Chipset chipset)
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 28 of file ArithToAMDGPU.cpp.

Function Documentation

◆ castF32To()

◆ 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 423 of file ArithToAMDGPU.cpp.

References mlir::Value::getDefiningOp().

◆ isSupportedF8()

bool isSupportedF8 ( Type elementType,
Chipset chipset )
static

Definition at line 99 of file ArithToAMDGPU.cpp.

References mlir::amdgpu::hasOcpFp8(), and kGfx942.