P4C
The P4 Compiler
Loading...
Searching...
No Matches
adjust_extract.h
1
19#ifndef BACKENDS_TOFINO_BF_P4C_PARDE_ADJUST_EXTRACT_H_
20#define BACKENDS_TOFINO_BF_P4C_PARDE_ADJUST_EXTRACT_H_
21
22#include "backends/tofino/bf-p4c/parde/parde_visitor.h"
23#include "backends/tofino/bf-p4c/phv/phv_fields.h"
24#include "ir/ir.h"
25
35 const PhvInfo &phv;
36
38 void postorder(IR::BFN::ParserState *state) override;
39
45 std::pair<size_t, size_t> calcPrePadding(const PHV::Field *field);
46
48 bool hasMarshaled(const IR::BFN::ParserState *state);
49
50 public:
51 explicit AdjustExtract(const PhvInfo &phv) : phv(phv) {}
52};
53
54#endif /* BACKENDS_TOFINO_BF_P4C_PARDE_ADJUST_EXTRACT_H_ */
Definition phv_fields.h:154
Definition phv_fields.h:1095
Adjusts extractions that extract from fields that are serialized from phv container,...
Definition adjust_extract.h:34
Definition parde_visitor.h:37