P4C
The P4 Compiler
Loading...
Searching...
No Matches
tcAnnotations.h
1
/*
2
Copyright (C) 2023 Intel Corporation
3
4
Licensed under the Apache License, Version 2.0 (the "License");
5
you may not use this file except in compliance with the License.
6
You may obtain a copy of the License at
7
8
http://www.apache.org/licenses/LICENSE-2.0
9
10
Unless required by applicable law or agreed to in writing,
11
software distributed under the License is distributed on an "AS IS" BASIS,
12
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
See the License for the specific language governing permissions
14
and 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
23
namespace
TC
{
24
25
class
ParseTCAnnotations
:
public
P4::ParseAnnotations
{
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;
33
ParseTCAnnotations
()
34
:
P4::ParseAnnotations
(
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_ */
P4::ParseAnnotations
Definition
parseAnnotations.h:114
TC::ParseTCAnnotations
Definition
tcAnnotations.h:25
cstring
Definition
cstring.h:72
TC
This file defines functions for the pass to generate the introspection file.
Definition
backend.cpp:24
backends
tc
tcAnnotations.h
Generated on Tue Mar 26 2024 for