CIRCT 24.0.0git
Loading...
Searching...
No Matches
OrRCat Class Reference
Inheritance diagram for OrRCat:
Collaboration diagram for OrRCat:

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:
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 1244 of file FIRRTLFolds.cpp.

Constructor & Destructor Documentation

◆ OrRCat()

OrRCat::OrRCat ( MLIRContext * context)
inline

Definition at line 1246 of file FIRRTLFolds.cpp.

References context, and ReductionCat::ReductionCat().

Member Function Documentation

◆ getIdentityValue()

bool OrRCat::getIdentityValue ( ) const
inlineoverridevirtual

Return the unit value for this reduction operation:

Implements ReductionCat.

Definition at line 1259 of file FIRRTLFolds.cpp.

◆ handleConstant()

bool OrRCat::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 1248 of file FIRRTLFolds.cpp.

References replaceOpWithNewOpAndCopyName().


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