P4C
The P4 Compiler
Loading...
Searching...
No Matches
debug_info.h
1
19#ifndef BACKENDS_TOFINO_BF_P4C_COMMON_DEBUG_INFO_H_
20#define BACKENDS_TOFINO_BF_P4C_COMMON_DEBUG_INFO_H_
21
22#include <vector>
23
24#include "lib/cstring.h"
25
26using namespace P4;
27
28namespace BFN {
29
33struct DebugInfo {
35 void mergeWith(const DebugInfo &other) {
36 info.insert(info.end(), other.info.begin(), other.info.end());
37 }
38
39 std::vector<cstring> info;
40};
41
42} // namespace BFN
43
44#endif /* BACKENDS_TOFINO_BF_P4C_COMMON_DEBUG_INFO_H_ */
The namespace encapsulating Barefoot/Intel-specific stuff.
Definition add_t2na_meta.cpp:21
TODO: this is not really specific to BMV2, it should reside somewhere else.
Definition applyOptionsPragmas.cpp:24
Definition debug_info.h:33
void mergeWith(const DebugInfo &other)
Merge the contents of another DebugInfo object into this one.
Definition debug_info.h:35