P4C
The P4 Compiler
|
Maintains a map from invocation to a SpecializationInfo object. More...
#include <specialize.h>
Public Member Functions | |
void | addSpecialization (const IR::ConstructorCallExpression *invocation, const IR::IContainer *container, const IR::Node *insertion, DeclarationLookup *declLookup, NameGenerator *nameGen) |
void | addSpecialization (const IR::Declaration_Instance *invocation, const IR::IContainer *container, const IR::Node *insertion, DeclarationLookup *declLookup, NameGenerator *nameGen) |
void | clear () |
cstring | getName (const IR::Node *insertion) const |
IR::Vector< IR::Node > * | getSpecializations (const IR::Node *insertion, const Visitor::Context *ctxt) const |
Public Attributes | |
TypeMap * | typeMap = nullptr |
Maintains a map from invocation to a SpecializationInfo object.
void P4::SpecializationMap::addSpecialization | ( | const IR::ConstructorCallExpression * | invocation, |
const IR::IContainer * | container, | ||
const IR::Node * | insertion, | ||
DeclarationLookup * | declLookup, | ||
NameGenerator * | nameGen ) |
Add a specialization instance.
invocation | The constructor invocation. |
container | The object (eg. parser or control) being specialized. |
insertion | Where the specialization should be inserted. |
void P4::SpecializationMap::addSpecialization | ( | const IR::Declaration_Instance * | invocation, |
const IR::IContainer * | container, | ||
const IR::Node * | insertion, | ||
DeclarationLookup * | declLookup, | ||
NameGenerator * | nameGen ) |
Add a specialization instance.
invocation | The constructor invocation. |
container | The object (eg. parser or control) being specialized. |
insertion | Where the specialization should be inserted. |