19#ifndef BF_P4C_PARDE_EXTRACT_PARSER_H_
20#define BF_P4C_PARDE_EXTRACT_PARSER_H_
22#include "backends/tofino/bf-p4c/bf-p4c-options.h"
23#include "backends/tofino/bf-p4c/ir/gress.h"
24#include "backends/tofino/bf-p4c/parde/parde_visitor.h"
25#include "frontends/common/resolveReferences/referenceMap.h"
26#include "frontends/p4/typeMap.h"
28#include "lib/cstring.h"
29#include "lib/exceptions.h"
30#include "logging/pass_manager.h"
60 : refMap(refMap), typeMap(typeMap), rv(rv), arch(arch) {
61 setName(
"ExtractParser");
63 void postorder(
const IR::BFN::TnaParser *parser)
override;
64 void end_apply()
override;
66 profile_t init_apply(
const IR::Node *root)
override {
67 if (BackendOptions().verbose > 0)
69 return ParserInspector::init_apply(root);
Definition extract_parser.h:81
ProcessParde(const IR::BFN::Pipe *rv, bool useTna)
Definition extract_parser.cpp:1852
A FileLog is used to redirect the logging output of a visitor pass to a file.
Definition filelog.h:48
Definition backends/tofino/bf-p4c/logging/pass_manager.h:36
Class used to encode maps from paths to declarations.
Definition referenceMap.h:66
Definition parde_visitor.h:66
The namespace encapsulating Barefoot/Intel-specific stuff.
Definition add_t2na_meta.cpp:21
The namespace encapsulating IR node classes.
TODO: this is not really specific to BMV2, it should reside somewhere else.
Definition applyOptionsPragmas.cpp:24