P4C
The P4 Compiler
Loading...
Searching...
No Matches
const_mirror_session_opt.h
1
19
#ifndef BF_P4C_PARDE_MIRROR_CONST_MIRROR_SESSION_OPT_H_
20
#define BF_P4C_PARDE_MIRROR_CONST_MIRROR_SESSION_OPT_H_
21
22
#include "bf-p4c/parde/parde_visitor.h"
23
55
class
ConstMirrorSessionOpt
final :
public
DeparserTransform
{
56
const
PhvInfo
&phv;
57
58
public
:
59
ConstMirrorSessionOpt
(
PhvInfo
&phv) : phv(phv) {}
60
61
IR::Node *preorder(IR::BFN::Deparser *dp)
override
{
62
if
(dp->gress != INGRESS) prune();
63
return
dp;
64
}
65
IR::Node *preorder(IR::BFN::Digest *dfl)
override
;
66
IR::Node *preorder(IR::TempVar *tv)
override
;
67
};
68
69
#endif
/* BF_P4C_PARDE_MIRROR_CONST_MIRROR_SESSION_OPT_H_ */
ConstMirrorSessionOpt
Definition
const_mirror_session_opt.h:55
PhvInfo
Definition
phv_fields.h:1095
DeparserTransform
Definition
parde_visitor.h:141
backends
tofino
bf-p4c
parde
mirror
const_mirror_session_opt.h
Generated by
1.12.0