Poplar and PopLibs
poplar::program::Repeat Class Reference

A program that repeatedly executes for a fixed number of iterations. More...

#include <Program.hpp>

Inheritance diagram for poplar::program::Repeat:
poplar::program::Program

Public Member Functions

 Repeat (unsigned count, const Program &prog, const DebugContext &debugContext={})
 Construct a repeat program. More...
 

Detailed Description

A program that repeatedly executes for a fixed number of iterations.

For more flexible loop operations see the PopLibs functions popops::countedLoop() and popops::countedForLoop().

Constructor & Destructor Documentation

◆ Repeat()

poplar::program::Repeat::Repeat ( unsigned  count,
const Program prog,
const DebugContext debugContext = {} 
)

Construct a repeat program.

Parameters
countThe number of iterations to repeat for.
progThe program to repeatedly execute.
debugContextOptional DebugId and program name.

The documentation for this class was generated from the following file: