CIRCT 22.0.0git
Loading...
Searching...
No Matches
Classes | Functions
circt::reduce Namespace Reference

Classes

struct  InnerSymbolUses
 A helper struct that scans a root operation and all its nested operations for InnerRefAttrs. More...
 

Functions

void pruneUnusedOps (Operation *initialOp, Reduction &reduction)
 Starting at the given op, traverse through it and its operands and erase operations that have no more uses.
 

Function Documentation

◆ pruneUnusedOps()

void circt::reduce::pruneUnusedOps ( Operation *  initialOp,
Reduction reduction 
)

Starting at the given op, traverse through it and its operands and erase operations that have no more uses.

Definition at line 18 of file ReductionUtils.cpp.

References circt::Reduction::notifyOpErased().

Referenced by HWOperandForwarder< OpNum >::rewrite(), and HWConstantifier::rewriteMatches().