[all-commits] [llvm/llvm-project] 5ce68f: [mlir] Introduce `replaceUsesOfWith` to `RewriterB...

Guray Ozen via All-commits all-commits at lists.llvm.org
Wed Nov 16 08:53:26 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5ce68f4284c694392238f1c8c5308d08d9a56251
      https://github.com/llvm/llvm-project/commit/5ce68f4284c694392238f1c8c5308d08d9a56251
  Author: Guray Ozen <guray.ozen at gmail.com>
  Date:   2022-11-16 (Wed, 16 Nov 2022)

  Changed paths:
    M mlir/include/mlir/IR/PatternMatch.h
    M mlir/lib/Dialect/GPU/TransformOps/GPUTransformOps.cpp
    M mlir/lib/IR/PatternMatch.cpp

  Log Message:
  -----------
  [mlir] Introduce `replaceUsesOfWith` to `RewriterBase`

Finding uses of a value and replacing them with a new one is a common method. I have not seen an safe and easy shortcut that does that. This revision attempts to address that by intoroducing `replaceUsesOfWith` to `RewriterBase`.

Reviewed By: mehdi_amini

Differential Revision: https://reviews.llvm.org/D138110




More information about the All-commits mailing list