1#ifndef BACKENDS_P4TOOLS_MODULES_TESTGEN_TARGETS_BMV2_MAP_DIRECT_EXTERNS_H_
2#define BACKENDS_P4TOOLS_MODULES_TESTGEN_TARGETS_BMV2_MAP_DIRECT_EXTERNS_H_
10#include "lib/cstring.h"
27 static constexpr std::array kTableExternProperties = {
"meters",
"counters"};
30 std::map<cstring, const IR::Declaration_Instance *> declaredExterns;
37 std::optional<const IR::Declaration_Instance *> getExternFromTableImplementation(
38 const IR::Property *tableImplementation);
40 bool preorder(
const IR::Declaration_Instance *declInstance)
override;
41 bool preorder(
const IR::P4Table *table)
override;