CIRCT 20.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 | |
SymbolTable & | getSymbolTable (Operation *op) |
SymbolTable & | getNearestSymbolTable (Operation *op) |
SymbolUserMap & | getSymbolUserMap (Operation *op) |
SymbolUserMap & | getNearestSymbolUserMap (Operation *op) |
void | clear () |
Private Attributes | |
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 52 of file FIRRTLReductions.cpp.
References tables, and userMaps.
Referenced by FIRRTLModuleExternalizer::beforeReduction(), InstanceStubber::beforeReduction(), ExtmoduleInstanceRemover::beforeReduction(), and EagerInliner::beforeReduction().
|
inline |
Definition at line 38 of file FIRRTLReductions.cpp.
References getSymbolTable().
Referenced by ExtmoduleInstanceRemover::match(), and ExtmoduleInstanceRemover::rewrite().
|
inline |
Definition at line 48 of file FIRRTLReductions.cpp.
References getSymbolUserMap().
|
inline |
Definition at line 35 of file FIRRTLReductions.cpp.
References tables.
Referenced by InstanceStubber::afterReduction(), findInstantiatedModule(), getNearestSymbolTable(), EagerInliner::match(), InstanceStubber::rewrite(), and EagerInliner::rewrite().
|
inline |
Definition at line 42 of file FIRRTLReductions.cpp.
References tables, and userMaps.
Referenced by InstanceStubber::afterReduction(), getNearestSymbolUserMap(), EagerInliner::match(), and InstanceStubber::rewrite().
|
private |
Definition at line 58 of file FIRRTLReductions.cpp.
Referenced by clear(), getSymbolTable(), and getSymbolUserMap().
|
private |
Definition at line 59 of file FIRRTLReductions.cpp.
Referenced by clear(), and getSymbolUserMap().