[mlir][DialectConversion] Add support for properly tracking replaceUsesOfBlockArgument
authorRiver Riddle <riddleriver@gmail.com>
Fri, 24 Apr 2020 19:25:05 +0000 (12:25 -0700)
committerRiver Riddle <riddleriver@gmail.com>
Fri, 24 Apr 2020 19:37:32 +0000 (12:37 -0700)
commit0816de167a7418904287ffb8173e31516880364d
tree8c5eff6927218c5e967b37e00f64bd56baaee293
parent4de60d955a8a23b0bd7f0ee815fbae935e0cedbe
[mlir][DialectConversion] Add support for properly tracking replaceUsesOfBlockArgument

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

Differential Revision: https://reviews.llvm.org/D78790
mlir/include/mlir/IR/Value.h
mlir/lib/IR/Value.cpp
mlir/lib/Transforms/DialectConversion.cpp
mlir/test/Transforms/test-legalizer.mlir
mlir/test/lib/Dialect/Test/TestPatterns.cpp