[all-commits] [llvm/llvm-project] 4bba8b: [mlir] Add RewriterBase::replaceAllUsesWith for Bl...
Ingo Müller via All-commits
all-commits at lists.llvm.org
Tue Feb 14 23:23:35 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 4bba8bd33efdfb43c840e2dfa7ef5263254facdb
https://github.com/llvm/llvm-project/commit/4bba8bd33efdfb43c840e2dfa7ef5263254facdb
Author: Ingo Müller <ingomueller at google.com>
Date: 2023-02-15 (Wed, 15 Feb 2023)
Changed paths:
M mlir/include/mlir/IR/PatternMatch.h
M mlir/lib/IR/PatternMatch.cpp
M mlir/test/Transforms/test-strict-pattern-driver.mlir
M mlir/test/lib/Dialect/Test/TestPatterns.cpp
Log Message:
-----------
[mlir] Add RewriterBase::replaceAllUsesWith for Blocks.
When changing IR in a RewriterPattern, all changes must go through the
rewriter. There are several convenience functions in RewriterBase that
help with high-level modifications, such as replaceAllUsesWith for
Values, but there is currently none to do the same task for Blocks.
Reviewed By: mehdi_amini, ingomueller-net
Differential Revision: https://reviews.llvm.org/D142525
More information about the All-commits
mailing list