llvm-project/clang/test/CodeGenCUDA
Yaxun (Sam) Liu c4afb5f81b [HIP] Fix linking of asanrt.bc
HIP currently uses -mlink-builtin-bitcode to link all bitcode libraries, which
changes the linkage of functions to be internal once they are linked in. This
works for common bitcode libraries since these functions are not intended
to be exposed for external callers.

However, the functions in the sanitizer bitcode library is intended to be
called by instructions generated by the sanitizer pass. If their linkage is
changed to internal, their parameters may be altered by optimizations before
the sanitizer pass, which renders them unusable by the sanitizer pass.

To fix this issue, HIP toolchain links the sanitizer bitcode library with
-mlink-bitcode-file, which does not change the linkage.

A struct BitCodeLibraryInfo is introduced in ToolChain as a generic
approach to pass the bitcode library information between ToolChain and Tool.

Reviewed by: Artem Belevich

Differential Revision: https://reviews.llvm.org/D110304
2021-09-27 13:25:46 -04:00
..
Inputs [HIP] Fix linking of asanrt.bc 2021-09-27 13:25:46 -04:00
address-spaces.cu [test] Add {{.*}} to make ELF tests immune to dso_local/dso_preemptable/(none) differences 2020-12-31 00:27:11 -08:00
alias.cu
amdgpu-asan.cu [HIP] Fix linking of asanrt.bc 2021-09-27 13:25:46 -04:00
amdgpu-atomic-ops.cu Let clang atomic builtins fetch add/sub support floating point types 2021-04-06 15:44:00 -04:00
amdgpu-func-attrs.cu [test] Add {{.*}} to make ELF tests immune to dso_local/dso_preemptable/(none) differences 2020-12-31 00:27:11 -08:00
amdgpu-hip-implicit-kernarg.cu
amdgpu-kernel-arg-pointer-type.cu [test] Add {{.*}} to make ELF tests immune to dso_local/dso_preemptable/(none) differences 2020-12-31 00:27:11 -08:00
amdgpu-kernel-attrs.cu Relands "[HIP] Change default --gpu-max-threads-per-block value to 1024" 2021-02-12 10:53:59 -05:00
amdgpu-visibility.cu [test] Add {{.*}} to make ELF tests immune to dso_local/dso_preemptable/(none) differences 2020-12-31 00:27:11 -08:00
amdgpu-workgroup-size.cu [AMDGPU] Add __builtin_amdgcn_workgroup_size_x/y/z 2020-03-28 01:03:20 -04:00
atomics-remarks-gfx90a.cu [Remarks] Emit optimization remarks for atomics generating CAS loop 2021-08-16 14:56:01 -06:00
builtin-mangled-name.cu [CUDA][HIP] add __builtin_get_device_side_mangled_name 2021-03-25 15:25:29 -04:00
builtins-amdgcn.cu [HIP] Allow target addr space in target builtins 2021-08-19 23:51:58 -06:00
constexpr-variables.cu [CUDA][HIP] Support accessing static device variable in host code for -fno-gpu-rdc 2020-08-05 07:57:38 -04:00
convergent.cu [Clang] [NFC] fix CHECK lines for convergent attribute tests 2021-06-29 00:21:07 +05:30
correctly-rounded-div.cu [HIP] Fix device lib selection 2021-05-01 20:31:11 -04:00
cuda-builtin-vars.cu [test] Add {{.*}} to make ELF tests immune to dso_local/dso_preemptable/(none) differences 2020-12-31 00:27:11 -08:00
cxx-call-kernel.cpp Fix test cxx-call-kernel.cpp 2021-03-01 17:10:53 -05:00
debug-info-address-class.cu
debug-info-template.cu
deferred-diag.cu Speed up deferred diagnostic emitter 2020-04-06 13:07:43 -04:00
dependent-libs.cu
device-fun-linkage.cu [test] Add {{.*}} to make ELF tests immune to dso_local/dso_preemptable/(none) differences 2020-12-31 00:27:11 -08:00
device-init-fun.cu
device-stub.cu -fno-semantic-interposition: Don't set dso_local on GlobalVariable 2021-05-19 16:08:28 -07:00
device-use-host-var.cu CUDA/HIP: Change device-use-host-var.cu's NOT "external" check to include variable name 2021-06-04 13:10:00 -04:00
device-var-init.cu [test] Add {{.*}} to make ELF tests immune to dso_local/dso_preemptable/(none) differences 2020-12-31 00:27:11 -08:00
device-var-linkage.cu [CUDA] Fix static device variables with -fgpu-rdc 2021-08-25 09:31:22 +02:00
device-vtable.cu [test] Add {{.*}} to make ELF tests immune to dso_local/dso_preemptable/(none) differences 2020-12-31 00:27:11 -08:00
dft-func-attr-skip-intrinsic.hip [Clang] [NFC] fix CHECK lines for convergent attribute tests 2021-06-29 00:21:07 +05:30
filter-decl.cu
flush-denormals.cu [CUDA][HIP] rename -fcuda-flush-denormals-to-zero 2021-04-05 00:13:51 -04:00
fp-contract.cu [HIP] Fix regressions due to fp contract change 2020-11-24 08:10:06 -05:00
function-overload.cu [test] Add {{.*}} to make ELF tests immune to dso_local/dso_preemptable/(none) differences 2020-12-31 00:27:11 -08:00
host-used-device-var.cu [Internalize] Preserve variables externally initialized. 2021-07-08 10:48:19 -04:00
kernel-amdgcn.cu Relands "[HIP] Change default --gpu-max-threads-per-block value to 1024" 2021-02-12 10:53:59 -05:00
kernel-args-alignment.cu
kernel-args.cu [test] Add {{.*}} to make ELF tests immune to dso_local/dso_preemptable/(none) differences 2020-12-31 00:27:11 -08:00
kernel-call.cu
kernel-dbg-info.cu [HIP] Emit kernel symbol 2021-03-01 16:31:40 -05:00
kernel-stub-name.cu [HIP, test] Fix use of undef FileCheck var 2021-04-04 19:30:49 +01:00
lambda-reference-var.cu [test] Make ELF tests immune to dso_local/dso_preemptable/(none) differences 2020-12-31 13:59:44 -08:00
lambda.cu [test] Add {{.*}} to make ELF tests immune to dso_local/dso_preemptable/(none) differences 2020-12-31 00:27:11 -08:00
launch-bounds.cu
library-builtin.cu [test] Add {{.*}} to make ELF tests immune to dso_local/dso_preemptable/(none) differences 2020-12-31 00:27:11 -08:00
link-device-bitcode.cu [test] Add {{.*}} to make ELF tests immune to dso_local/dso_preemptable/(none) differences 2020-12-31 00:27:11 -08:00
llvm-used.cu Change some addUsedGlobal to addUsedOrCompilerUsedGlobal 2021-02-26 10:42:07 -08:00
managed-var.cu [CUDA] Fix static device variables with -fgpu-rdc 2021-08-25 09:31:22 +02:00
ms-linker-options.cu Revert "[hip][cuda] Enable extended lambda support on Windows." 2021-02-04 07:10:46 -05:00
norecurse.cu
nothrow.cu [test] Add {{.*}} to make ELF tests immune to dso_local/dso_preemptable/(none) differences 2020-12-31 00:27:11 -08:00
openmp-target.cu
printf-aggregate.cu
printf.cu
profile-coverage-mapping.cu [PGO][CUDA][HIP] Skip generating profile on the device stub and wrong-side functions. 2020-08-10 11:01:46 -04:00
propagate-metadata.cu [clang][cli] Remove -f[no-]trapping-math from -cc1 command line 2021-01-12 10:00:23 +01:00
ptx-kernels.cu [test] Add {{.*}} to make ELF tests immune to dso_local/dso_preemptable/(none) differences 2020-12-31 00:27:11 -08:00
redux-builtins.cu [Clang][NVPTX] Add NVPTX intrinsics and builtins for CUDA PTX redux.sync instructions 2021-05-17 09:46:59 -07:00
static-device-var-no-rdc.cu [CUDA][HIP] Fix device template variables 2021-05-12 11:13:29 -04:00
static-device-var-rdc.cu [CUDA] Fix static device variables with -fgpu-rdc 2021-08-25 09:31:22 +02:00
surface.cu [cuda] Mark builtin texture/surface reference variable as 'externally_initialized'. 2021-08-09 13:27:40 -04:00
texture.cu [cuda] Mark builtin texture/surface reference variable as 'externally_initialized'. 2021-08-09 13:27:40 -04:00
types.cu [test] Add {{.*}} to make ELF tests immune to dso_local/dso_preemptable/(none) differences 2020-12-31 00:27:11 -08:00
unnamed-types.cu [HIP] Emit kernel symbol 2021-03-01 16:31:40 -05:00
unused-global-var.cu [Internalize] Preserve variables externally initialized. 2021-07-08 10:48:19 -04:00
usual-deallocators.cu [CUDA] Normalize handling of defauled dtor. 2021-01-21 10:48:07 -08:00
vtbl.cu [CUDA][HIP] Fix store of vtbl in ctor 2021-06-08 10:24:44 -04:00