CIRCT
20.0.0git
|
A one-to-one representation with a YAML representation of a signal/field. More...
Public Member Functions | |
Field (IO &io, DescribedSignal &op) | |
Construct a Field from a DescribedSignal (an sv::InterfaceSignalOp with an optional description). More... | |
Field (IO &io) | |
A no-argument constructor is necessary to work with LLVM's YAML library. More... | |
DescribedSignal | denormalize (IO &) |
This cannot be denormalized back to an interface op. More... | |
Public Attributes | |
StringRef | name |
The name of the field. More... | |
std::optional< std::string > | description |
An optional, textual description of what the field is. More... | |
SmallVector< unsigned, 2 > | dimensions |
The dimensions of the field. More... | |
unsigned | width |
The width of the underlying type. More... | |
A one-to-one representation with a YAML representation of a signal/field.
Definition at line 169 of file GrandCentral.cpp.
|
inline |
Construct a Field
from a DescribedSignal
(an sv::InterfaceSignalOp
with an optional description).
Definition at line 184 of file GrandCentral.cpp.
References assert(), llvm::yaml::stripComment(), and width.
|
inline |
A no-argument constructor is necessary to work with LLVM's YAML library.
Definition at line 226 of file GrandCentral.cpp.
|
inline |
This cannot be denormalized back to an interface op.
Definition at line 229 of file GrandCentral.cpp.
std::optional<std::string> llvm::yaml::MappingContextTraits< DescribedSignal, Context >::Field::description |
An optional, textual description of what the field is.
Definition at line 174 of file GrandCentral.cpp.
SmallVector<unsigned, 2> llvm::yaml::MappingContextTraits< DescribedSignal, Context >::Field::dimensions |
The dimensions of the field.
Definition at line 177 of file GrandCentral.cpp.
StringRef llvm::yaml::MappingContextTraits< DescribedSignal, Context >::Field::name |
The name of the field.
Definition at line 171 of file GrandCentral.cpp.
unsigned llvm::yaml::MappingContextTraits< DescribedSignal, Context >::Field::width |
The width of the underlying type.
Definition at line 180 of file GrandCentral.cpp.