CIRCT 24.0.0git
Loading...
Searching...
No Matches
ModuleSizeCache Struct Reference

Utility to track the transitive size of modules. More...

Collaboration diagram for ModuleSizeCache:

Public Member Functions

void clear ()
uint64_t getModuleSize (Operation *module, ::detail::SymbolCache &symbols)
void clear ()
uint64_t getModuleSize (HWModuleLike module, hw::InstanceGraph &instanceGraph)

Private Attributes

llvm::DenseMap< Operation *, uint64_t > moduleSizes

Detailed Description

Utility to track the transitive size of modules.

Definition at line 92 of file FIRRTLReductions.cpp.

Member Function Documentation

◆ clear() [1/2]

void ModuleSizeCache::clear ( )
inline

Definition at line 93 of file FIRRTLReductions.cpp.

References moduleSizes.

◆ clear() [2/2]

void ModuleSizeCache::clear ( )
inline

Definition at line 28 of file HWReductions.cpp.

References moduleSizes.

◆ getModuleSize() [1/2]

uint64_t ModuleSizeCache::getModuleSize ( HWModuleLike module,
hw::InstanceGraph & instanceGraph )
inline

◆ getModuleSize() [2/2]

uint64_t ModuleSizeCache::getModuleSize ( Operation * module,
::detail::SymbolCache & symbols )
inline

Definition at line 95 of file FIRRTLReductions.cpp.

References findInstantiatedModule(), getModuleSize(), and moduleSizes.

Referenced by getModuleSize(), and getModuleSize().

Member Data Documentation

◆ moduleSizes

llvm::DenseMap< Operation *, uint64_t > ModuleSizeCache::moduleSizes
private

Definition at line 110 of file FIRRTLReductions.cpp.

Referenced by clear(), getModuleSize(), and getModuleSize().


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