CIRCT 22.0.0git
|
Public Member Functions | |
OrRCat (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: | |
![]() | |
ReductionCat (MLIRContext *context, llvm::StringLiteral opName) | |
LogicalResult | matchAndRewrite (Operation *op, mlir::PatternRewriter &rewriter) const override |
Definition at line 1177 of file FIRRTLFolds.cpp.
|
inline |
Definition at line 1179 of file FIRRTLFolds.cpp.
|
inlineoverridevirtual |
Return the unit value for this reduction operation:
Implements ReductionCat.
Definition at line 1192 of file FIRRTLFolds.cpp.
|
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 1181 of file FIRRTLFolds.cpp.