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
15
namespace
P4::P4Tools
{
16
20
class
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_ */
P4::IR::Node
Definition
node.h:53
P4::TypeMap
Definition
typeMap.h:32
P4::P4Tools
Definition
common/compiler/compiler_result.cpp:7
backends
p4tools
common
compiler
convert_struct_expr.h
Generated by
1.13.2