P4C
The P4 Compiler
 
Loading...
Searching...
No Matches
tcAnnotations.h
1/*
2Copyright (C) 2023 Intel Corporation
3
4Licensed under the Apache License, Version 2.0 (the "License");
5you may not use this file except in compliance with the License.
6You may obtain a copy of the License at
7
8http://www.apache.org/licenses/LICENSE-2.0
9
10Unless required by applicable law or agreed to in writing,
11software distributed under the License is distributed on an "AS IS" BASIS,
12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13See the License for the specific language governing permissions
14and limitations under the License.
15*/
16
17#ifndef BACKENDS_TC_TCANNOTATIONS_H_
18#define BACKENDS_TC_TCANNOTATIONS_H_
19
20#include "frontends/p4/parseAnnotations.h"
21#include "ir/ir.h"
22
23namespace TC {
24
26 public:
27 // TC specific annotations
28 static const cstring defaultHit;
29 static const cstring defaultHitConst;
30 static const cstring tcType;
31 static const cstring numMask;
32 static const cstring tcMayOverride;
35 "TC", true,
36 {PARSE_EMPTY(defaultHit), PARSE_EMPTY(defaultHitConst),
37 PARSE_CONSTANT_OR_STRING_LITERAL(tcType), PARSE_CONSTANT_OR_STRING_LITERAL(numMask),
38 PARSE_EMPTY(tcMayOverride)}) {}
39};
40
41} // namespace TC
42
43#endif /* BACKENDS_TC_TCANNOTATIONS_H_ */
Definition parseAnnotations.h:114
Definition tcAnnotations.h:25
Definition cstring.h:72
This file defines functions for the pass to generate the introspection file.
Definition backend.cpp:24