llvm-capstone/clang/test/CodeGenCUDA
Yaxun (Sam) Liu f2a1331a01
[CUDA][HIP] Do not mark extern shared var (#65990)
Fixes: https://github.com/llvm/llvm-project/issues/65806

Currently clang put extern shared var ODR-used by host device functions
in global var __clang_gpu_used_external. This behavior was due to
https://reviews.llvm.org/D123441. However, clang should not do that for
extern shared vars since their addresses are per warp, therefore cannot
be accessed by host code.
2023-09-11 17:04:55 -04:00
..
Inputs [HIP] Rename predefined macros 2023-07-17 15:45:49 -04:00
address-spaces.cu [Clang] Update some CUDA tests to opaque pointers (NFC) 2022-12-13 11:50:08 +01:00
alias.cu [Clang][NVPTX] Permit use of the alias attribute for NVPTX targets 2023-08-07 14:08:04 -05:00
amdgpu-alias-undef-symbols.cu [clang] Convert a few tests to opaque pointers 2023-05-14 21:00:15 +03:00
amdgpu-atomic-ops.cu [clang] Allow fp in atomic fetch max/min builtins 2023-05-31 15:19:31 -04:00
amdgpu-bf16.cu [Clang][BFloat16] Upgrade __bf16 to arithmetic type, change mangling, and extend excess precision support 2023-05-27 13:33:50 +08:00
amdgpu-code-object-version-linking.cu [OpenMP][DeviceRTL][AMDGPU] Support code object version 5 2023-08-29 06:35:44 -05:00
amdgpu-code-object-version.cu Revert "enable code-object-version=5" 2022-11-29 15:21:09 -06:00
amdgpu-func-attrs.cu
amdgpu-kernel-arg-pointer-type.cu [Clang] Convert test to opaque pointers (NFC) 2023-01-17 10:08:57 +01:00
amdgpu-kernel-attrs.cu [Driver] Add -f[no-]offload-uniform-block 2023-07-27 16:36:02 -04:00
amdgpu-visibility.cu [test] Change cc1 -fvisibility to -fvisibility= 2022-09-02 12:36:44 -07:00
amdgpu-workgroup-size.cu [OpenMP][DeviceRTL][AMDGPU] Support code object version 5 2023-08-29 06:35:44 -05:00
anon-ns.cu [CUDA][HIP] Externalize device var in anonymous namespace 2023-06-06 12:03:48 -04:00
atomic-ops.cu [HIP] Add missing __hip_atomic_fetch_sub support 2023-05-30 22:22:43 +01:00
atomics-remarks-gfx90a.cu [Clang] Don't test register allocation 2022-06-23 12:46:00 +02:00
bf16.cu adding bf16 support to NVPTX 2023-06-28 11:57:13 -07:00
bug-kerner-registration-reuse.cu [CUDA] Update cached kernel handle when the function instance changes. 2023-03-21 15:36:12 -07:00
builtin-mangled-name.cu [Clang] Update some CUDA tests to opaque pointers (NFC) 2022-12-13 11:50:08 +01:00
builtins-amdgcn.cu clang/AMDGPU: Add missing tests for some builtin 2023-01-10 13:07:01 -05:00
builtins-sm90.cu [NVPTX, CUDA] barrier intrinsics and builtins for sm_90 2023-05-25 11:57:57 -07:00
builtins-unsafe-atomics-gfx90a.cu [Clang] Update some CUDA tests to opaque pointers (NFC) 2022-12-13 11:50:08 +01:00
const-var.cu [Clang] Update some CUDA tests to opaque pointers (NFC) 2022-12-13 11:50:08 +01:00
constexpr-variables.cu
convergent.cu
correctly-rounded-div.cu clang: Add __builtin_elementwise_sqrt 2023-08-11 19:32:39 -04:00
cuda-builtin-vars.cu [Clang] Update some CUDA tests to opaque pointers (NFC) 2022-12-13 11:50:08 +01:00
cxx-call-kernel.cpp [Clang] Convert various tests to opaque pointers (NFC) 2022-12-12 17:11:46 +01:00
debug-info-address-class.cu [Clang] Update some CUDA tests to opaque pointers (NFC) 2022-12-13 11:50:08 +01:00
debug-info-template.cu
deferred-diag.cu
dependent-libs.cu
device-fun-linkage.cu [Cuda] Use fallback method to mangle externalized decls if no CUID given 2022-05-26 09:18:22 -04:00
device-init-fun.cu
device-stub.cu [Clang] Convert some tests to opaque pointers (NFC) 2023-02-17 15:08:50 +01:00
device-use-host-var.cu [clang] Convert a few tests to opaque pointers 2023-05-14 21:00:15 +03:00
device-var-init.cu [Clang] Update some CUDA tests to opaque pointers (NFC) 2022-12-13 11:50:08 +01:00
device-var-linkage.cu [Clang] Update some CUDA tests to opaque pointers (NFC) 2022-12-13 11:50:08 +01:00
device-vtable.cu
dft-func-attr-skip-intrinsic.hip
filter-decl.cu
flush-denormals.cu
fp-contract.cu
function-overload.cu
global-initializers.cu Reland "[CUDA][HIP] Fix overloading resolution in global var init" (#65606) 2023-09-07 23:18:30 -04:00
host-used-device-var.cu [CUDA][HIP] Externalize device var in anonymous namespace 2023-06-06 12:03:48 -04:00
host-used-extern.cu [CUDA][HIP] Do not mark extern shared var (#65990) 2023-09-11 17:04:55 -04:00
incomplete-func-ptr-type.cu CUDA/HIP: Use kernel name to map to symbol 2023-01-19 15:02:14 -08:00
kernel-amdgcn.cu
kernel-arg-name-metadata.cu [HIP] add -fhip-kernel-arg-name 2022-06-24 11:15:36 -04:00
kernel-args-alignment.cu [Clang] Update some CUDA tests to opaque pointers (NFC) 2022-12-13 11:50:08 +01:00
kernel-args.cu [clang][AMDGPU]: Don't use byval for struct arguments in function ABI 2023-08-11 16:37:42 -07:00
kernel-call.cu [clang] Support '-fgpu-default-stream=per-thread' for NVIDIA CUDA 2023-07-13 16:54:57 -07:00
kernel-dbg-info.cu [Clang] Update some CUDA tests to opaque pointers (NFC) 2022-12-13 11:50:08 +01:00
kernel-stub-name.cu [Clang] Update some CUDA tests to opaque pointers (NFC) 2022-12-13 11:50:08 +01:00
lambda-noinline.cu [Clang] Update some CUDA tests to opaque pointers (NFC) 2022-12-13 11:50:08 +01:00
lambda-reference-var.cu [Clang] Update some CUDA tests to opaque pointers (NFC) 2022-12-13 11:50:08 +01:00
lambda.cu [Clang] Update some CUDA tests to opaque pointers (NFC) 2022-12-13 11:50:08 +01:00
launch-bounds.cu [Clang] Update some CUDA tests to opaque pointers (NFC) 2022-12-13 11:50:08 +01:00
library-builtin.cu
link-builtin-bitcode-denormal-fp-mode.cu [clang][CodeGen] Fix GPU-specific attributes being dropped by bitcode linking 2023-06-07 15:51:52 +02:00
link-builtin-bitcode-gpu-attrs-preserved.cu [Clang] Propagate target-features if compatible when using mlink-builtin-bitcode 2023-09-08 11:20:16 +02:00
link-device-bitcode.cu [Driver] Remove legacy cc1 alias -mlink-cuda-bitcode 2022-10-15 14:02:13 -07:00
llvm-used.cu [Clang] Update some CUDA tests to opaque pointers (NFC) 2022-12-13 11:50:08 +01:00
long-double.cu Reland "[CUDA][HIP] Use the same default language std as C++"" 2023-07-20 12:02:33 -04:00
managed-var.cu [clang] Convert a few tests to opaque pointers 2023-05-14 21:00:15 +03:00
member-init.cu [CUDA][HIP] Fix overloading resolution of delete operator 2023-08-08 09:50:24 -04:00
memcpy-libcall.cu Added missing test constraints. 2023-08-18 11:39:11 -07:00
ms-linker-options.cu
noinline.cu [CUDA][HIP] support __noinline__ as keyword 2022-05-10 14:32:27 -04:00
norecurse.cu
nothrow.cu
offloading-entries.cu [CUDA] Allow the new driver to compile CUDA in non-RDC mode 2022-07-13 21:49:15 -04:00
openmp-parallel.cu
openmp-target.cu
printf-aggregate.cu
printf.cu [Clang] Update some CUDA tests to opaque pointers (NFC) 2022-12-13 11:50:08 +01:00
profile-coverage-mapping.cu
propagate-attributes.cu clang: Rename misleading test name 2023-02-15 08:32:57 -04:00
ptx-kernels.cu [Clang] Update some CUDA tests to opaque pointers (NFC) 2022-12-13 11:50:08 +01:00
redux-builtins.cu [Clang] Update some CUDA tests to opaque pointers (NFC) 2022-12-13 11:50:08 +01:00
shuffle_long_long.cu [CUDA][FIX] Make shfl[_sync] for unsigned long long non-recursive 2022-07-21 12:36:54 -05:00
static-device-var-no-rdc.cu [clang] Convert a few tests to opaque pointers 2023-05-14 21:00:15 +03:00
static-device-var-rdc.cu [Clang] Convert some tests to opaque pointers (NFC) 2023-02-17 15:08:50 +01:00
struct-mangling-number.cu
surface.cu [clang] Convert a few tests to opaque pointers 2023-05-14 21:00:15 +03:00
texture.cu
types.cu
unnamed-types.cu
unused-global-var.cu
usual-deallocators.cu [clang] Convert a few tests to opaque pointers 2023-05-14 21:00:15 +03:00
vtbl.cu [clang] Convert a few tests to opaque pointers 2023-05-14 21:00:15 +03:00