CIRCT  18.0.0git
Public Member Functions | Static Public Member Functions | 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)
 

Detailed Description

An unpacked struct.

Definition at line 1152 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 1168 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 1145 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 1172 of file MooreTypes.h.

References getStruct().


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