CIRCT 23.0.0git
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
circt::firrtl::TieOffCache Class Reference

Helper class to cache tie-off values for different FIRRTL types. More...

#include <FIRRTLUtils.h>

Collaboration diagram for circt::firrtl::TieOffCache:
Collaboration graph
[legend]

Public Member Functions

 TieOffCache (ImplicitLocOpBuilder &builder)
 
Value getUnknown (PropertyType type)
 Get or create an UnknownValueOp for the given property type.
 

Private Attributes

ImplicitLocOpBuilder & builder
 
SmallDenseMap< Type, Value, 8 > cache
 

Detailed Description

Helper class to cache tie-off values for different FIRRTL types.

This avoids creating duplicate InvalidValueOp or UnknownValueOp for the same type.

Definition at line 63 of file FIRRTLUtils.h.

Constructor & Destructor Documentation

◆ TieOffCache()

circt::firrtl::TieOffCache::TieOffCache ( ImplicitLocOpBuilder &  builder)
inline

Definition at line 65 of file FIRRTLUtils.h.

Member Function Documentation

◆ getUnknown()

Value TieOffCache::getUnknown ( PropertyType  type)

Get or create an UnknownValueOp for the given property type.

Definition at line 31 of file FIRRTLUtils.cpp.

References builder, and cache.

Member Data Documentation

◆ builder

ImplicitLocOpBuilder& circt::firrtl::TieOffCache::builder
private

Definition at line 71 of file FIRRTLUtils.h.

Referenced by getUnknown().

◆ cache

SmallDenseMap<Type, Value, 8> circt::firrtl::TieOffCache::cache
private

Definition at line 72 of file FIRRTLUtils.h.

Referenced by getUnknown().


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