This is an archive of the discontinued LLVM Phabricator instance.

[MLIR] NFC. Drop trailing white space in GPU async ops print
ClosedPublic

Authored by bondhugula on Apr 13 2022, 7:28 PM.

Details

Summary

NFC. Drop trailing end of line white space in GPU async ops' printer
whenever the list of async deps is empty.

Diff Detail

Event Timeline

bondhugula created this revision.Apr 13 2022, 7:28 PM
Herald added a project: Restricted Project. · View Herald Transcript
bondhugula requested review of this revision.Apr 13 2022, 7:28 PM
rriddle added inline comments.Apr 13 2022, 11:31 PM
mlir/lib/Dialect/GPU/IR/GPUDialect.cpp
1056

It's not really clear to me why this is a custom directive. Feels like it could quite easily just be in the declarative format.

bondhugula marked an inline comment as done.Apr 14 2022, 12:36 AM
bondhugula added inline comments.
mlir/lib/Dialect/GPU/IR/GPUDialect.cpp
1056

The parse version of this requires a non-trivial check (looking at the number of results of parsed).

mehdi_amini added inline comments.Apr 14 2022, 1:12 AM
mlir/lib/Dialect/GPU/IR/GPUDialect.cpp
1056

Why though? To emit a nicer error?

bondhugula marked 2 inline comments as done.Apr 15 2022, 1:29 AM
bondhugula added inline comments.
mlir/lib/Dialect/GPU/IR/GPUDialect.cpp
1056

Not just for a nicer error, but for functionality AFAIU -- if the async keyword is used, a single result is expected. Can you see parseAsyncDependencies?

bondhugula edited reviewers, added: ftynse; removed: ThomasRaoux.Apr 19 2022, 12:33 AM
bondhugula marked an inline comment as done.

Any other comments here: @rriddle?

mehdi_amini accepted this revision.Apr 19 2022, 5:13 PM
This revision is now accepted and ready to land.Apr 19 2022, 5:13 PM
rriddle accepted this revision.Apr 19 2022, 5:16 PM

LGTM (sorry, missed this)

This revision was landed with ongoing or failed builds.Apr 20 2022, 5:29 AM
This revision was automatically updated to reflect the committed changes.