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
26class PhvInfo;
27
35class 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_ */
Definition phv_fields.h:1095
Splits padding after PHV allocation to prevent extracted padding spanning multiple containers.
Definition split_padding.h:35
const IR::Node * preorder(IR::BFN::ParserState *state) override
Split padding extracts that span container boundaries.
Definition split_padding.cpp:29