[all-commits] [llvm/llvm-project] 05bd7d: [MLIR] Fix triple mismatch warning for embedded li...

arthurqiu via All-commits all-commits at lists.llvm.org
Mon Jan 6 06:42:08 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 05bd7d22b6754aeb0c781d4ba002357d5de3ec57
      https://github.com/llvm/llvm-project/commit/05bd7d22b6754aeb0c781d4ba002357d5de3ec57
  Author: arthurqiu <arthurq at nvidia.com>
  Date:   2025-01-06 (Mon, 06 Jan 2025)

  Changed paths:
    M llvm/lib/Linker/IRMover.cpp
    A llvm/test/Linker/Inputs/libdevice-with-wrong-dl.ll
    M llvm/test/Linker/cuda-libdevice.ll

  Log Message:
  -----------
  [MLIR] Fix triple mismatch warning for embedded libdevice (#121447)

IRLinker emits warning when linking two modules of different target
triples. The warning is disabled if the source module is libdevice. When
using libdevice embedded in LLVM library via MLIR_NVVM_EMBED_LIBDEVICE,
IRLinker can no longer tell whether the source module is libdevice via
module identifier.

Since `nvptx64-nvidia-gpulibs` is a magic triple that identifies the
libdevice module already, the libdevice filename check is redundant.
This patch fixes the triple mismatch warning by just removing the
filename check.



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