This is an archive of the discontinued LLVM Phabricator instance.

[mlir] Update how scalable indices are printed
ClosedPublic

Authored by awarzynski on Jun 2 2023, 12:37 AM.

Details

Summary

This patch makes sure that scalable indices (that would normally
represent scalable tile or vector sizes) are printed correctly, i.e.
with additional square brackets:

%1, %loop = transform.structured.tile %0 [2, 8, [4]]

This change complements https://reviews.llvm.org/D150944 and is a part
of a larger effort to enable scalable vectorisation in Linalg. See this
RFC for more context:

Diff Detail

Event Timeline

awarzynski created this revision.Jun 2 2023, 12:37 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 2 2023, 12:37 AM
awarzynski requested review of this revision.Jun 2 2023, 12:37 AM
ftynse accepted this revision.Jun 2 2023, 12:48 AM
ftynse added inline comments.
mlir/include/mlir/Interfaces/ViewLikeInterface.h
55

Mlir code uses markdown-style backticks for inline code in comments rather than doxygen tags. If it had been using tags, it would have been \p rather than /p.

mlir/lib/Dialect/SCF/IR/SCF.cpp
1224

The function has the default value for isTrailingIdxScalable, no need to repeat it here and below.

This revision is now accepted and ready to land.Jun 2 2023, 12:48 AM

Thank you for the review - I'll address your comments before landing this.

This revision was landed with ongoing or failed builds.Jun 2 2023, 9:04 AM
This revision was automatically updated to reflect the committed changes.