CIRCT 22.0.0git
|
Bit vectors include signed, unsigned, and signless integers. More...
#include <Types.h>
Public Member Functions | |
BitVectorType (const ID &id, uint64_t width) | |
uint64_t | getWidth () const |
std::ptrdiff_t | getBitWidth () const override |
![]() | |
Type (const ID &id) | |
virtual | ~Type ()=default |
ID | getID () const |
virtual MessageData | serialize (const std::any &obj) const |
Serialize an object to MessageData. | |
virtual std::pair< std::any, std::span< const uint8_t > > | deserialize (std::span< const uint8_t > data) const |
Deserialize from a span of bytes to an object. | |
virtual void | ensureValid (const std::any &obj) const |
Ensure that a std::any object is valid for this type. | |
std::optional< std::string > | isValid (const std::any &obj) const |
Private Attributes | |
uint64_t | width |
Additional Inherited Members | |
![]() | |
using | ID = std::string |
![]() | |
ID | id |
Bit vectors include signed, unsigned, and signless integers.
|
inline |
|
inlineoverridevirtual |
|
inline |
Definition at line 145 of file Types.h.
References width.
Referenced by esi::BitsType::ensureValid(), esi::SIntType::ensureValid(), esi::UIntType::ensureValid(), getBitWidth(), PYBIND11_MODULE(), esi::SIntType::serialize(), and esi::UIntType::serialize().
|
private |
Definition at line 149 of file Types.h.
Referenced by getWidth().