This is an archive of the discontinued LLVM Phabricator instance.

[mlir][DialectConversion] Add support for properly tracking replaceUsesOfBlockArgument
ClosedPublic

Authored by rriddle on Apr 23 2020, 10:06 PM.

Details

Summary

The current implementation of this method performs the replacement directly, and thus doesn't support proper back tracking.

Diff Detail

Event Timeline

rriddle created this revision.Apr 23 2020, 10:06 PM
GMNGeoffrey accepted this revision.Apr 24 2020, 10:06 AM

Thanks!

mlir/lib/Transforms/DialectConversion.cpp
200

Does this mean the mapping parameter is no longer necessary? Seems like there's still something to fix if it shouldn't be necessary

mlir/test/lib/Dialect/Test/TestPatterns.cpp
251

Not this revision, but WTF is with the capitalization on ILLegal?

This revision is now accepted and ready to land.Apr 24 2020, 10:06 AM
rriddle marked 4 inline comments as done.Apr 24 2020, 10:50 AM
rriddle added inline comments.
mlir/lib/Transforms/DialectConversion.cpp
200

It was only necessary because of the replaceUsesOfBlockArgument bug when I originally wrote this, but now it is necessary for other reasons.

mlir/test/lib/Dialect/Test/TestPatterns.cpp
251

I think I wrote this at like 3 am, i.e., when I was ILL myself.

This revision was automatically updated to reflect the committed changes.
rriddle marked 2 inline comments as done.
GMNGeoffrey marked an inline comment as done.Apr 24 2020, 3:10 PM
GMNGeoffrey added inline comments.
mlir/test/lib/Dialect/Test/TestPatterns.cpp
251

😁