P4C
The P4 Compiler
Loading...
Searching...
No Matches
thread_visitor.h
1
19
#ifndef BF_P4C_IR_THREAD_VISITOR_H_
20
#define BF_P4C_IR_THREAD_VISITOR_H_
21
22
#include "ir/ir.h"
23
24
class
ThreadVisitor
:
public
virtual
Visitor {
25
friend
class
IR::BFN::Pipe;
26
gress_t thread;
27
28
public
:
29
explicit
ThreadVisitor
(gress_t th) : thread(th) {}
30
friend
gress_t VisitingThread(
ThreadVisitor
*v) {
return
v->thread; }
31
};
32
33
extern
gress_t VisitingThread(
const
Visitor *v);
34
35
#endif
/* BF_P4C_IR_THREAD_VISITOR_H_ */
ThreadVisitor
Definition
thread_visitor.h:24
backends
tofino
bf-p4c
ir
thread_visitor.h
Generated by
1.12.0