P4C
The P4 Compiler
Loading...
Searching...
No Matches
front_end_policy.h
1
19#ifndef BACKENDS_TOFINO_BF_P4C_COMMON_FRONT_END_POLICY_H_
20#define BACKENDS_TOFINO_BF_P4C_COMMON_FRONT_END_POLICY_H_
21
22#include "frontends/p4/frontend.h"
23
24namespace BFN {
25
27 P4::ParseAnnotations *getParseAnnotations() const override { return pars; }
28
29 bool skipSideEffectOrdering() const override { return skip_side_effect_ordering; }
30
31 explicit FrontEndPolicy(P4::ParseAnnotations *parseAnnotations)
32 : pars(parseAnnotations), skip_side_effect_ordering(false) {}
33
34 explicit FrontEndPolicy(P4::ParseAnnotations *parseAnnotations, bool skip_side_effect_ordering)
35 : pars(parseAnnotations), skip_side_effect_ordering(skip_side_effect_ordering) {}
36
37 private:
39 bool skip_side_effect_ordering;
40};
41
42} // namespace BFN
43
44#endif /* BACKENDS_TOFINO_BF_P4C_COMMON_FRONT_END_POLICY_H_ */
Definition frontends/p4/frontend.h:32
Definition parseAnnotations.h:114
The namespace encapsulating Barefoot/Intel-specific stuff.
Definition add_t2na_meta.cpp:21
P4::ParseAnnotations * getParseAnnotations() const override
Definition front_end_policy.h:27
bool skipSideEffectOrdering() const override
Definition front_end_policy.h:29