[Mlir-commits] [mlir] [MLIR][Affine] Add canonicalization pattern to have constant basis attr for affine.delinearize_index/linearize_index (PR #117572)

Abhishek Varma llvmlistbot at llvm.org
Mon Nov 25 22:40:25 PST 2024


Abhishek-Varma wrote:

> I figure that this can be done in `fold()`, looking at whether the `getDynamicBasis()` adaptor has some non-null `Attribute`s

Hi @krzysz00 - I've made the changes. I figured I've to use `MutableOperandRange` for updating the dynamic basis - hence wasn't able to work with `::fold` earlier.

Please take a look. Thanks!

https://github.com/llvm/llvm-project/pull/117572


More information about the Mlir-commits mailing list