[all-commits] [llvm/llvm-project] d47cd5: [MLIR][LLVM] Fix blockaddress mapping to LLVM bloc...

Bruno Cardoso Lopes via All-commits all-commits at lists.llvm.org
Wed May 14 11:29:19 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d47cd5008bae7c4159dac1f92d266ddeeb70f55d
      https://github.com/llvm/llvm-project/commit/d47cd5008bae7c4159dac1f92d266ddeeb70f55d
  Author: Bruno Cardoso Lopes <bruno.cardoso at gmail.com>
  Date:   2025-05-14 (Wed, 14 May 2025)

  Changed paths:
    M mlir/include/mlir/Target/LLVMIR/ModuleTranslation.h
    M mlir/lib/Target/LLVMIR/Dialect/LLVMIR/LLVMToLLVMIRTranslation.cpp
    M mlir/lib/Target/LLVMIR/ModuleTranslation.cpp
    M mlir/test/Target/LLVMIR/blockaddress.mlir

  Log Message:
  -----------
  [MLIR][LLVM] Fix blockaddress mapping to LLVM blocks (#139814)

After each function is translated, both value and block maps are erased,
which makes the current mapping of blockaddresses to llvm blocks broken
- the patching happens only after *all* functions are translated.

Simplify the overall mapping, update comments, variable names and fix
the bug.

---------

Co-authored-by: Christian Ulmann <christianulmann at gmail.com>



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