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
•
All
Classes
Namespaces
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Modules
Pages
Loading...
Searching...
No Matches
count_strided_header_refs.h
1
19
#ifndef BACKENDS_TOFINO_BF_P4C_PARDE_COUNT_STRIDED_HEADER_REFS_H_
20
#define BACKENDS_TOFINO_BF_P4C_PARDE_COUNT_STRIDED_HEADER_REFS_H_
21
22
#include "ir/visitor.h"
23
24
using namespace
P4
;
25
26
struct
CountStridedHeaderRefs
:
public
Inspector
{
27
std::map<cstring, std::set<unsigned>> header_stack_to_indices;
28
29
bool
preorder
(
const
IR::HeaderStackItemRef *hs);
30
};
26
struct
CountStridedHeaderRefs
:
public
Inspector
{
…
};
31
32
#endif
/* BACKENDS_TOFINO_BF_P4C_PARDE_COUNT_STRIDED_HEADER_REFS_H_ */
P4::Inspector
Definition
visitor.h:400
P4
TODO: this is not really specific to BMV2, it should reside somewhere else.
Definition
applyOptionsPragmas.cpp:24
CountStridedHeaderRefs
Definition
count_strided_header_refs.h:26
CountStridedHeaderRefs::preorder
bool preorder(const IR::HeaderStackItemRef *hs)
Definition
count_strided_header_refs.cpp:23
backends
tofino
bf-p4c
parde
count_strided_header_refs.h
Generated by
1.12.0