diff options
author | arthurqiu <arthurq@nvidia.com> | 2025-01-06 22:41:46 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-06 15:41:46 +0100 |
commit | 05bd7d22b6754aeb0c781d4ba002357d5de3ec57 (patch) | |
tree | 5ff7a536acae9ef1a36216bdf8daf3e91f1d520c /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | 14ba3f9d07ea1664497c5d117120fb243ca221aa (diff) | |
download | llvm-05bd7d22b6754aeb0c781d4ba002357d5de3ec57.zip llvm-05bd7d22b6754aeb0c781d4ba002357d5de3ec57.tar.gz llvm-05bd7d22b6754aeb0c781d4ba002357d5de3ec57.tar.bz2 |
[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.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions