CIRCT 24.0.0git
Loading...
Searching...
No Matches
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:

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 75 of file FIRRTLUtils.h.

Constructor & Destructor Documentation

◆ TieOffCache()

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

Definition at line 77 of file FIRRTLUtils.h.

References builder.

Member Function Documentation

◆ getUnknown()

Value TieOffCache::getUnknown ( PropertyType type)

Get or create an UnknownValueOp for the given property type.

Definition at line 30 of file FIRRTLUtils.cpp.

References builder, and cache.

Member Data Documentation

◆ builder

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

Definition at line 83 of file FIRRTLUtils.h.

Referenced by getUnknown(), and TieOffCache().

◆ cache

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

Definition at line 84 of file FIRRTLUtils.h.

Referenced by getUnknown().


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