CIRCT 20.0.0git
|
Emit a systemc.cpp.variable operation. More...
Public Member Functions | |
MatchResult | matchInlinable (Value value) override |
Checks if this pattern is applicable to the given value to emit an inlinable expression. | |
void | emitInlined (Value value, EmissionPrinter &p) override |
void | emitStatement (VariableOp op, EmissionPrinter &p) override |
Emit zero (default) or more statements for the given operation. | |
OpEmissionPattern (MLIRContext *context) | |
OpEmissionPattern (MLIRContext *context) | |
![]() | |
OpEmissionPattern (MLIRContext *context) | |
void | emitStatement (mlir::Operation *op, EmissionPrinter &p) final |
Emit zero or more statements for the given operation. | |
bool | matchStatement (mlir::Operation *op) override |
Checks if this pattern is applicable to the given operation for statement emission. | |
void | emitInlined (mlir::Value value, EmissionPrinter &p) override |
Emit the expression for the given value. | |
![]() | |
OpEmissionPatternBase (StringRef operationName, MLIRContext *context) | |
virtual | ~OpEmissionPatternBase ()=default |
![]() | |
PatternBase (const void *rootValue) | |
const void * | getRootValue () const |
Get a unique identifier for the C++ type the pattern is matching on. | |
Additional Inherited Members | |
![]() | |
template<typename E , typename... Args> | |
static std::unique_ptr< E > | create (Args &&...args) |
Emit a systemc.cpp.variable operation.
Definition at line 332 of file SystemCEmissionPatterns.cpp.
|
inlineoverride |
Definition at line 341 of file SystemCEmissionPatterns.cpp.
|
inlineoverridevirtual |
Emit zero (default) or more statements for the given operation.
Reimplemented from circt::ExportSystemC::OpEmissionPattern< VariableOp >.
Definition at line 345 of file SystemCEmissionPatterns.cpp.
References circt::ExportSystemC::EmissionPrinter::emitType(), circt::ExportSystemC::InlineEmitter::emitWithParensOnLowerPrecedence(), and circt::ExportSystemC::EmissionPrinter::getInlinable().
|
inlineoverridevirtual |
Checks if this pattern is applicable to the given value to emit an inlinable expression.
Additionally returns information such as the precedence to the pattern where this pattern's result is to be inlined. Defaults to never match.
Reimplemented from circt::ExportSystemC::OpEmissionPattern< VariableOp >.
Definition at line 335 of file SystemCEmissionPatterns.cpp.
|
inlineexplicit |
Definition at line 169 of file EmissionPattern.h.
|
inlineexplicit |
Definition at line 169 of file EmissionPattern.h.