Update affine.for loop unroll utility for iteration arguments support.
Fix promoteIfSingleIteration as well.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/lib/Transforms/Utils/LoopUtils.cpp | ||
---|---|---|
153 | I explored that but we unfortunately can't since not all ops that implement the LoopLikeOpInterface have a getIterOperands, getRegionIterArgs, or results. |
Even if we limit the utility only to SCF and Affine for ops, would it be possible to use LoopLikeInterface here instead of the the template?