CIRCT  20.0.0git
Public Member Functions | Private Attributes | List of all members
detail::SymbolCache Struct Reference

A utility doing lazy construction of SymbolTables and SymbolUserMaps, which is handy for reductions that need to look up a lot of symbols. More...

Collaboration diagram for detail::SymbolCache:
Collaboration graph
[legend]

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
 

Detailed Description

A utility doing lazy construction of SymbolTables and SymbolUserMaps, which is handy for reductions that need to look up a lot of symbols.

Definition at line 34 of file FIRRTLReductions.cpp.

Member Function Documentation

◆ clear()

void detail::SymbolCache::clear ( )
inline

Definition at line 52 of file FIRRTLReductions.cpp.

◆ getNearestSymbolTable()

SymbolTable& detail::SymbolCache::getNearestSymbolTable ( Operation *  op)
inline

Definition at line 38 of file FIRRTLReductions.cpp.

◆ getNearestSymbolUserMap()

SymbolUserMap& detail::SymbolCache::getNearestSymbolUserMap ( Operation *  op)
inline

Definition at line 48 of file FIRRTLReductions.cpp.

◆ getSymbolTable()

SymbolTable& detail::SymbolCache::getSymbolTable ( Operation *  op)
inline

Definition at line 35 of file FIRRTLReductions.cpp.

Referenced by findInstantiatedModule().

◆ getSymbolUserMap()

SymbolUserMap& detail::SymbolCache::getSymbolUserMap ( Operation *  op)
inline

Definition at line 42 of file FIRRTLReductions.cpp.

Member Data Documentation

◆ tables

SymbolTableCollection detail::SymbolCache::tables
private

Definition at line 58 of file FIRRTLReductions.cpp.

◆ userMaps

SmallDenseMap<Operation *, SymbolUserMap, 2> detail::SymbolCache::userMaps
private

Definition at line 59 of file FIRRTLReductions.cpp.


The documentation for this struct was generated from the following file: