P4C
The P4 Compiler
Loading...
Searching...
No Matches
convert_hs_index.h
1
#ifndef BACKENDS_P4TOOLS_COMMON_COMPILER_CONVERT_HS_INDEX_H_
2
#define BACKENDS_P4TOOLS_COMMON_COMPILER_CONVERT_HS_INDEX_H_
3
4
#include <cstddef>
5
6
#include "ir/ir.h"
7
#include "ir/node.h"
8
#include "ir/visitor.h"
9
10
namespace
P4Tools
{
11
13
class
HSIndexToMember
:
public
Transform {
14
public
:
15
const
IR::Node *postorder(IR::ArrayIndex *curArrayIndex)
override
;
16
19
static
const
IR::ArrayIndex *
produceStackIndex
(
const
IR::Type *type,
20
const
IR::Expression *expression,
21
size_t
arrayIndex);
22
};
23
24
}
// namespace P4Tools
25
26
#endif
/* BACKENDS_P4TOOLS_COMMON_COMPILER_CONVERT_HS_INDEX_H_ */
P4Tools::HSIndexToMember
The main class for finding non-concrete header stack indices.
Definition
convert_hs_index.h:13
P4Tools::HSIndexToMember::produceStackIndex
static const IR::ArrayIndex * produceStackIndex(const IR::Type *type, const IR::Expression *expression, size_t arrayIndex)
Definition
convert_hs_index.cpp:18
P4Tools
Definition
compiler_target.cpp:19
backends
p4tools
common
compiler
convert_hs_index.h
Generated on Tue Mar 26 2024 for