pass.where
← pass dialect
Guard a nested pipeline body with a descriptor-backed pass predicate.
Operation contract
| Property |
Value |
| Semantic phase |
— |
| Traits |
UnknownEffects, ImplicitTerminator(pass.yield) |
Signature
| Kind |
Name |
Type |
Cardinality |
Description |
| Attribute |
predicate |
string |
required |
— |
| Attribute |
attrs |
dict |
optional |
— |
| Region |
body |
region |
required |
Body executed when the predicate matches the current context. (terminator pass.yield.) |
Examples
pass.where<name> {value = "matmul"} pipeline {
canonicalize
}
pass.where<has_attr> {name = "kernel.entry"} pipeline {
dce
}