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
10namespace P4::P4Tools {
11
13class 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 P4::P4Tools
25
26#endif /* BACKENDS_P4TOOLS_COMMON_COMPILER_CONVERT_HS_INDEX_H_ */
Definition node.h:94
The main class for finding non-concrete header stack indices.
Definition convert_hs_index.h:13
static const IR::ArrayIndex * produceStackIndex(const IR::Type *type, const IR::Expression *expression, size_t arrayIndex)
Definition convert_hs_index.cpp:18
Definition visitor.h:424
Definition common/compiler/compiler_result.cpp:3