P4C
The P4 Compiler
Loading...
Searching...
No Matches
convert_varbits.h
1/*
2 * SPDX-FileCopyrightText: 2022 The P4 Language Consortium
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#ifndef BACKENDS_P4TOOLS_COMMON_COMPILER_CONVERT_VARBITS_H_
8#define BACKENDS_P4TOOLS_COMMON_COMPILER_CONVERT_VARBITS_H_
9
10#include "frontends/common/resolveReferences/referenceMap.h"
11#include "frontends/p4/typeMap.h"
12#include "ir/ir.h"
13#include "ir/node.h"
14#include "ir/visitor.h"
15#include "lib/null.h"
16
17namespace P4::P4Tools {
18
22class ConvertVarbits : public Transform {
23 public:
24 ConvertVarbits();
25
26 const IR::Node *postorder(IR::Type_Varbits *varbit) override;
27
28 const IR::Node *postorder(IR::Expression *expr) override;
29};
30
31} // namespace P4::P4Tools
32
33#endif /* BACKENDS_P4TOOLS_COMMON_COMPILER_CONVERT_VARBITS_H_ */
Definition node.h:53
Definition common/compiler/compiler_result.cpp:7