[all-commits] [llvm/llvm-project] 9271c5: [Clang] Adjust PIC handling for the AMDGPU ToolChain
Joseph Huber via All-commits
all-commits at lists.llvm.org
Tue Jan 31 12:31:26 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 9271c5da434b0827ad21f43013be287f3637a9b4
https://github.com/llvm/llvm-project/commit/9271c5da434b0827ad21f43013be287f3637a9b4
Author: Joseph Huber <jhuber6 at vols.utk.edu>
Date: 2023-01-31 (Tue, 31 Jan 2023)
Changed paths:
M clang/lib/Driver/ToolChains/AMDGPU.cpp
M clang/lib/Driver/ToolChains/AMDGPU.h
M clang/lib/Driver/ToolChains/CommonArgs.cpp
M clang/lib/Driver/ToolChains/HIPAMD.cpp
M clang/test/Driver/amdgcn-toolchain-pic.cl
Log Message:
-----------
[Clang] Adjust PIC handling for the AMDGPU ToolChain
The AMDGPU target only emits shared libraries currently. This patch
changes the handling of the PIC level to be managed in the
AMDGPUToolChain rather than having a special case for it. This causes
`--target=amdgcn--` to no longer set the PIC. This should be an
acceptable change since that doesn't use a correct toolchain anyway.
Reviewed By: arsenm
Differential Revision: https://reviews.llvm.org/D142999
More information about the All-commits
mailing list