Loading [MathJax]/extensions/tex2jax.js
CIRCT 22.0.0git
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
AndRCat Class Reference
Inheritance diagram for AndRCat:
Inheritance graph
[legend]
Collaboration diagram for AndRCat:
Collaboration graph
[legend]

Public Member Functions

 AndRCat (MLIRContext *context)
 
bool handleConstant (mlir::PatternRewriter &rewriter, Operation *op, ConstantOp value, SmallVectorImpl< Value > &remaining) const override
 Handle a constant operand in the cat operation.
 
bool getIdentityValue () const override
 Return the unit value for this reduction operation:
 
- Public Member Functions inherited from ReductionCat
 ReductionCat (MLIRContext *context, llvm::StringLiteral opName)
 
LogicalResult matchAndRewrite (Operation *op, mlir::PatternRewriter &rewriter) const override
 

Detailed Description

Definition at line 1195 of file FIRRTLFolds.cpp.

Constructor & Destructor Documentation

◆ AndRCat()

AndRCat::AndRCat ( MLIRContext *  context)
inline

Definition at line 1197 of file FIRRTLFolds.cpp.

Member Function Documentation

◆ getIdentityValue()

bool AndRCat::getIdentityValue ( ) const
inlineoverridevirtual

Return the unit value for this reduction operation:

Implements ReductionCat.

Definition at line 1210 of file FIRRTLFolds.cpp.

◆ handleConstant()

bool AndRCat::handleConstant ( mlir::PatternRewriter &  rewriter,
Operation *  op,
ConstantOp  constantOp,
SmallVectorImpl< Value > &  remaining 
) const
inlineoverridevirtual

Handle a constant operand in the cat operation.

Returns true if the entire reduction can be replaced with a constant. May add non-zero constants to the remaining operands list.

Implements ReductionCat.

Definition at line 1199 of file FIRRTLFolds.cpp.


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