Closed jtuyls closed 1 month ago
@qedawkins was also looking for this. Maybe we can just move it into iree
Hi @MaheshRavishankar - I feel this is more suited to be upstreamed into LLVM instead of IREE.
I'd love to see this either upstream or in IREE!
@qedawkins was also looking for this. Maybe we can just move it into iree
Hi @MaheshRavishankar - I feel this is more suited to be upstreamed into LLVM instead of IREE.
Upstream would work too.. Should be as simple as just exposing this method https://github.com/llvm/llvm-project/blob/b17d44558ba4c30a3005089b334f68593d6a9c7c/mlir/lib/Dialect/SCF/Utils/Utils.cpp#L485
It unfortunately cant use the affine stuff, but does a reasonable job.
I created an upstream PR for a longer term solution: https://github.com/llvm/llvm-project/pull/93781, so let's move those discussions to that PR. But I would like to still merge this one as a temporary solution. Could you check again @Abhishek-Varma ?
cc @MaheshRavishankar
@qedawkins was also looking for this. Maybe we can just move it into iree