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
detect_multiple_pipelines.h
1
22
#ifndef BACKENDS_TOFINO_BF_P4C_MIDEND_DETECT_MULTIPLE_PIPELINES_H_
23
#define BACKENDS_TOFINO_BF_P4C_MIDEND_DETECT_MULTIPLE_PIPELINES_H_
24
25
#include "ir/ir.h"
26
27
namespace
BFN
{
28
29
// This is the visitor class for detecting multiple pipelines
30
class
DetectMultiplePipelines
:
public
Inspector
{
31
unsigned
nPipelines = 0;
32
// Checks the "main"
33
bool
preorder(
const
IR::Declaration_Instance *)
override
;
34
35
public
:
36
// Constructor that adds all of the passes
37
DetectMultiplePipelines
() {}
38
// Returns true if multiple pipelines were found
39
bool
hasMultiplePipelines() {
return
(nPipelines > 1); }
40
};
30
class
DetectMultiplePipelines
:
public
Inspector
{
…
};
41
42
}
// namespace BFN
43
44
#endif
// BACKENDS_TOFINO_BF_P4C_MIDEND_DETECT_MULTIPLE_PIPELINES_H_
BFN::DetectMultiplePipelines
Definition
detect_multiple_pipelines.h:30
P4::Inspector
Definition
visitor.h:400
BFN
The namespace encapsulating Barefoot/Intel-specific stuff.
Definition
add_t2na_meta.cpp:21
backends
tofino
bf-p4c
midend
detect_multiple_pipelines.h
Generated by
1.12.0