CIRCT
18.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 276 of file ExportVerilogInternals.h.
|
inlineexplicit |
Definition at line 278 of file ExportVerilogInternals.h.
|
inlineexplicit |
Definition at line 280 of file ExportVerilogInternals.h.
References pointerData, and setString().
|
inline |
Definition at line 285 of file ExportVerilogInternals.h.
References pointerData.
|
inline |
Definition at line 312 of file ExportVerilogInternals.h.
|
privatedelete |
|
inline |
If the value is an Operation*, return it. Otherwise return null.
Definition at line 291 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 296 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 303 of file ExportVerilogInternals.h.
References assert(), length, pointerData, and value.
Referenced by circt::ExportVerilog::SharedEmitterState::emitOps(), and StringOrOpToEmit().
|
private |
Definition at line 325 of file ExportVerilogInternals.h.
Referenced by getStringData(), and setString().
|
private |
Definition at line 324 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 319 of file ExportVerilogInternals.h.
Referenced by circt::ExportVerilog::SharedEmitterState::emitOps().