17#ifndef CONTROL_PLANE_P4RUNTIMEANNOTATIONS_H_
18#define CONTROL_PLANE_P4RUNTIMEANNOTATIONS_H_
20#include "frontends/p4/parseAnnotations.h"
25namespace ControlPlaneAPI {
34 PARSE(
"controller_header"_cs, StringLiteral),
35 PARSE_EMPTY(
"hidden"_cs),
36 PARSE(
"id"_cs, Constant),
37 PARSE(
"brief"_cs, StringLiteral),
38 PARSE(
"description"_cs, StringLiteral),
39 PARSE_KV_LIST(
"platform_property"_cs),
53 PARSE(
"max_group_size"_cs, Constant),
54 PARSE(
"selector_size_semantics"_cs, StringLiteral),
55 PARSE(
"max_member_weight"_cs, Constant),
56 {
"p4runtime_translation"_cs, &ParseAnnotations::parseP4rtTranslationAnnotation},
Parses P4Runtime-specific annotations.
Definition p4RuntimeAnnotations.h:28
Definition parseAnnotations.h:138
ParseAnnotations(bool warn=false)
Produces a pass that rewrites the spec-defined annotations.
Definition parseAnnotations.h:150
TODO: this is not really specific to BMV2, it should reside somewhere else.
Definition applyOptionsPragmas.cpp:24