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 "backends/tofino/bf-p4c/parde/parde_visitor.h"
23
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_ */
Definition const_mirror_session_opt.h:55
Definition phv_fields.h:1095
Definition parde_visitor.h:141