19#ifndef BACKENDS_TOFINO_BF_P4C_PARDE_MATCH_REGISTER_H_
20#define BACKENDS_TOFINO_BF_P4C_PARDE_MATCH_REGISTER_H_
24#include "lib/cstring.h"
38 bool operator==(
const MatchRegister &other)
const {
return name == other.name; }
51 if (size < other.size)
return true;
52 if (other.size < size)
return false;
53 if (
id < other.id)
return true;
54 if (other.id >
id)
return false;
58 friend std::ostream &operator<<(std::ostream &out,
const MatchRegister &c);
61inline std::ostream &operator<<(std::ostream &out,
const MatchRegister &c) {
return out << c.name; }
Definition json_generator.h:36
Definition json_loader.h:38
Definition match_register.h:31
void toJSON(JSONGenerator &json) const
JSON serialization/deserialization.
Definition match_register.cpp:46
static int s_id
Definition match_register.h:48
TODO: this is not really specific to BMV2, it should reside somewhere else.
Definition applyOptionsPragmas.cpp:24