17#ifndef BACKENDS_COMMON_METERMAP_H_
18#define BACKENDS_COMMON_METERMAP_H_
28 const IR::Expression *destinationField;
29 const IR::P4Table *table;
32 DirectMeterInfo() : destinationField(
nullptr), table(
nullptr), tableSize(0) {}
37 std::map<const IR::IDeclaration *, DirectMeterInfo *> directMeter;
void setSize(const IR::IDeclaration *meter, unsigned size)
Set the size of the table that a meter is attached to.
Definition metermap.cpp:80
void setDestination(const IR::IDeclaration *meter, const IR::Expression *destination)
Set the destination that a meter is attached to??
Definition metermap.cpp:63
void setTable(const IR::IDeclaration *meter, const IR::P4Table *table)
Set the table that a direct meter is attached to.
Definition metermap.cpp:34
The Declaration interface, representing objects with names.
Definition declaration.h:26
TODO: this is not really specific to BMV2, it should reside somewhere else.
Definition applyOptionsPragmas.cpp:24