19#ifndef BF_P4C_PARDE_ADD_PARDE_METADATA_H_
20#define BF_P4C_PARDE_ADD_PARDE_METADATA_H_
22#include "parde_visitor.h"
36 explicit AddParserMetadata(
const IR::BFN::Pipe *pipe,
bool isV1) : pipe(pipe), isV1(isV1) {
41 bool preorder(IR::BFN::Parser *)
override;
43 void addIngressMetadata(IR::BFN::Parser *d);
44 void addEgressMetadata(IR::BFN::Parser *d);
46 void addTofinoIngressParserEntryPoint(IR::BFN::Parser *);
47 void addTofinoEgressParserEntryPoint(IR::BFN::Parser *);
49 const IR::BFN::Pipe *pipe;
69 bool preorder(IR::BFN::Deparser *)
override;
75 void addEgressMetadata(IR::BFN::Deparser *d);
77 const IR::BFN::Pipe *pipe;
bool preorder(IR::BFN::Deparser *) override
Process the deparser instances to add parameters.
Definition add_parde_metadata.cpp:137
void addIngressMetadata(IR::BFN::Deparser *d)
Add ingress deparser parameters.
Definition add_parde_metadata.cpp:158
Definition parde_visitor.h:129
Definition parde_visitor.h:78