MLIR-AIE 1.4.5.dev
SwapUnaryOpsPattern< UnaryOpA, UnaryOpB > Struct Template Reference
Inheritance diagram for SwapUnaryOpsPattern< UnaryOpA, UnaryOpB >:
Collaboration diagram for SwapUnaryOpsPattern< UnaryOpA, UnaryOpB >:

Public Types

using InferTypeB2AFnTy = std::function<Type(UnaryOpA aOp, UnaryOpB bOp)>

Public Member Functions

 SwapUnaryOpsPattern (MLIRContext *context, InferTypeB2AFnTy inferType)
LogicalResult matchAndRewrite (UnaryOpB bOp, PatternRewriter &rewriter) const override

Public Attributes

InferTypeB2AFnTy inferTypeB2A = nullptr

Detailed Description

template<class UnaryOpA, class UnaryOpB>
struct SwapUnaryOpsPattern< UnaryOpA, UnaryOpB >

Definition at line 200 of file VectorToVectorConversions.cpp.

Member Typedef Documentation

◆ InferTypeB2AFnTy

template<class UnaryOpA, class UnaryOpB>
using SwapUnaryOpsPattern< UnaryOpA, UnaryOpB >::InferTypeB2AFnTy = std::function<Type(UnaryOpA aOp, UnaryOpB bOp)>

Definition at line 204 of file VectorToVectorConversions.cpp.

Constructor & Destructor Documentation

◆ SwapUnaryOpsPattern()

template<class UnaryOpA, class UnaryOpB>
SwapUnaryOpsPattern< UnaryOpA, UnaryOpB >::SwapUnaryOpsPattern ( MLIRContext * context,
InferTypeB2AFnTy inferType )
inline

Definition at line 207 of file VectorToVectorConversions.cpp.

References inferTypeB2A.

Member Function Documentation

◆ matchAndRewrite()

template<class UnaryOpA, class UnaryOpB>
LogicalResult SwapUnaryOpsPattern< UnaryOpA, UnaryOpB >::matchAndRewrite ( UnaryOpB bOp,
PatternRewriter & rewriter ) const
inlineoverride

Definition at line 211 of file VectorToVectorConversions.cpp.

References inferTypeB2A.

Member Data Documentation

◆ inferTypeB2A

template<class UnaryOpA, class UnaryOpB>
InferTypeB2AFnTy SwapUnaryOpsPattern< UnaryOpA, UnaryOpB >::inferTypeB2A = nullptr

Definition at line 205 of file VectorToVectorConversions.cpp.

Referenced by matchAndRewrite(), and SwapUnaryOpsPattern().


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