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
add_special_constraints.h
1
18
19
#ifndef BF_P4C_PHV_ADD_SPECIAL_CONSTRAINTS_H_
20
#define BF_P4C_PHV_ADD_SPECIAL_CONSTRAINTS_H_
21
22
#include "backends/tofino/bf-p4c/parde/decaf.h"
23
#include "backends/tofino/bf-p4c/phv/action_phv_constraints.h"
24
#include "backends/tofino/bf-p4c/phv/phv_fields.h"
25
#include "backends/tofino/bf-p4c/phv/pragma/phv_pragmas.h"
26
#include "ir/ir.h"
27
40
class
AddSpecialConstraints :
public
Inspector
{
41
private
:
42
PhvInfo
&phv_i;
44
PHV::Pragmas
&pragmas_i;
46
const
ActionPhvConstraints
&actions_i;
47
const
DeparserCopyOpt
&decaf_i;
48
50
std::set<cstring> seen_hdr_i;
51
52
profile_t
init_apply(
const
IR::Node
*root)
override
;
53
58
bool
preorder(
const
IR::BFN::ChecksumVerify *verify)
override
;
59
bool
preorder(
const
IR::BFN::ChecksumResidualDeposit *get)
override
;
60
62
bool
preorder(
const
IR::Concat *)
override
;
63
bool
preorder(
const
IR::Cast *)
override
;
64
65
bool
preorder(
const
IR::ConcreteHeaderRef *hr)
override
;
66
67
void
end_apply()
override
;
68
69
public
:
70
explicit
AddSpecialConstraints(
PhvInfo
&phv,
PHV::Pragmas
&pragmas,
71
const
ActionPhvConstraints
&actions,
72
const
DeparserCopyOpt
&decaf)
73
: phv_i(phv), pragmas_i(pragmas), actions_i(actions), decaf_i(decaf) {}
74
};
40
class
AddSpecialConstraints :
public
Inspector
{
…
};
75
76
#endif
/* BF_P4C_PHV_ADD_SPECIAL_CONSTRAINTS_H_ */
ActionPhvConstraints
Definition
action_phv_constraints.h:107
P4::IR::Node
Definition
node.h:94
P4::Inspector
Definition
visitor.h:413
P4::Visitor::profile_t
Definition
visitor.h:78
PHV::Pragmas
Definition
phv_pragmas.h:46
PhvInfo
Definition
phv_fields.h:1095
DeparserCopyOpt
Top level PassManager.
Definition
decaf.h:749
backends
tofino
bf-p4c
phv
add_special_constraints.h
Generated by
1.13.2