This is an archive of the discontinued LLVM Phabricator instance.

[mlir][transform] Emit silenceable failure for applyToOne
AbandonedPublic

Authored by guraypp on Sep 29 2022, 8:50 AM.

Details

Summary

This revision emits silenceable failure for applyToOne.

Diff Detail

Event Timeline

guraypp created this revision.Sep 29 2022, 8:50 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 29 2022, 8:50 AM
guraypp requested review of this revision.Sep 29 2022, 8:50 AM
ftynse added a subscriber: ftynse.Sep 29 2022, 8:51 AM
ftynse added inline comments.
mlir/include/mlir/Dialect/Transform/IR/TransformInterfaces.h
129

Why this change? Diagnostics are rather heavy, we should move them rather than copy.

Error message does not get printed without this change.
I might doing something wrong.

ftynse requested changes to this revision.Sep 29 2022, 9:44 AM

There appears to be a bug somewhere in propagation, so let me look into that separately. Please hold this until that is fixed.

This revision now requires changes to proceed.Sep 29 2022, 9:44 AM

Thanks for looking into that!
This plan sounds good to me. This revision was just to demonstrate the problem.

https://reviews.llvm.org/D134948 should be the proper fix.

mlir/lib/Dialect/Linalg/TransformOps/LinalgTransformOps.cpp
1350

Nit: error messages should not start with a capital letter.

mlir/test/Dialect/Linalg/transform-gpu.mlir
188

Nit: @below is more robust than @+1

guraypp abandoned this revision.Oct 3 2022, 1:00 AM

I abandon this revision since @ftynse has better solution.