P4C
The P4 Compiler
Loading...
Searching...
No Matches
P4::P4Tools::P4Testgen::Continuation::Return Struct Reference

#include <continuation.h>

Public Member Functions

 Return (const IR::Node *expr)
 
bool operator== (const Return &other) const
 Delegates to IR equality.
 

Public Attributes

std::optional< const IR::Node * > expr
 

Detailed Description

Represents a command that invokes the topmost continuation on the continuation stack. If a node is provided, it is first evaluated as an expression, and the result is used as an argument for the invocation. Note that the node doesn't necessarily need to be an instance of IR::Expression; other IR nodes may be treated as expressions in the metalanguage, even though they are not P4 expressions.