This is an archive of the discontinued LLVM Phabricator instance.

[mlir][linalg] ValueBoundsOpInterface: Add support for linalg.index
ClosedPublic

Authored by springerm on Apr 17 2023, 6:46 PM.

Diff Detail

Event Timeline

springerm created this revision.Apr 17 2023, 6:46 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 17 2023, 6:46 PM
springerm requested review of this revision.Apr 17 2023, 6:46 PM
kuhar added inline comments.Apr 18 2023, 7:09 AM
mlir/lib/Dialect/Linalg/IR/ValueBoundsOpInterfaceImpl.cpp
34

nit: prefer free cast functions: https://mlir.llvm.org/deprecation/

also below

36

nit: is there a more descriptive name we could use?

mlir/test/Dialect/Linalg/value-bounds-op-interface-impl.mlir
53

nice! Would it be worth also checking that the LB is 0?

springerm marked 3 inline comments as done.Apr 18 2023, 7:50 PM
springerm added inline comments.
mlir/lib/Dialect/Linalg/IR/ValueBoundsOpInterfaceImpl.cpp
34

This does not work for AffineExpr yet.

springerm updated this revision to Diff 514809.Apr 18 2023, 7:50 PM
springerm marked an inline comment as done.

address comments

kuhar accepted this revision.Apr 18 2023, 8:10 PM
This revision is now accepted and ready to land.Apr 18 2023, 8:10 PM