CIRCT
20.0.0git
|
This class is returned to a pattern that requested inlined emission of a value. More...
#include <EmissionPrinter.h>
Public Member Functions | |
InlineEmitter (std::function< void()> emitter, Precedence precedence, EmissionPrinter &printer) | |
Precedence | getPrecedence () const |
void | emit () const |
void | emitWithParensOnLowerPrecedence (Precedence prec, StringRef lParen="(", StringRef rParen=")") const |
Private Attributes | |
Precedence | precedence |
std::function< void()> | emitter |
EmissionPrinter & | printer |
This class is returned to a pattern that requested inlined emission of a value.
It allows the pattern to emit additional characters before the requested expression depending on the precedence.
Definition at line 127 of file EmissionPrinter.h.
|
inline |
Definition at line 129 of file EmissionPrinter.h.
|
inline |
Definition at line 134 of file EmissionPrinter.h.
References emitter.
Referenced by BindPortEmitter::emitStatement(), and ReturnEmitter::emitStatement().
void InlineEmitter::emitWithParensOnLowerPrecedence | ( | Precedence | prec, |
StringRef | lParen = "(" , |
||
StringRef | rParen = ")" |
||
) | const |
Definition at line 134 of file EmissionPrinter.cpp.
References emitter, precedence, and printer.
Referenced by AssignEmitter::emitStatement(), BindPortEmitter::emitStatement(), VariableEmitter::emitStatement(), and CallIndirectEmitter::printCall().
|
inline |
Definition at line 133 of file EmissionPrinter.h.
References precedence.
|
private |
Definition at line 140 of file EmissionPrinter.h.
Referenced by emit(), and emitWithParensOnLowerPrecedence().
|
private |
Definition at line 139 of file EmissionPrinter.h.
Referenced by emitWithParensOnLowerPrecedence(), and getPrecedence().
|
private |
Definition at line 141 of file EmissionPrinter.h.
Referenced by emitWithParensOnLowerPrecedence().