CIRCT  20.0.0git
Public Member Functions | List of all members
ReturnEmitter Struct Reference

Emit a systemc.cpp.return operation. More...

Inheritance diagram for ReturnEmitter:
Inheritance graph
[legend]
Collaboration diagram for ReturnEmitter:
Collaboration graph
[legend]

Public Member Functions

bool matchStatement (Operation *op) override
 
void emitStatement (ReturnOp op, EmissionPrinter &p) override
 Emit zero (default) or more statements for the given operation. More...
 
- Public Member Functions inherited from circt::ExportSystemC::OpEmissionPattern< ReturnOp >
 OpEmissionPattern (MLIRContext *context)
 
void emitStatement (mlir::Operation *op, EmissionPrinter &p) final
 Emit zero or more statements for the given operation. More...
 
MatchResult matchInlinable (Value value) override
 Checks if this pattern is applicable to the given value to emit an inlinable expression. More...
 
bool matchStatement (mlir::Operation *op) override
 Checks if this pattern is applicable to the given operation for statement emission. More...
 
void emitInlined (mlir::Value value, EmissionPrinter &p) override
 Emit the expression for the given value. More...
 
- Public Member Functions inherited from circt::ExportSystemC::OpEmissionPatternBase
 OpEmissionPatternBase (StringRef operationName, MLIRContext *context)
 
virtual ~OpEmissionPatternBase ()=default
 
- Public Member Functions inherited from circt::ExportSystemC::PatternBase
 PatternBase (const void *rootValue)
 
const void * getRootValue () const
 Get a unique identifier for the C++ type the pattern is matching on. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from circt::ExportSystemC::PatternBase
template<typename E , typename... Args>
static std::unique_ptr< E > create (Args &&...args)
 

Detailed Description

Emit a systemc.cpp.return operation.

Definition at line 512 of file SystemCEmissionPatterns.cpp.

Member Function Documentation

◆ emitStatement()

void ReturnEmitter::emitStatement ( ReturnOp  op,
EmissionPrinter p 
)
inlineoverridevirtual

Emit zero (default) or more statements for the given operation.

Reimplemented from circt::ExportSystemC::OpEmissionPattern< ReturnOp >.

Definition at line 519 of file SystemCEmissionPatterns.cpp.

References circt::ExportSystemC::InlineEmitter::emit(), and circt::ExportSystemC::EmissionPrinter::getInlinable().

◆ matchStatement()

bool ReturnEmitter::matchStatement ( Operation *  op)
inlineoverride

Definition at line 515 of file SystemCEmissionPatterns.cpp.


The documentation for this struct was generated from the following file: