| 443 | |
| 444 | template <typename OP> |
| 445 | Type getInitialType(OP op, unsigned off) { |
| 446 | ArrayAttr initialArgs = |
| 447 | op->template getAttrOfType<ArrayAttr>(InitialArgTypesAttrName); |
| 448 | if (!initialArgs) |
| 449 | return {}; |
| 450 | return cast<TypeAttr>(initialArgs[off]).getValue(); |
| 451 | } |
| 452 | |
| 453 | template <typename M> |
| 454 | struct ApplyNoiseOpRewrite |
no test coverage detected