[all-commits] [llvm/llvm-project] 3db601: [mlir][Transforms] Tighten `replaceUsesOfBlockArgu...

Matthias Springer via All-commits all-commits at lists.llvm.org
Mon Aug 25 05:47:34 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3db60110744ebd04dab6e45cfa08e10af55b3e19
      https://github.com/llvm/llvm-project/commit/3db60110744ebd04dab6e45cfa08e10af55b3e19
  Author: Matthias Springer <me at m-sp.org>
  Date:   2025-08-25 (Mon, 25 Aug 2025)

  Changed paths:
    M mlir/include/mlir/Transforms/DialectConversion.h
    M mlir/lib/Transforms/Utils/DialectConversion.cpp

  Log Message:
  -----------
  [mlir][Transforms] Tighten `replaceUsesOfBlockArgument` (#155227)

Improve the documentation of `replaceUsesOfBlockArgument` to clarify its
semantics is rollback mode. Add an assertion to make sure that the same
block argument is not replaced multiple times. That's an API violation
and messes with the internal state of the conversion driver.

This commit is in preparation of adding full support for
`RewriterBase::replaceAllUsesWith`.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list