P4C
The P4 Compiler
Loading...
Searching...
No Matches
dump_json_graph.h
1
19#ifndef BF_P4C_MAU_DUMP_JSON_GRAPH_H_
20#define BF_P4C_MAU_DUMP_JSON_GRAPH_H_
21
22#include "backends/tofino/bf-p4c/logging/pass_manager.h"
23#include "backends/tofino/bf-p4c/mau/table_dependency_graph.h"
24
25using namespace P4;
26
27class DumpJsonGraph : public PassManager {
28 FlowGraph fg;
30 Util::JsonObject *dgJson;
31 cstring passContext;
32 bool placed;
33
34 void end_apply(const IR::Node *root) override;
35
36 public:
37 DumpJsonGraph(DependencyGraph &dg, Util::JsonObject *dgJson, cstring passContext, bool placed);
38};
39
40#endif /* BF_P4C_MAU_DUMP_JSON_GRAPH_H_ */
Definition dump_json_graph.h:27
Definition node.h:94
Definition ir/pass_manager.h:40
Definition json.h:164
Definition cstring.h:85
TODO: this is not really specific to BMV2, it should reside somewhere else.
Definition applyOptionsPragmas.cpp:24
Definition table_dependency_graph.h:52
Definition table_flow_graph.h:45