P4C
The P4 Compiler
Loading...
Searching...
No Matches
rewrite_action_selector.h
1
19#ifndef BF_P4C_ARCH_REWRITE_ACTION_SELECTOR_H_
20#define BF_P4C_ARCH_REWRITE_ACTION_SELECTOR_H_
21
22#include "frontends/common/resolveReferences/referenceMap.h"
23#include "frontends/common/resolveReferences/resolveReferences.h"
24#include "frontends/p4/typeChecking/typeChecker.h"
25#include "ir/ir.h"
26
27namespace BFN {
28
41 P4::ReferenceMap *refMap;
42 P4::TypeMap *typeMap;
43
44 public:
46 : refMap(refMap), typeMap(typeMap) {}
47
48 const IR::Node *postorder(IR::Declaration_Instance *inst) override;
49 const IR::Node *postorder(IR::ConstructorCallExpression *cce) override;
50 const IR::Node *postorder(IR::ExpressionValue *ev) override;
51};
52
53} // namespace BFN
54
55#endif /* BF_P4C_ARCH_REWRITE_ACTION_SELECTOR_H_ */
Definition rewrite_action_selector.h:40
const IR::Node * postorder(IR::Declaration_Instance *inst) override
Definition rewrite_action_selector.cpp:28
Definition node.h:94
Class used to encode maps from paths to declarations.
Definition referenceMap.h:66
Definition visitor.h:424
Definition typeMap.h:41
The namespace encapsulating Barefoot/Intel-specific stuff.
Definition add_t2na_meta.cpp:21