P4C
The P4 Compiler
Loading...
Searching...
No Matches
phv_allocation_v2.h
1
19
#ifndef BF_P4C_PHV_V2_PHV_ALLOCATION_V2_H_
20
#define BF_P4C_PHV_V2_PHV_ALLOCATION_V2_H_
21
22
#include "bf-p4c/phv/mau_backtracker.h"
23
#include "bf-p4c/phv/utils/utils.h"
24
#include "bf-p4c/phv/v2/phv_kit.h"
25
#include "lib/cstring.h"
26
27
namespace
PHV
{
28
namespace
v2 {
29
30
class
PhvAllocation
:
public
Visitor
{
31
const
PhvKit
&kit_i;
32
const
MauBacktracker
&mau_bt_i;
33
PhvInfo
&phv_i;
34
int
pipe_id_i = -1;
35
36
const
IR::Node
*apply_visitor(
const
IR::Node
*root,
const
char
*name = 0)
override
;
37
38
public
:
39
PhvAllocation
(
const
PhvKit
&kit,
const
MauBacktracker
&mau,
PhvInfo
&phv)
40
: kit_i(kit), mau_bt_i(mau), phv_i(phv) {}
41
};
42
43
}
// namespace v2
44
}
// namespace PHV
45
46
#endif
/* BF_P4C_PHV_V2_PHV_ALLOCATION_V2_H_ */
MauBacktracker
Definition
mau_backtracker.h:29
P4::IR::Node
Definition
node.h:95
P4::Visitor
Definition
visitor.h:75
PHV::v2::PhvAllocation
Definition
phv_allocation_v2.h:30
PhvInfo
Definition
phv_fields.h:1095
PHV
The namespace encapsulating PHV-related stuff.
Definition
gateway.h:32
PHV::v2::PhvKit
Definition
phv_kit.h:46
backends
tofino
bf-p4c
phv
v2
phv_allocation_v2.h
Generated by
1.12.0