CIRCT
19.0.0git
|
An unpacked struct. More...
#include <MooreTypes.h>
Public Member Functions | |
const Struct & | getStruct () const |
Get the struct definition. More... | |
void | format (llvm::raw_ostream &os) const |
Format this struct in SystemVerilog syntax. More... | |
operator const Struct & () const | |
Allow implicit casts from UnpackedStructType to the actual struct definition. More... | |
Static Public Member Functions | |
static UnpackedStructType | get (StructKind kind, ArrayRef< StructMember > members, StringAttr name, Location loc) |
static UnpackedStructType | get (const Struct &strukt) |
Static Public Attributes | |
static constexpr StringLiteral | name = "moore.unpacked_struct" |
An unpacked struct.
Definition at line 1208 of file MooreTypes.h.
|
inline |
Format this struct in SystemVerilog syntax.
Useful to present the struct back to the user in diagnostics.
Definition at line 1224 of file MooreTypes.h.
References circt::moore::Struct::format(), and getStruct().
|
inlinestatic |
Definition at line 1215 of file MooreTypes.h.
References get(), circt::moore::Struct::kind, circt::moore::Struct::loc, circt::moore::Struct::members, and circt::moore::Struct::name.
|
static |
Definition at line 1147 of file MooreTypes.cpp.
References circt::calyx::direction::get(), name, circt::moore::detail::StructTypeStorage::pack(), and circt::moore::Unsigned.
Referenced by customTypeParser(), and get().
const Struct & UnpackedStructType::getStruct | ( | ) | const |
Get the struct definition.
Definition at line 1155 of file MooreTypes.cpp.
Referenced by format(), and operator const Struct &().
|
inline |
Allow implicit casts from UnpackedStructType
to the actual struct definition.
Definition at line 1228 of file MooreTypes.h.
References getStruct().
|
staticconstexpr |
Definition at line 1230 of file MooreTypes.h.
Referenced by get().