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
Collaboration diagram for circt::moore::UnpackedStructType:
Collaboration graph

Public Member Functions

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

Static Public Member Functions

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

Static Public Attributes

static constexpr StringLiteral name = "moore.unpacked_struct"

Detailed Description

An unpacked struct.

Definition at line 546 of file MooreTypes.h.

Member Function Documentation

◆ get() [1/2]

static UnpackedStructType circt::moore::UnpackedStructType::get ( MLIRContext *  context,
const Struct strukt 

Definition at line 553 of file MooreTypes.h.

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

◆ get() [2/2]

UnpackedStructType UnpackedStructType::get ( MLIRContext *  context,
StructKind  kind,
ArrayRef< StructMember members 

Definition at line 367 of file MooreTypes.cpp.

References circt::calyx::direction::get().

Referenced by customTypeParser(), and get().

◆ getStruct()

const Struct & UnpackedStructType::getStruct ( ) const

Get the struct definition.

Definition at line 373 of file MooreTypes.cpp.

Referenced by operator const Struct &().

◆ operator const Struct &()

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

Allow implicit casts from UnpackedStructType to the actual struct definition.

Definition at line 562 of file MooreTypes.h.

References getStruct().

Member Data Documentation

◆ name

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

Definition at line 564 of file MooreTypes.h.

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