P4C
The P4 Compiler
Loading...
Searching...
No Matches
convert_struct_expr.h
1/*
2 * SPDX-FileCopyrightText: 2023 The P4 Language Consortium
3 *
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7#ifndef BACKENDS_P4TOOLS_COMMON_COMPILER_CONVERT_STRUCT_EXPR_H_
8#define BACKENDS_P4TOOLS_COMMON_COMPILER_CONVERT_STRUCT_EXPR_H_
9
10#include "frontends/p4/typeMap.h"
11#include "ir/ir.h"
12#include "ir/node.h"
13#include "ir/visitor.h"
14
15namespace P4::P4Tools {
16
20class ConvertStructExpr : public Transform {
21 private:
22 const P4::TypeMap *typeMap;
23
24 public:
25 explicit ConvertStructExpr(const P4::TypeMap *typeMap);
26
27 const IR::Node *postorder(IR::StructExpression *expr) override;
28};
29
30} // namespace P4::P4Tools
31
32#endif /* BACKENDS_P4TOOLS_COMMON_COMPILER_CONVERT_STRUCT_EXPR_H_ */
Definition node.h:53
Definition typeMap.h:32
Definition common/compiler/compiler_result.cpp:7