CIRCT  19.0.0git
Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
circt::moore::UnpackedStructType Class Reference

An unpacked struct. More...

#include <MooreTypes.h>

Inheritance diagram for circt::moore::UnpackedStructType:
Inheritance graph
[legend]
Collaboration diagram for circt::moore::UnpackedStructType:
Collaboration graph
[legend]

Public Member Functions

const StructgetStruct () 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"
 

Detailed Description

An unpacked struct.

Definition at line 1208 of file MooreTypes.h.

Member Function Documentation

◆ format()

void circt::moore::UnpackedStructType::format ( llvm::raw_ostream &  os) const
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().

◆ get() [1/2]

static UnpackedStructType circt::moore::UnpackedStructType::get ( const Struct strukt)
inlinestatic

◆ get() [2/2]

UnpackedStructType UnpackedStructType::get ( StructKind  kind,
ArrayRef< StructMember members,
StringAttr  name,
Location  loc 
)
static

◆ getStruct()

const Struct & UnpackedStructType::getStruct ( ) const

Get the struct definition.

Definition at line 1155 of file MooreTypes.cpp.

Referenced by format(), and operator const Struct &().

◆ operator const Struct &()

circt::moore::UnpackedStructType::operator const Struct & ( ) const
inline

Allow implicit casts from UnpackedStructType to the actual struct definition.

Definition at line 1228 of file MooreTypes.h.

References getStruct().

Member Data Documentation

◆ name

constexpr StringLiteral circt::moore::UnpackedStructType::name = "moore.unpacked_struct"
staticconstexpr

Definition at line 1230 of file MooreTypes.h.

Referenced by get().


The documentation for this class was generated from the following files: