P4C
The P4 Compiler
 
Loading...
Searching...
No Matches
TC::ParseTCAnnotations Class Reference
Inheritance diagram for TC::ParseTCAnnotations:

Static Public Attributes

static const cstring defaultHit = "default_hit"
 
static const cstring defaultHitConst = "default_hit_const"
 
static const cstring numMask = "nummask"
 
static const cstring tcMayOverride = "tc_may_override"
 
static const cstring tcType = "tc_type"
 

Additional Inherited Members

- Public Types inherited from P4::ParseAnnotations
typedef std::function< bool(IR::Annotation *) Handler)
 
typedef std::unordered_map< cstring, HandlerHandlerMap
 Keyed on annotation names.
 
- Public Member Functions inherited from P4::ParseAnnotations
 ParseAnnotations (bool warn=false)
 Produces a pass that rewrites the spec-defined annotations.
 
 ParseAnnotations (const char *targetName, bool includeStandard, HandlerMap handlers, bool warn=false)
 Produces a pass that rewrites a custom set of annotations.
 
void addHandler (cstring name, Handler h)
 
void postorder (IR::Annotation *annotation) final
 
- Static Public Member Functions inherited from P4::ParseAnnotations
static bool parseConstantList (IR::Annotation *annotation)
 
static bool parseConstantOrStringLiteralList (IR::Annotation *annotation)
 
static bool parseEmpty (IR::Annotation *annotation)
 
static bool parseExpressionList (IR::Annotation *annotation)
 
static bool parseKvList (IR::Annotation *annotation)
 
static bool parseP4rtTranslationAnnotation (IR::Annotation *annotation)
 
static bool parseSkip (IR::Annotation *annotation)
 
static bool parseStringLiteralList (IR::Annotation *annotation)
 
static HandlerMap standardHandlers ()