|
LLZK 3.0.0
An open-source IR for Zero Knowledge (ZK) circuits
|
Removes parameterized definitions whose instantiated replacements now cover every remaining use. More...
#include <SharedImpl.h>
Public Member Functions | |
| FromEraseSet (mlir::ModuleOp root, const SymbolDefTree &symDefTree, const SymbolUseGraph &symUseGraph, llvm::DenseSet< mlir::SymbolRefAttr > &&tryToErasePaths) | |
| Note: paths in tryToErase should be relative to root. | |
| mlir::LogicalResult | eraseUnusedDefinitions () |
| const llvm::DenseSet< mlir::SymbolOpInterface > & | getTryToEraseSet () const |
| Public Member Functions inherited from llzk::polymorphic::detail::CleanupBase | |
| CleanupBase (mlir::ModuleOp root, const SymbolDefTree &symDefTree, const SymbolUseGraph &symUseGraph) | |
Additional Inherited Members | |
| Public Attributes inherited from llzk::polymorphic::detail::CleanupBase | |
| mlir::SymbolTableCollection | tables |
| Protected Attributes inherited from llzk::polymorphic::detail::CleanupBase | |
| mlir::ModuleOp | rootMod |
| const SymbolDefTree & | defTree |
| const SymbolUseGraph & | useGraph |
Removes parameterized definitions whose instantiated replacements now cover every remaining use.
Definition at line 86 of file SharedImpl.h.
| llzk::polymorphic::detail::FromEraseSet::FromEraseSet | ( | mlir::ModuleOp | root, |
| const SymbolDefTree & | symDefTree, | ||
| const SymbolUseGraph & | symUseGraph, | ||
| llvm::DenseSet< mlir::SymbolRefAttr > && | tryToErasePaths ) |
Note: paths in tryToErase should be relative to root.
Definition at line 61 of file SharedImpl.cpp.
| mlir::LogicalResult llzk::polymorphic::detail::FromEraseSet::eraseUnusedDefinitions | ( | ) |
Definition at line 86 of file SharedImpl.cpp.
|
inline |
Definition at line 96 of file SharedImpl.h.