CIRCT
20.0.0git
|
This class wraps an operation or a fixed string that should be emitted. More...
#include <ExportVerilogInternals.h>
Public Member Functions | |
StringOrOpToEmit (Operation *op) | |
StringOrOpToEmit (StringRef string) | |
~StringOrOpToEmit () | |
Operation * | getOperation () const |
If the value is an Operation*, return it. Otherwise return null. More... | |
StringRef | getStringData () const |
If the value wraps a string, return it. Otherwise return null. More... | |
void | setString (StringRef value) |
This method transforms the entry from an operation to a string value. More... | |
StringOrOpToEmit (StringOrOpToEmit &&rhs) | |
Public Attributes | |
OpLocMap | verilogLocs |
Verilog output location information for entry. More... | |
Private Member Functions | |
StringOrOpToEmit (const StringOrOpToEmit &)=delete | |
void | operator= (const StringOrOpToEmit &)=delete |
Private Attributes | |
PointerUnion< Operation *, const void * > | pointerData |
size_t | length |
This class wraps an operation or a fixed string that should be emitted.
Definition at line 284 of file ExportVerilogInternals.h.
|
inlineexplicit |
Definition at line 286 of file ExportVerilogInternals.h.
|
inlineexplicit |
Definition at line 288 of file ExportVerilogInternals.h.
References pointerData, and setString().
|
inline |
Definition at line 293 of file ExportVerilogInternals.h.
References pointerData.
|
inline |
Definition at line 320 of file ExportVerilogInternals.h.
|
privatedelete |
|
inline |
If the value is an Operation*, return it. Otherwise return null.
Definition at line 299 of file ExportVerilogInternals.h.
References pointerData.
Referenced by circt::ExportVerilog::SharedEmitterState::emitOps().
|
inline |
If the value wraps a string, return it. Otherwise return null.
Definition at line 304 of file ExportVerilogInternals.h.
References length, and pointerData.
|
privatedelete |
|
inline |
This method transforms the entry from an operation to a string value.
Definition at line 311 of file ExportVerilogInternals.h.
References assert(), length, and pointerData.
Referenced by circt::ExportVerilog::SharedEmitterState::emitOps(), and StringOrOpToEmit().
|
private |
Definition at line 333 of file ExportVerilogInternals.h.
Referenced by getStringData(), and setString().
|
private |
Definition at line 332 of file ExportVerilogInternals.h.
Referenced by getOperation(), getStringData(), setString(), StringOrOpToEmit(), and ~StringOrOpToEmit().
OpLocMap circt::ExportVerilog::StringOrOpToEmit::verilogLocs |
Verilog output location information for entry.
This is required since each entry can be emitted in parallel.
Definition at line 327 of file ExportVerilogInternals.h.
Referenced by circt::ExportVerilog::SharedEmitterState::emitOps().