CIRCT 22.0.0git
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
circt::firrtl::detail::FEnumTypeStorage Struct Reference
Inheritance diagram for circt::firrtl::detail::FEnumTypeStorage:
Inheritance graph
[legend]
Collaboration diagram for circt::firrtl::detail::FEnumTypeStorage:
Collaboration graph
[legend]

Public Types

using KeyTy = std::tuple< ArrayRef< FEnumType::EnumElement >, char >
 
- Public Types inherited from circt::firrtl::detail::FIRRTLBaseTypeStorage
using KeyTy = char
 

Public Member Functions

 FEnumTypeStorage (ArrayRef< FEnumType::EnumElement > elements, bool isConst)
 
bool operator== (const KeyTy &key) const
 
KeyTy getAsKey () const
 
- Public Member Functions inherited from circt::firrtl::detail::FIRRTLBaseTypeStorage
 FIRRTLBaseTypeStorage (bool isConst)
 
bool operator== (const KeyTy &key) const
 
KeyTy getAsKey () const
 

Static Public Member Functions

static llvm::hash_code hashKey (const KeyTy &key)
 
static FEnumTypeStorageconstruct (TypeStorageAllocator &allocator, KeyTy key)
 
- Static Public Member Functions inherited from circt::firrtl::detail::FIRRTLBaseTypeStorage
static FIRRTLBaseTypeStorageconstruct (TypeStorageAllocator &allocator, KeyTy key)
 

Public Attributes

SmallVector< FEnumType::EnumElement, 4 > elements
 
RecursiveTypeProperties recProps
 
size_t dataSize
 
FIRRTLBaseType anonymousType
 
- Public Attributes inherited from circt::firrtl::detail::FIRRTLBaseTypeStorage
char isConst
 

Detailed Description

Definition at line 2160 of file FIRRTLTypes.cpp.

Member Typedef Documentation

◆ KeyTy

using circt::firrtl::detail::FEnumTypeStorage::KeyTy = std::tuple<ArrayRef<FEnumType::EnumElement>, char>

Definition at line 2161 of file FIRRTLTypes.cpp.

Constructor & Destructor Documentation

◆ FEnumTypeStorage()

circt::firrtl::detail::FEnumTypeStorage::FEnumTypeStorage ( ArrayRef< FEnumType::EnumElement >  elements,
bool  isConst 
)
inline

Member Function Documentation

◆ construct()

static FEnumTypeStorage * circt::firrtl::detail::FEnumTypeStorage::construct ( TypeStorageAllocator &  allocator,
KeyTy  key 
)
inlinestatic

Definition at line 2188 of file FIRRTLTypes.cpp.

◆ getAsKey()

KeyTy circt::firrtl::detail::FEnumTypeStorage::getAsKey ( ) const
inline

Definition at line 2182 of file FIRRTLTypes.cpp.

References elements, and circt::firrtl::detail::FIRRTLBaseTypeStorage::isConst.

Referenced by operator==().

◆ hashKey()

static llvm::hash_code circt::firrtl::detail::FEnumTypeStorage::hashKey ( const KeyTy key)
inlinestatic

Definition at line 2184 of file FIRRTLTypes.cpp.

References llvm::hash_value().

◆ operator==()

bool circt::firrtl::detail::FEnumTypeStorage::operator== ( const KeyTy key) const
inline

Definition at line 2180 of file FIRRTLTypes.cpp.

References getAsKey().

Member Data Documentation

◆ anonymousType

FIRRTLBaseType circt::firrtl::detail::FEnumTypeStorage::anonymousType

Definition at line 2197 of file FIRRTLTypes.cpp.

◆ dataSize

size_t circt::firrtl::detail::FEnumTypeStorage::dataSize

Definition at line 2196 of file FIRRTLTypes.cpp.

Referenced by FEnumTypeStorage().

◆ elements

SmallVector<FEnumType::EnumElement, 4> circt::firrtl::detail::FEnumTypeStorage::elements

Definition at line 2194 of file FIRRTLTypes.cpp.

Referenced by FEnumTypeStorage(), and getAsKey().

◆ recProps

RecursiveTypeProperties circt::firrtl::detail::FEnumTypeStorage::recProps

Definition at line 2195 of file FIRRTLTypes.cpp.

Referenced by FEnumTypeStorage().


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