CIRCT 21.0.0git
|
A utility doing lazy construction of SymbolTable
s and SymbolUserMap
s, which is handy for reductions that need to look up a lot of symbols.
More...
Public Member Functions | |
SymbolCache () | |
SymbolTable & | getSymbolTable (Operation *op) |
SymbolTable & | getNearestSymbolTable (Operation *op) |
SymbolUserMap & | getSymbolUserMap (Operation *op) |
SymbolUserMap & | getNearestSymbolUserMap (Operation *op) |
void | clear () |
Private Attributes | |
std::unique_ptr< SymbolTableCollection > | tables |
SmallDenseMap< Operation *, SymbolUserMap, 2 > | userMaps |
A utility doing lazy construction of SymbolTable
s and SymbolUserMap
s, which is handy for reductions that need to look up a lot of symbols.
Definition at line 34 of file FIRRTLReductions.cpp.
|
inline |
Definition at line 35 of file FIRRTLReductions.cpp.
|
inline |
Definition at line 54 of file FIRRTLReductions.cpp.
References tables, and userMaps.
Referenced by FIRRTLModuleExternalizer::beforeReduction(), InstanceStubber::beforeReduction(), ExtmoduleInstanceRemover::beforeReduction(), and EagerInliner::beforeReduction().
|
inline |
Definition at line 40 of file FIRRTLReductions.cpp.
References getSymbolTable().
Referenced by ExtmoduleInstanceRemover::match(), and ExtmoduleInstanceRemover::rewrite().
|
inline |
Definition at line 50 of file FIRRTLReductions.cpp.
References getSymbolUserMap().
|
inline |
Definition at line 37 of file FIRRTLReductions.cpp.
References tables.
Referenced by InstanceStubber::afterReduction(), findInstantiatedModule(), getNearestSymbolTable(), EagerInliner::match(), InstanceStubber::rewrite(), and EagerInliner::rewrite().
|
inline |
Definition at line 44 of file FIRRTLReductions.cpp.
References tables, and userMaps.
Referenced by InstanceStubber::afterReduction(), getNearestSymbolUserMap(), EagerInliner::match(), and InstanceStubber::rewrite().
|
private |
Definition at line 60 of file FIRRTLReductions.cpp.
Referenced by clear(), getSymbolTable(), and getSymbolUserMap().
|
private |
Definition at line 61 of file FIRRTLReductions.cpp.
Referenced by clear(), and getSymbolUserMap().