P4C
The P4 Compiler
|
The interface that the iterator must satisfy. More...
#include <types.h>
Public Member Functions | |
virtual void | invalidate (const SuperCluster::SliceList *sl)=0 |
virtual void | iterate (const IterateCb &cb)=0 |
iterate will pass valid slicing results to cb. Stop when cb returns false. | |
virtual void | set_config (const IteratorConfig &cfg)=0 |
set iterator configs. | |
The interface that the iterator must satisfy.
|
pure virtual |
invalidate is the feedback mechanism for allocation algorithm to ask iterator to not produce slicing result contains sl
.
Implemented in PHV::Slicing::DfsItrContext, and PHV::Slicing::ItrContext.
|
pure virtual |
iterate will pass valid slicing results to cb. Stop when cb returns false.
Implemented in PHV::Slicing::DfsItrContext, and PHV::Slicing::ItrContext.
|
pure virtual |
set iterator configs.
Implemented in PHV::Slicing::DfsItrContext, and PHV::Slicing::ItrContext.