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
13
namespace
P4
{
14
15
class
FillEnumMap :
public
Transform
{
16
public
:
17
ConvertEnums::EnumMapping repr;
18
ChooseEnumRepresentation
*policy;
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_ */
P4::ChooseEnumRepresentation
Definition
convertEnums.h:20
P4::IR::Node
Definition
node.h:53
P4::Transform
Definition
visitor.h:442
P4::TypeMap
Definition
typeMap.h:32
P4
TODO: this is not really specific to BMV2, it should reside somewhere else.
Definition
applyOptionsPragmas.cpp:13
midend
fillEnumMap.h
Generated by
1.13.2