|
CIRCT 24.0.0git
|


Public Member Functions | |
| ReductionCat (MLIRContext *context, llvm::StringLiteral opName) | |
| virtual bool | handleConstant (mlir::PatternRewriter &rewriter, Operation *op, ConstantOp constantOp, SmallVectorImpl< Value > &remaining) const =0 |
| Handle a constant operand in the cat operation. | |
| virtual bool | getIdentityValue () const =0 |
| Return the unit value for this reduction operation: | |
| LogicalResult | matchAndRewrite (Operation *op, mlir::PatternRewriter &rewriter) const override |
Definition at line 1181 of file FIRRTLFolds.cpp.
|
inline |
Definition at line 1183 of file FIRRTLFolds.cpp.
References context.
Referenced by AndRCat::AndRCat(), OrRCat::OrRCat(), and XorRCat::XorRCat().
|
pure virtual |
Return the unit value for this reduction operation:
Implemented in AndRCat, OrRCat, and XorRCat.
Referenced by matchAndRewrite().
|
pure virtual |
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.
Implemented in AndRCat, OrRCat, and XorRCat.
Referenced by matchAndRewrite().
|
inlineoverride |
Definition at line 1197 of file FIRRTLFolds.cpp.
References failure(), getIdentityValue(), handleConstant(), replaceOpWithNewOpAndCopyName(), and success().