P4C
The P4 Compiler
Loading...
Searching...
No Matches
P4::SpecializationInfo Struct Reference

Describes how a parser or control is specialized. More...

#include <specialize.h>

Public Member Functions

 SpecializationInfo (const IR::Node *invocation, const IR::IContainer *cont, const IR::Node *insertion)
 
const IR::Type_Declaration * synthesize (const Visitor::Context *ctxt) const
 

Public Attributes

IR::Vector< IR::Argument > * constructorArguments
 Values to substitute for constructor arguments.
 
IR::IndexedVector< IR::Declaration > * declarations
 Declarations to insert in the list of locals.
 
const IR::NodeinsertBefore
 Where in the program should the specialization be inserted.
 
const IR::Nodeinvocation
 Invocation which causes this specialization.
 
cstring name
 Name to use for specialized object.
 
const IR::IContainer * specialized
 Actual parser or control that is being specialized.
 
const IR::Vector< IR::Type > * typeArguments
 Values to substitute for type arguments.
 

Detailed Description

Describes how a parser or control is specialized.