CIRCT
18.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) |
An unpacked struct.
Definition at line 1152 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 1168 of file MooreTypes.h.
References circt::moore::Struct::format(), and getStruct().
|
inlinestatic |
Definition at line 1159 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 1137 of file MooreTypes.cpp.
References circt::calyx::direction::get(), 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 1145 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 1172 of file MooreTypes.h.
References getStruct().