MLIR-AIE 1.4.6.dev
LowerVectorIntToFPI16BF16AIE2pPattern< SrcOpTy > Struct Template Reference
Inheritance diagram for LowerVectorIntToFPI16BF16AIE2pPattern< SrcOpTy >:
Collaboration diagram for LowerVectorIntToFPI16BF16AIE2pPattern< SrcOpTy >:

Public Types

using OpAdaptor = typename SrcOpTy::Adaptor

Public Member Functions

 LowerVectorIntToFPI16BF16AIE2pPattern (MLIRContext *context, bool accumulatorAdd, PatternBenefit benefit)
Value emitMagicSiToFp (ConversionPatternRewriter &rewriter, Location loc, Value srcI16, unsigned lanes) const
LogicalResult matchAndRewrite (SrcOpTy op, OpAdaptor adaptor, ConversionPatternRewriter &rewriter) const override

Public Attributes

bool accumulatorAdd

Static Public Attributes

static constexpr bool isSigned = std::is_same_v<SrcOpTy, arith::SIToFPOp>

Detailed Description

template<typename SrcOpTy>
struct LowerVectorIntToFPI16BF16AIE2pPattern< SrcOpTy >

Definition at line 3900 of file VectorToAIEVecConversions.cpp.

Member Typedef Documentation

◆ OpAdaptor

template<typename SrcOpTy>
using LowerVectorIntToFPI16BF16AIE2pPattern< SrcOpTy >::OpAdaptor = typename SrcOpTy::Adaptor

Definition at line 3901 of file VectorToAIEVecConversions.cpp.

Constructor & Destructor Documentation

◆ LowerVectorIntToFPI16BF16AIE2pPattern()

template<typename SrcOpTy>
LowerVectorIntToFPI16BF16AIE2pPattern< SrcOpTy >::LowerVectorIntToFPI16BF16AIE2pPattern ( MLIRContext * context,
bool accumulatorAdd,
PatternBenefit benefit )
inline

Definition at line 3906 of file VectorToAIEVecConversions.cpp.

Member Function Documentation

◆ emitMagicSiToFp()

template<typename SrcOpTy>
Value LowerVectorIntToFPI16BF16AIE2pPattern< SrcOpTy >::emitMagicSiToFp ( ConversionPatternRewriter & rewriter,
Location loc,
Value srcI16,
unsigned lanes ) const
inline

◆ matchAndRewrite()

template<typename SrcOpTy>
LogicalResult LowerVectorIntToFPI16BF16AIE2pPattern< SrcOpTy >::matchAndRewrite ( SrcOpTy op,
OpAdaptor adaptor,
ConversionPatternRewriter & rewriter ) const
inlineoverride

Definition at line 3965 of file VectorToAIEVecConversions.cpp.

Member Data Documentation

◆ accumulatorAdd

template<typename SrcOpTy>
bool LowerVectorIntToFPI16BF16AIE2pPattern< SrcOpTy >::accumulatorAdd

Definition at line 3912 of file VectorToAIEVecConversions.cpp.

◆ isSigned

template<typename SrcOpTy>
bool LowerVectorIntToFPI16BF16AIE2pPattern< SrcOpTy >::isSigned = std::is_same_v<SrcOpTy, arith::SIToFPOp>
staticconstexpr

Definition at line 3902 of file VectorToAIEVecConversions.cpp.


The documentation for this struct was generated from the following file: