CIRCT 24.0.0git
Loading...
Searching...
No Matches
circt::firrtl::TokenAnnoTarget Struct Reference

The parsed annotation path. More...

#include <FIRRTLAnnotationHelper.h>

Collaboration diagram for circt::firrtl::TokenAnnoTarget:

Public Member Functions

void toVector (SmallVectorImpl< char > &out) const
 Append the annotation path to the given SmallString or SmallVector.
std::string str () const
 Convert the annotation path to a string.
StringAttr toStringAttr (MLIRContext *context) const
 Convert the annotation path to a StringAttr.

Public Attributes

StringRef circuit
SmallVector< std::pair< StringRef, StringRef > > instances
StringRef module
StringRef name
SmallVector< TargetToken > component

Detailed Description

The parsed annotation path.

Definition at line 33 of file FIRRTLAnnotationHelper.h.

Member Function Documentation

◆ str()

std::string circt::firrtl::TokenAnnoTarget::str ( ) const
inline

Convert the annotation path to a string.

Definition at line 46 of file FIRRTLAnnotationHelper.h.

References toVector().

◆ toStringAttr()

StringAttr circt::firrtl::TokenAnnoTarget::toStringAttr ( MLIRContext * context) const
inline

Convert the annotation path to a StringAttr.

Definition at line 53 of file FIRRTLAnnotationHelper.h.

References context, and toVector().

◆ toVector()

void TokenAnnoTarget::toVector ( SmallVectorImpl< char > & out) const

Append the annotation path to the given SmallString or SmallVector.

Definition at line 117 of file FIRRTLAnnotationHelper.cpp.

References circuit, component, instances, module, and name.

Referenced by str(), and toStringAttr().

Member Data Documentation

◆ circuit

StringRef circt::firrtl::TokenAnnoTarget::circuit

Definition at line 34 of file FIRRTLAnnotationHelper.h.

Referenced by circt::firrtl::tokenizePath(), and toVector().

◆ component

SmallVector<TargetToken> circt::firrtl::TokenAnnoTarget::component

Definition at line 40 of file FIRRTLAnnotationHelper.h.

Referenced by circt::firrtl::tokenizePath(), and toVector().

◆ instances

SmallVector<std::pair<StringRef, StringRef> > circt::firrtl::TokenAnnoTarget::instances

Definition at line 35 of file FIRRTLAnnotationHelper.h.

Referenced by circt::firrtl::tokenizePath(), and toVector().

◆ module

◆ name

StringRef circt::firrtl::TokenAnnoTarget::name

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