Skip to content

pass.repeat

pass dialect

Repeat a nested pipeline body.

Operation contract

Property Value
Semantic phase
Traits UnknownEffects, ImplicitTerminator(pass.yield)

Signature

Kind Name Type Cardinality Description
Attribute mode enum PassRepeatMode required
Attribute count i64 optional
Attribute max_iterations i64 optional
Region body region required Body executed according to the repeat mode. (terminator pass.yield.)

Examples

pass.repeat<fixed> {count = 2} pipeline {
  canonicalize
}
pass.repeat<until_converged> {max_iterations = 10} pipeline {
  cse
}