P4C
The P4 Compiler
Loading...
Searching...
No Matches
detect_multiple_pipelines.h
1
22#ifndef BACKENDS_TOFINO_BF_P4C_MIDEND_DETECT_MULTIPLE_PIPELINES_H_
23#define BACKENDS_TOFINO_BF_P4C_MIDEND_DETECT_MULTIPLE_PIPELINES_H_
24
25#include "ir/ir.h"
26
27namespace BFN {
28
29// This is the visitor class for detecting multiple pipelines
31 unsigned nPipelines = 0;
32 // Checks the "main"
33 bool preorder(const IR::Declaration_Instance *) override;
34
35 public:
36 // Constructor that adds all of the passes
38 // Returns true if multiple pipelines were found
39 bool hasMultiplePipelines() { return (nPipelines > 1); }
40};
41
42} // namespace BFN
43
44#endif // BACKENDS_TOFINO_BF_P4C_MIDEND_DETECT_MULTIPLE_PIPELINES_H_
Definition detect_multiple_pipelines.h:30
Definition visitor.h:400
The namespace encapsulating Barefoot/Intel-specific stuff.
Definition add_t2na_meta.cpp:21