This is an archive of the discontinued LLVM Phabricator instance.

mlir/TosaToLinalg: improve debugging during conversion
ClosedPublic

Authored by artagnon on Dec 2 2022, 3:57 AM.

Details

Summary

Make systematic use of notifyMatchFailure.

Signed-off-by: Ramkumar Ramachandra <r@artagnon.com>

Diff Detail

Event Timeline

artagnon created this revision.Dec 2 2022, 3:57 AM
Herald added a project: Restricted Project. · View Herald Transcript
artagnon requested review of this revision.Dec 2 2022, 3:57 AM
NatashaKnk added inline comments.Dec 2 2022, 10:25 AM
mlir/lib/Conversion/TosaToLinalg/TosaToLinalg.cpp
2157

I think this can more specifically note "tosa.gather currently only supports dynamic batch dimensions", as checkHasDynamicBatchDims only returns llvm::None when it finds a dynamic dim that isn't the batch one.

artagnon updated this revision to Diff 479679.Dec 2 2022, 10:54 AM

Address review comment by @NatashaKnk.

artagnon marked an inline comment as done.Dec 2 2022, 10:54 AM

Done, thanks :)

rsuderman accepted this revision.Dec 5 2022, 11:14 AM
This revision is now accepted and ready to land.Dec 5 2022, 11:14 AM
This revision was automatically updated to reflect the committed changes.