[all-commits] [llvm/llvm-project] 24849c: [Clang] Fix the wrong features being derivec in th...
Joseph Huber via All-commits
all-commits at lists.llvm.org
Fri Jul 8 14:26:37 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 24849c9eb504cad5b17f16ed23a88dab92882d5d
https://github.com/llvm/llvm-project/commit/24849c9eb504cad5b17f16ed23a88dab92882d5d
Author: Joseph Huber <jhuber6 at vols.utk.edu>
Date: 2022-07-08 (Fri, 08 Jul 2022)
Changed paths:
M clang/lib/Driver/ToolChains/Clang.cpp
M clang/test/Driver/openmp-offload-gpu-new.c
Log Message:
-----------
[Clang] Fix the wrong features being derivec in the offload packager
The offload packager embeds the features in the offloading binary when
performing LTO. This had an incorrect interaction with the
`--cuda-feature` option because we weren't deriving the features from
the CUDA toolchain arguments when it was being specified. This patch
fixes this so the features are correctly overrideen when using this
argument.
However, this brings up a question of how best to handle conflicting
target features. The user could compile many libraries with different
features, in this case we do not know which one to pick. This was not
previously a problem when we simply passed the features in from the CUDA
installation at link-link because we just defaulted to whatever was
current on the system.
Reviewed By: ye-luo
Differential Revision: https://reviews.llvm.org/D129393
More information about the All-commits
mailing list