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 "bf-p4c/parde/parde_visitor.h"
23
#include "bf-p4c/phv/phv_fields.h"
24
#include "ir/ir.h"
25
34
class
AdjustExtract
:
public
PardeModifier
{
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_ */
PHV::Field
Definition
phv_fields.h:154
PhvInfo
Definition
phv_fields.h:1095
AdjustExtract
Adjusts extractions that extract from fields that are serialized from phv container,...
Definition
adjust_extract.h:34
PardeModifier
Definition
parde_visitor.h:37
backends
tofino
bf-p4c
parde
adjust_extract.h
Generated by
1.12.0