[Mlir-commits] [mlir] [mlir][Affine] Genarilze the linearize(delinearize()) simplifications (PR #117637)
Abhishek Varma
llvmlistbot at llvm.org
Thu Nov 28 02:03:11 PST 2024
================
@@ -1083,6 +1083,9 @@ def AffineDelinearizeIndexOp : Affine_Op<"delinearize_index", [Pure]> {
%indices_2 = affine.apply #map2()[%linear_index]
```
+ In other words, `%0:3 = affine.delinearize_index %x into (B, C)` produces
+ `%0 = {%x / (B * C), (%x mod (B * C)) / C, %x mod C}`.
----------------
Abhishek-Varma wrote:
Thanks for this!
https://github.com/llvm/llvm-project/pull/117637
More information about the Mlir-commits
mailing list