diff options
author | Joseph Huber <huberjn@outlook.com> | 2024-07-09 07:51:51 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-09 07:51:51 -0500 |
commit | 221d5c570c2ad0201d808b889280ef71b80c1845 (patch) | |
tree | 5379c891fafa1713d6b40c816ab87838fc741d34 /clang/lib/CodeGen/CoverageMappingGen.cpp | |
parent | 2cba218ca573f5da6ff301df59aa686d2e3e40c5 (diff) | |
download | llvm-221d5c570c2ad0201d808b889280ef71b80c1845.zip llvm-221d5c570c2ad0201d808b889280ef71b80c1845.tar.gz llvm-221d5c570c2ad0201d808b889280ef71b80c1845.tar.bz2 |
[libc] Disable `-ffreestanding` and `-fno-builtin` on the GPU build (#97636)
Summary:
This patch removed the `-ffreestanding` and `-fno-builtin` flags from
the publically installed version of the GPU library. The presense of
`-fno-builtin` caused issues that prevented all inlining in the GPU C
library, see
https://discourse.llvm.org/t/rfc-libc-ffreestanding-fno-builtin/75883.
Previously, I attempted to fix this by loosening the restriction that
`"no-builtins"` functions cannot be inlined into functions without that
attribute. However, that opened up a lot of extra issues that stalled
that approach.
This patch instead removes that and instead passes `-fno-builtin-<xyz>`
for the few calls that are known to be problematic. I believe this works
in general as the GPU backends do not emit any libcalls and the
implementations of most of these simply reduce to builtins right now.
This is a very useful patch as we can now actually inline calls.
Diffstat (limited to 'clang/lib/CodeGen/CoverageMappingGen.cpp')
0 files changed, 0 insertions, 0 deletions