CIRCT 24.0.0git
Loading...
Searching...
No Matches
circt::systemc::detail::IntegerWidthStorage Struct Reference

Integer Type Storage and Uniquing. More...

Inheritance diagram for circt::systemc::detail::IntegerWidthStorage:
Collaboration diagram for circt::systemc::detail::IntegerWidthStorage:

Public Types

using KeyTy = unsigned
 The hash key used for uniquing.

Public Member Functions

 IntegerWidthStorage (unsigned width)
bool operator== (const KeyTy &key) const

Static Public Member Functions

static llvm::hash_code hashKey (const KeyTy &key)
static IntegerWidthStorage * construct (mlir::TypeStorageAllocator &allocator, KeyTy key)

Public Attributes

unsigned width: 32

Detailed Description

Integer Type Storage and Uniquing.

Definition at line 110 of file SystemCTypes.cpp.

Member Typedef Documentation

◆ KeyTy

The hash key used for uniquing.

Definition at line 114 of file SystemCTypes.cpp.

Constructor & Destructor Documentation

◆ IntegerWidthStorage()

circt::systemc::detail::IntegerWidthStorage::IntegerWidthStorage ( unsigned width)
inline

Definition at line 111 of file SystemCTypes.cpp.

References width.

Referenced by construct().

Member Function Documentation

◆ construct()

IntegerWidthStorage * circt::systemc::detail::IntegerWidthStorage::construct ( mlir::TypeStorageAllocator & allocator,
KeyTy key )
inlinestatic

Definition at line 122 of file SystemCTypes.cpp.

References IntegerWidthStorage().

◆ hashKey()

llvm::hash_code circt::systemc::detail::IntegerWidthStorage::hashKey ( const KeyTy & key)
inlinestatic

Definition at line 116 of file SystemCTypes.cpp.

References llvm::hash_value().

◆ operator==()

bool circt::systemc::detail::IntegerWidthStorage::operator== ( const KeyTy & key) const
inline

Definition at line 120 of file SystemCTypes.cpp.

References width.

Member Data Documentation

◆ width

unsigned circt::systemc::detail::IntegerWidthStorage::width

Definition at line 128 of file SystemCTypes.cpp.

Referenced by IntegerWidthStorage(), and operator==().


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