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

A packed struct. More...

#include <MooreTypes.h>

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

Public Member Functions

const StructgetStruct () const
 Get the struct definition. More...
 
 operator const Struct & () const
 Allow implicit casts from PackedStructType to the actual struct definition. More...
 

Static Public Member Functions

static PackedStructType get (MLIRContext *context, StructKind kind, ArrayRef< StructMember > members)
 
static PackedStructType get (MLIRContext *context, const Struct &strukt)
 

Static Public Attributes

static constexpr StringLiteral name = "moore.packed_struct"
 

Detailed Description

A packed struct.

Definition at line 522 of file MooreTypes.h.

Member Function Documentation

◆ get() [1/2]

static PackedStructType circt::moore::PackedStructType::get ( MLIRContext *  context,
const Struct strukt 
)
inlinestatic

Definition at line 528 of file MooreTypes.h.

References get(), circt::moore::Struct::kind, and circt::moore::Struct::members.

◆ get() [2/2]

PackedStructType PackedStructType::get ( MLIRContext *  context,
StructKind  kind,
ArrayRef< StructMember members 
)
static

Definition at line 355 of file MooreTypes.cpp.

References assert(), circt::calyx::direction::get(), and circt::moore::StructMember::type.

Referenced by customTypeParser(), and get().

◆ getStruct()

const Struct & PackedStructType::getStruct ( ) const

Get the struct definition.

Definition at line 365 of file MooreTypes.cpp.

Referenced by operator const Struct &().

◆ operator const Struct &()

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

Allow implicit casts from PackedStructType to the actual struct definition.

Definition at line 537 of file MooreTypes.h.

References getStruct().

Member Data Documentation

◆ name

constexpr StringLiteral circt::moore::PackedStructType::name = "moore.packed_struct"
staticconstexpr

Definition at line 539 of file MooreTypes.h.


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