CIRCT 22.0.0git
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
circt::firrtl::TokenAnnoTarget Struct Reference

The parsed annotation path. More...

#include <FIRRTLAnnotationHelper.h>

Collaboration diagram for circt::firrtl::TokenAnnoTarget:
Collaboration graph
[legend]

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 StringRef name
 
SmallVector< TargetTokencomponent
 

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().

Referenced by circt::firrtl::resolveEntities().

◆ 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 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, and name.

Referenced by str(), and toStringAttr().

Member Data Documentation

◆ circuit

StringRef circt::firrtl::TokenAnnoTarget::circuit

◆ component

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

◆ instances

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

◆ name

StringRef StringRef circt::firrtl::TokenAnnoTarget::name

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