MLIR-AIE
Public Types | Public Member Functions | Public Attributes | List of all members
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 333 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 337 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 340 of file VectorToVectorConversions.cpp.

Member Function Documentation

◆ matchAndRewrite()

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

Member Data Documentation

◆ inferTypeB2A

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

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