[all-commits] [llvm/llvm-project] a61ca9: [mlir] fix overflow warning when generating embedd...
Zichen Lu via All-commits
all-commits at lists.llvm.org
Wed Feb 5 03:41:34 PST 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: a61ca99de219ff358e613822706a7a40941a8229
https://github.com/llvm/llvm-project/commit/a61ca99de219ff358e613822706a7a40941a8229
Author: Zichen Lu <mikaovo2000 at gmail.com>
Date: 2025-02-05 (Wed, 05 Feb 2025)
Changed paths:
M mlir/lib/Target/LLVM/CMakeLists.txt
M mlir/lib/Target/LLVM/NVVM/Target.cpp
Log Message:
-----------
[mlir] fix overflow warning when generating embedded libdevice (#125801)
When building mlir with `-DMLIR_NVVM_EMBED_LIBDEVICE=ON`, there will be
a warning
```
build/tools/mlir/lib/Target/LLVM/libdevice_embedded.c:1: warning: overflow in conversion from ‘int’ to ‘char’ changes value from ‘143’ to ‘-113’ [-Woverflow]
```
which is followed by a large number of characters in stdout.
Fix this to avoid stdout outputting a large number of characters (3e5).
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