This is an archive of the discontinued LLVM Phabricator instance.

[mlir][Linalg] Change signature of `get(Parallel/Reduce/Window)Dims` method.
ClosedPublic

Authored by mravishankar on Dec 30 2021, 1:31 PM.

Details

Summary

These method currently takes a SmallVector<AffineExpr> & as an
argument to return the dims as AffineExpr. This creation of
AffineExpr objects is unnecessary.

Diff Detail

Event Timeline

mravishankar created this revision.Dec 30 2021, 1:31 PM
mravishankar requested review of this revision.Dec 30 2021, 1:31 PM
mehdi_amini accepted this revision.Dec 30 2021, 1:37 PM
mehdi_amini added inline comments.
mlir/lib/Dialect/Linalg/IR/LinalgInterfaces.cpp
640–643

Since we're here: can you make types explicit here?

This revision is now accepted and ready to land.Dec 30 2021, 1:37 PM

Remove unused methods

Address comment.

mravishankar marked an inline comment as done.Dec 30 2021, 1:39 PM