[libc] Use LTO for AMDGPU compilation and linking
authorJoseph Huber <jhuber6@vols.utk.edu>
Wed, 29 Mar 2023 19:19:08 +0000 (14:19 -0500)
committerJoseph Huber <jhuber6@vols.utk.edu>
Wed, 29 Mar 2023 19:20:44 +0000 (14:20 -0500)
commit2dc60b4ea4f1a3f321ea93055038d711f0af4c49
tree056108389c254909c085eaa3ffbc05bf409492fe
parent389e93cfcdd7410566dc913e46e4a47e37574c05
[libc] Use LTO for AMDGPU compilation and linking

Summary:
The AMDGPU ABI isn't stable or well defined. For that reson we prefer to
rely on LTO to ensure that multiple files get linked correctly.
Currently the internal targets used for testing mix LLVM-IR and
assembly. We should be consistent here.
libc/cmake/modules/LLVMLibCObjectRules.cmake
libc/cmake/modules/LLVMLibCTestRules.cmake