This is an archive of the discontinued LLVM Phabricator instance.

[MLIR] Make `parseDimensionListRanked` configurable wrt parsing a trailing `x`
ClosedPublic

Authored by frgossen on May 17 2022, 8:28 AM.

Details

Summary

This is useful for parsing types similar to tensor or memref but w/o an element type, e.g. a tile<1x?x3>.

Diff Detail

Event Timeline

frgossen created this revision.May 17 2022, 8:28 AM
Herald added a project: Restricted Project. · View Herald Transcript
frgossen requested review of this revision.May 17 2022, 8:28 AM
frgossen edited the summary of this revision. (Show Details)May 17 2022, 8:29 AM
frgossen added a reviewer: pifon2a.
rriddle accepted this revision.May 17 2022, 10:19 AM

Could you add a test somewhere?

mlir/lib/Parser/TypeParser.cpp
528–529

What do eps and epx mean?

539
555–557
559

Can we early return success here?

566–569
This revision is now accepted and ready to land.May 17 2022, 10:19 AM
frgossen updated this revision to Diff 430286.May 18 2022, 2:14 AM
frgossen marked 5 inline comments as done.
frgossen edited the summary of this revision. (Show Details)

Address comments

Thanks!

mlir/lib/Parser/TypeParser.cpp
528–529

eps is the empty word epsilon, epx was a typo. Thanks for noticing.

This revision was landed with ongoing or failed builds.May 18 2022, 2:43 AM
This revision was automatically updated to reflect the committed changes.