7#ifndef BACKENDS_P4TOOLS_COMMON_LIB_TABLE_UTILS_H_
8#define BACKENDS_P4TOOLS_COMMON_LIB_TABLE_UTILS_H_
11#include "lib/cstring.h"
13namespace P4::P4Tools::TableUtils {
18 IR::KeyElement
const *
key;
62void checkTableImmutability(
const IR::P4Table &table,
TableProperties &properties);
65std::vector<const IR::ActionListElement *> buildTableActionList(
const IR::P4Table &table);
75bool compareLPMEntries(
const IR::Entry *leftIn,
const IR::Entry *rightIn,
size_t lpmIndex);
78const IR::PathExpression *getDefaultActionName(
const IR::P4Table &table);
83const IR::Expression *computeEntryMatch(
const IR::P4Table &table,
const IR::Entry &entry,