CIRCT 23.0.0git
Loading...
Searching...
No Matches
Public Member Functions | List of all members
IMDCEPortReduction Struct Reference
Inheritance diagram for IMDCEPortReduction:
Inheritance graph
[legend]
Collaboration diagram for IMDCEPortReduction:
Collaboration graph
[legend]

Public Member Functions

 IMDCEPortReduction (MLIRContext *context)
 
std::string getName () const override
 Return a human-readable name for this reduction pattern.
 
- Public Member Functions inherited from circt::PassReduction
 PassReduction (MLIRContext *context, std::unique_ptr< Pass > pass, bool canIncreaseSize=false, bool oneShot=false)
 
uint64_t match (Operation *op) override
 Check if the reduction can apply to a specific operation.
 
LogicalResult rewrite (Operation *op) override
 Apply the reduction to a specific operation.
 
std::string getName () const override
 Return a human-readable name for this reduction pattern.
 
bool acceptSizeIncrease () const override
 Return true if the tool should accept the transformation this reduction performs on the module even if the overall size of the output increases.
 
bool isOneShot () const override
 Return true if the tool should not try to reapply this reduction after it has been successful.
 
- Public Member Functions inherited from circt::Reduction
virtual ~Reduction ()
 
virtual void beforeReduction (mlir::ModuleOp)
 Called before the reduction is applied to a new subset of operations.
 
virtual void afterReduction (mlir::ModuleOp)
 Called after the reduction has been applied to a subset of operations.
 
virtual void matches (Operation *op, llvm::function_ref< void(uint64_t, uint64_t)> addMatch)
 Collect all ways how this reduction can apply to a specific operation.
 
virtual LogicalResult rewriteMatches (Operation *op, ArrayRef< uint64_t > matches)
 Apply a set of matches of this reduction to a specific operation.
 
void notifyOpErased (Operation *op)
 

Additional Inherited Members

- Public Attributes inherited from circt::Reduction
std::function< void(Operation *)> notifyOpErasedCallback = nullptr
 An optional callback for reductions to communicate removal of operations.
 
- Protected Attributes inherited from circt::PassReduction
MLIRContext *const context
 
std::unique_ptr< mlir::PassManager > pm
 
StringRef passName
 
bool canIncreaseSize
 
bool oneShot
 

Detailed Description

Definition at line 2666 of file FIRRTLReductions.cpp.

Constructor & Destructor Documentation

◆ IMDCEPortReduction()

IMDCEPortReduction::IMDCEPortReduction ( MLIRContext *  context)
inline

Definition at line 2667 of file FIRRTLReductions.cpp.

Member Function Documentation

◆ getName()

std::string IMDCEPortReduction::getName ( ) const
inlineoverridevirtual

Return a human-readable name for this reduction pattern.

Implements circt::Reduction.

Definition at line 2671 of file FIRRTLReductions.cpp.


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