CIRCT 24.0.0git
Loading...
Searching...
No Matches
circt::calyx::PortInfo Struct Reference

This holds information about the port for either a Component or Cell. More...

#include <CalyxOps.h>

Collaboration diagram for circt::calyx::PortInfo:

Public Member Functions

bool hasAttribute (StringRef identifier) const
 Returns whether the given port has attribute with Identifier name.
std::optional< Attribute > getAttribute (StringRef identifier) const
 Returns the attribute associated with the given name if it exists, otherwise std::nullopt.
SmallVector< StringRef > getAllIdentifiers () const
 Returns all identifiers for this dictionary attribute.

Public Attributes

StringAttr name
Type type
Direction direction
DictionaryAttr attributes

Detailed Description

This holds information about the port for either a Component or Cell.

Definition at line 89 of file CalyxOps.h.

Member Function Documentation

◆ getAllIdentifiers()

SmallVector< StringRef > circt::calyx::PortInfo::getAllIdentifiers ( ) const
inline

Returns all identifiers for this dictionary attribute.

Definition at line 116 of file CalyxOps.h.

References assert(), and attributes.

◆ getAttribute()

std::optional< Attribute > circt::calyx::PortInfo::getAttribute ( StringRef identifier) const
inline

Returns the attribute associated with the given name if it exists, otherwise std::nullopt.

Definition at line 105 of file CalyxOps.h.

References assert(), and attributes.

◆ hasAttribute()

bool circt::calyx::PortInfo::hasAttribute ( StringRef identifier) const
inline

Returns whether the given port has attribute with Identifier name.

Definition at line 96 of file CalyxOps.h.

References assert(), and attributes.

Member Data Documentation

◆ attributes

◆ direction

Direction circt::calyx::PortInfo::direction

Definition at line 92 of file CalyxOps.h.

Referenced by verifyPortDirection().

◆ name

StringAttr circt::calyx::PortInfo::name

Definition at line 90 of file CalyxOps.h.

Referenced by esiaccel.types.TypeAlias::__str__(), and printComponentInterface().

◆ type


The documentation for this struct was generated from the following file: