19#ifndef BACKENDS_TOFINO_BF_P4C_COMMON_PRAGMA_COLLECT_GLOBAL_PRAGMA_H_
20#define BACKENDS_TOFINO_BF_P4C_COMMON_PRAGMA_COLLECT_GLOBAL_PRAGMA_H_
30 std::vector<const IR::Annotation *> global_pragmas_;
34 cstring getStructFieldName(
const IR::StructField *)
const;
38 bool preorder(
const IR::Annotation *)
override;
47 bool preorder(
const IR::StructField *)
override;
50 const std::vector<const IR::Annotation *> &global_pragmas()
const {
return global_pragmas_; }
56 const IR::Annotation *
exists(
const char *pragma_name)
const;
Definition collect_global_pragma.h:28
const IR::Annotation * exists(const char *pragma_name) const
Check if pragma exists.
Definition collect_global_pragma.cpp:121
static const std::vector< std::string > * g_global_pragma_names
Vector of all PHV pragmas recognized by the backend.
Definition collect_global_pragma.h:27
TODO: this is not really specific to BMV2, it should reside somewhere else.
Definition applyOptionsPragmas.cpp:24