P4C
The P4 Compiler
Loading...
Searching...
No Matches
copy_header.h
1
19#ifndef BACKENDS_TOFINO_BF_P4C_MIDEND_COPY_HEADER_H_
20#define BACKENDS_TOFINO_BF_P4C_MIDEND_COPY_HEADER_H_
21
22#include "frontends/p4/typeChecking/typeChecker.h"
23#include "ir/ir.h"
24
25// Whilst the original PR consolidated code, moving it out of the back-end and
26// canonicalising the IR sooner, it caused ripples that caused issue to the PHV allocator.
27// For now, we only partially implement the PR by setting `ENABLE_P4C3251 0`.
28#define ENABLE_P4C3251 0
29
30namespace BFN {
31
32class CopyHeaders : public PassRepeated {
33 public:
34 CopyHeaders(P4::ReferenceMap *refMap, P4::TypeMap *typeMap, P4::TypeChecking *typeChecking);
35};
36
37} // namespace BFN
38
39#endif /* BACKENDS_TOFINO_BF_P4C_MIDEND_COPY_HEADER_H_ */
Definition copy_header.h:32
Definition ir/pass_manager.h:145
Class used to encode maps from paths to declarations.
Definition referenceMap.h:66
Definition typeChecker.h:55
Definition typeMap.h:41
The namespace encapsulating Barefoot/Intel-specific stuff.
Definition add_t2na_meta.cpp:21