[all-commits] [llvm/llvm-project] ac135f: [Clang] Fix using LTO with the new driver in RDC-mode
Joseph Huber via All-commits
all-commits at lists.llvm.org
Thu Oct 6 07:36:30 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: ac135f9ee574e7451088926c667d93d51a3d6940
https://github.com/llvm/llvm-project/commit/ac135f9ee574e7451088926c667d93d51a3d6940
Author: Joseph Huber <jhuber6 at vols.utk.edu>
Date: 2022-10-06 (Thu, 06 Oct 2022)
Changed paths:
M clang/lib/Driver/Driver.cpp
M clang/lib/Driver/ToolChains/Clang.cpp
M clang/test/Driver/cuda-bindings.cu
M clang/test/Driver/cuda-phases.cu
M clang/test/Driver/hip-binding.hip
M clang/test/Driver/hip-phases.hip
Log Message:
-----------
[Clang] Fix using LTO with the new driver in RDC-mode
The new driver supports LTO for RDC-mode compilations. However, this was
not correctly handled for non-LTO compilations. HIP can handle this as
it is fed to `lld` which will perform the LTO itself. CUDA however would
require every work which is wholly useless in non-RDC mode so it should
report an error.
Reviewed By: yaxunl
Differential Revision: https://reviews.llvm.org/D135305
More information about the All-commits
mailing list