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
memoize_min_stage.h
1
18
19
#ifndef BACKENDS_TOFINO_BF_P4C_PHV_ANALYSIS_MEMOIZE_MIN_STAGE_H_
20
#define BACKENDS_TOFINO_BF_P4C_PHV_ANALYSIS_MEMOIZE_MIN_STAGE_H_
21
22
#include "backends/tofino/bf-p4c/mau/table_dependency_graph.h"
23
#include "backends/tofino/bf-p4c/mau/table_summary.h"
24
#include "backends/tofino/bf-p4c/phv/mau_backtracker.h"
25
#include "backends/tofino/bf-p4c/phv/phv_fields.h"
26
27
// MemoizeStage save table stage mapping to static vairables of PhvInfo object,
28
// both physical stage and min stage.
29
class
MemoizeStage :
public
Inspector
{
30
private
:
31
const
DependencyGraph
&dg;
// for min stages
32
const
MauBacktracker
&backtracker;
// for physical stages
33
34
profile_t
init_apply(
const
IR::Node
*root)
override
;
35
bool
preorder(
const
IR::MAU::Table *tbl)
override
;
36
37
public
:
38
explicit
MemoizeStage(
const
DependencyGraph
&d,
const
MauBacktracker
&backtracker)
39
: dg(d), backtracker(backtracker) {}
40
};
29
class
MemoizeStage :
public
Inspector
{
…
};
41
42
#endif
/* BACKENDS_TOFINO_BF_P4C_PHV_ANALYSIS_MEMOIZE_MIN_STAGE_H_ */
MauBacktracker
Definition
mau_backtracker.h:29
P4::IR::Node
Definition
node.h:94
P4::Inspector
Definition
visitor.h:413
P4::Visitor::profile_t
Definition
visitor.h:78
DependencyGraph
Definition
table_dependency_graph.h:52
backends
tofino
bf-p4c
phv
analysis
memoize_min_stage.h
Generated by
1.13.2