P4C
The P4 Compiler
Loading...
Searching...
No Matches
fillEnumMap.h
1/*
2 * Copyright 2019 RT-RK Computer Based Systems.
3 * SPDX-FileCopyrightText: 2019 RT-RK Computer Based Systems.
4 *
5 * SPDX-License-Identifier: Apache-2.0
6 */
7
8#ifndef MIDEND_FILLENUMMAP_H_
9#define MIDEND_FILLENUMMAP_H_
10
11#include "convertEnums.h"
12
13namespace P4 {
14
15class FillEnumMap : public Transform {
16 public:
17 ConvertEnums::EnumMapping repr;
19 TypeMap *typeMap;
20 FillEnumMap(ChooseEnumRepresentation *policy, TypeMap *typeMap)
21 : policy(policy), typeMap(typeMap) {
22 CHECK_NULL(policy);
23 CHECK_NULL(typeMap);
24 setName("FillEnumMap");
25 }
26 const IR::Node *preorder(IR::Type_Enum *type) override;
27};
28
29} // namespace P4
30
31#endif /* MIDEND_FILLENUMMAP_H_ */
Definition convertEnums.h:20
Definition node.h:53
Definition visitor.h:442
Definition typeMap.h:32
TODO: this is not really specific to BMV2, it should reside somewhere else.
Definition applyOptionsPragmas.cpp:13