P4C
The P4 Compiler
Loading...
Searching...
No Matches
split_padding.h
1
19
#ifndef BF_P4C_PHV_SPLIT_PADDING_H_
20
#define BF_P4C_PHV_SPLIT_PADDING_H_
21
22
#include <ir/ir.h>
23
24
#include "ir/visitor.h"
25
26
class
PhvInfo
;
27
35
class
SplitPadding
:
public
Transform {
36
protected
:
37
const
PhvInfo
&phv;
38
39
const
IR::Node *
preorder
(IR::BFN::ParserState *state)
override
;
40
41
public
:
42
explicit
SplitPadding
(
const
PhvInfo
&phv) : phv(phv) {}
43
};
44
45
#endif
/* BF_P4C_PHV_SPLIT_PADDING_H_ */
PhvInfo
Definition
phv_fields.h:1095
SplitPadding
Splits padding after PHV allocation to prevent extracted padding spanning multiple containers.
Definition
split_padding.h:35
SplitPadding::preorder
const IR::Node * preorder(IR::BFN::ParserState *state) override
Split padding extracts that span container boundaries.
Definition
split_padding.cpp:29
backends
tofino
bf-p4c
phv
split_padding.h
Generated by
1.12.0