CIRCT 22.0.0git
|
Classes | |
struct | InnerSymbolUses |
A helper struct that scans a root operation and all its nested operations for InnerRefAttr s. 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. | |
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().