P4C
The P4 Compiler
Loading...
Searching...
No Matches
pa_solitary.h
1
19#ifndef BACKENDS_TOFINO_BF_P4C_PHV_PRAGMA_PA_SOLITARY_H_
20#define BACKENDS_TOFINO_BF_P4C_PHV_PRAGMA_PA_SOLITARY_H_
21
22#include "backends/tofino/bf-p4c/phv/phv_fields.h"
23#include "ir/ir.h"
24
25using namespace P4;
26
27class PragmaSolitary : public Inspector {
28 PhvInfo &phv_i;
29
30 bool preorder(const IR::BFN::Pipe *pipe) override;
31
32 public:
33 explicit PragmaSolitary(PhvInfo &phv) : phv_i(phv) {}
34
36 static const char *name;
37 static const char *description;
38 static const char *help;
39};
40
41#endif /* BACKENDS_TOFINO_BF_P4C_PHV_PRAGMA_PA_SOLITARY_H_ */
Definition visitor.h:400
Definition phv_fields.h:1095
Definition pa_solitary.h:27
static const char * name
BFN::Pragma interface.
Definition pa_solitary.h:36
TODO: this is not really specific to BMV2, it should reside somewhere else.
Definition applyOptionsPragmas.cpp:24