P4C
The P4 Compiler
Toggle main menu visibility
Main Page
P4C Repository Organization
Getting Started
P4C Intermediate Representation (IR)
Frontend
Midend
Backends
Behavioral Model Backend
DPDK Backend
eBPF Backend
TC Backend
uBPF Backend
P4test Backend
Graphs Backend
p4fmt (P4 Formatter)
P4Tools
P4Smith
P4Testgen
Contribute to the P4 Compiler Project
Releases
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
w
x
z
Functions
a
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
w
x
Variables
Typedefs
Enumerations
Enumerator
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
y
z
~
Functions
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
y
Typedefs
Enumerations
Enumerator
Related Symbols
►
P4 Compiler Documentation (P4C)
•
All
Classes
Namespaces
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Modules
Pages
Loading...
Searching...
No Matches
pseudoheader.h
1
18
19
#ifndef BACKENDS_TOFINO_BF_P4C_PARDE_CLOT_PSEUDOHEADER_H_
20
#define BACKENDS_TOFINO_BF_P4C_PARDE_CLOT_PSEUDOHEADER_H_
21
22
#include "backends/tofino/bf-p4c/phv/phv_fields.h"
23
#include "field_slice_set.h"
24
27
class
Pseudoheader :
public
LiftLess
<Pseudoheader> {
28
friend
class
ClotInfo;
29
30
public
:
31
const
int
id;
32
34
const
PovBitSet
pov_bits
;
35
37
const
std::vector<const PHV::Field *>
fields
;
38
39
private
:
40
static
int
nextId;
41
42
public
:
43
explicit
Pseudoheader(
const
PovBitSet
pov_bits
,
const
std::vector<const PHV::Field *>
fields
)
44
: id(nextId++),
pov_bits
(
pov_bits
),
fields
(
fields
) {}
45
47
bool
operator<
(
const
Pseudoheader &other)
const
{
return
id
< other.id; }
48
};
27
class
Pseudoheader :
public
LiftLess
<Pseudoheader> {
…
};
49
50
#endif
/* BACKENDS_TOFINO_BF_P4C_PARDE_CLOT_PSEUDOHEADER_H_ */
LiftLess
Definition
cmp.h:55
Pseudoheader::pov_bits
const PovBitSet pov_bits
The set of all POV bits under which this pseudoheader is emitted.
Definition
pseudoheader.h:34
Pseudoheader::fields
const std::vector< const PHV::Field * > fields
The sequence of fields that constitute this pseudoheader.
Definition
pseudoheader.h:37
Pseudoheader::operator<
bool operator<(const Pseudoheader &other) const
Ordering on id.
Definition
pseudoheader.h:47
backends
tofino
bf-p4c
parde
clot
pseudoheader.h
Generated by
1.13.2