LLZK 3.0.0
An open-source IR for Zero Knowledge (ZK) circuits
Loading...
Searching...
No Matches
llzk::polymorphic::detail::FromEraseSet Class Reference

Removes parameterized definitions whose instantiated replacements now cover every remaining use. More...

#include <SharedImpl.h>

Inheritance diagram for llzk::polymorphic::detail::FromEraseSet:
[legend]
Collaboration diagram for llzk::polymorphic::detail::FromEraseSet:
[legend]

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 SymbolDefTreedefTree
const SymbolUseGraphuseGraph

Detailed Description

Removes parameterized definitions whose instantiated replacements now cover every remaining use.

Definition at line 86 of file SharedImpl.h.

Constructor & Destructor Documentation

◆ FromEraseSet()

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.

Member Function Documentation

◆ eraseUnusedDefinitions()

mlir::LogicalResult llzk::polymorphic::detail::FromEraseSet::eraseUnusedDefinitions ( )

Definition at line 86 of file SharedImpl.cpp.

◆ getTryToEraseSet()

const llvm::DenseSet< mlir::SymbolOpInterface > & llzk::polymorphic::detail::FromEraseSet::getTryToEraseSet ( ) const
inline

Definition at line 96 of file SharedImpl.h.


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