llvm-project/clang/test
Yaxun (Sam) Liu 171da443d5 [HIPSPV] Fix literals are mapped to Generic address space
This issue is an oversight in D108621.

Literals in HIP are emitted as global constant variables with default
address space which maps to Generic address space for HIPSPV. In
SPIR-V such variables translate to OpVariable instructions with
Generic storage class which are not legal. Fix by mapping literals
to CrossWorkGroup address space.

The literals are not mapped to UniformConstant because the “flat”
pointers in HIP may reference them and “flat” pointers are modeled
as Generic pointers in SPIR-V. In SPIR-V/OpenCL UniformConstant
pointers may not be casted to Generic.

Patch by: Henry Linjamäki

Reviewed by: Yaxun Liu

Differential Revision: https://reviews.llvm.org/D118876
2022-02-05 17:26:52 -05:00
..
APINotes
ARCMT [NFC][clang] Inclusive language: replace masterPort with mainPort 2021-11-18 11:51:06 -06:00
AST Reland (2) "[AST] Add RParen loc for decltype AutoTypeloc."" 2022-01-17 11:33:11 +01:00
ASTMerge [AIX] Disable tests that fail because of no 64-bit XCOFF object file support 2022-01-09 12:25:24 -05:00
Analysis [analyzer] Add support for __attribute__((returns_nonnull)). 2022-02-02 11:46:52 -08:00
CXX [NFC][AIX]Disable failed tests due to aggressive byval alignment warning on AIX 2022-02-01 11:49:53 -05:00
ClangScanDeps [NFC][AIX]Disable new pcm tests on AIX 2022-01-28 12:39:09 -05:00
CodeCompletion [CodeCompletion][clangd] Clean __uglified parameter names in completion & hover 2022-01-26 15:51:17 +01:00
CodeGen [clang] added allocsize attribute to allocation functions 2022-02-05 14:26:35 +01:00
CodeGenCUDA [CUDA][HIP] Do not treat host var address as constant in device compilation 2022-01-28 16:04:52 -05:00
CodeGenCUDASPIRV [CUDA][SPIRV] Use OpenCLKernel CC for CUDA -> SPIRV 2021-12-06 15:06:57 -08:00
CodeGenCXX Don't assume that a new cleanup was added to InnermostEHScope. 2022-02-04 23:39:42 -05:00
CodeGenCoroutines [Clang/Test]: Rename enable_noundef_analysis to disable-noundef-analysis and turn it off by default 2022-01-16 18:54:17 +09:00
CodeGenHIP [HIPSPV] Fix literals are mapped to Generic address space 2022-02-05 17:26:52 -05:00
CodeGenObjC Do not crash when trying to encode a _BitInt type 2022-01-28 08:38:01 -05:00
CodeGenObjCXX [ObjC] Emit selector load right before msgSend call. 2022-01-26 20:52:54 -08:00
CodeGenOpenCL [OpenCL] Make generic addrspace optional for -fdeclare-opencl-builtins 2022-01-31 10:21:05 +00:00
CodeGenOpenCLCXX [OpenCL] Add support of __opencl_c_device_enqueue feature macro. 2022-01-27 14:25:59 +03:00
CodeGenSYCL [Clang/Test]: Rename enable_noundef_analysis to disable-noundef-analysis and turn it off by default 2022-01-16 18:54:17 +09:00
Coverage
CoverageMapping
Driver [Driver] Default to -fno-math-errno for musl 2022-02-04 19:20:30 -08:00
FixIt [Sema] Warn about printf %n on Android and Fuchsia 2022-01-21 21:00:39 +00:00
Format
Frontend [OpenMP] Add a flag for embedding a file into the module 2022-01-31 15:56:00 -05:00
Headers Revert fad7e491a0 with fixes applied 2022-01-29 08:12:16 -05:00
Import
Index [clang] retain type sugar in auto / template argument deduction 2021-11-15 23:07:45 +01:00
Integration
InterfaceStubs [ifs] Use a tmp file instead of "-" 2022-01-21 11:19:37 -05:00
Interpreter
Layout
Lexer [Diagnostics] Don't drop a statically set NoWarningAsError flag during option processing 2022-01-10 16:38:01 -08:00
LibClang
Misc [ARM] Add Cortex-X1C Support for Clang and LLVM 2022-01-31 14:23:35 +00:00
Modules [NFC] Add tests for ODR checking of default template argument 2022-01-28 15:32:28 +08:00
OpenMP [OpenMP] Completely remove old device runtime 2022-02-04 15:31:33 -05:00
PCH Reland (2) "[AST] Add RParen loc for decltype AutoTypeloc."" 2022-01-17 11:33:11 +01:00
Parser Fix a failed assertion on an invalid typename requirement 2022-01-18 11:59:08 -05:00
ParserSYCL
Preprocessor [clang] fix out of bounds access in an empty string when lexing a _Pragma with missing string token 2022-02-02 11:16:11 -08:00
Profile [NFC][AIX][clang] un-XFAIL gcc profile flag compat test 2022-01-28 11:18:55 -05:00
Refactor
Rewriter [NFC][Clang][test] Inclusive language: Remove and rephrase uses of sanity test/check in clang/test 2021-11-24 14:03:49 -05:00
Sema Rename this file to fix the typo in its name; NFC 2022-02-04 15:59:59 -05:00
SemaCUDA [CUDA][HIP] Do not treat host var address as constant in device compilation 2022-01-28 16:04:52 -05:00
SemaCXX [clang] roll-forward "[clang] Mark `trivial_abi` types as "trivially relocatable"". 2022-02-04 20:17:34 +01:00
SemaObjC [Clang/Test]: Rename enable_noundef_analysis to disable-noundef-analysis and turn it off by default 2022-01-16 18:54:17 +09:00
SemaObjCXX [clang] roll-forward "[clang] Mark `trivial_abi` types as "trivially relocatable"". 2022-02-04 20:17:34 +01:00
SemaOpenCL [OpenCL] Test -fdeclare-opencl-builtins with CL3 and CLC++2021 2022-02-02 10:23:02 +00:00
SemaOpenCLCXX [OpenCL] Add support of __opencl_c_device_enqueue feature macro. 2022-01-27 14:25:59 +03:00
SemaSYCL The methods visited for a special class must have an identifier. 2022-02-02 13:12:33 -08:00
SemaTemplate [clang] Don't typo-fix an expression in a SFINAE context. 2022-02-01 15:17:28 -05:00
Syntax [syntax][pseudo] Introduce the C++ spec grammar. 2022-02-04 11:58:50 +01:00
TableGen [clang] Introduce support for disabling warnings in system macros 2022-01-12 08:18:19 +00:00
Templight [Templight] Don't display empty strings for names of unnamed template parameters 2022-01-24 16:37:11 +01:00
Tooling [clang-check] Adjust argument adjusters for clang-check to strip options blocking the static analyzer 2022-01-14 10:05:47 +01:00
Unit
VFS [VFS] Add a "redirecting-with" field to overlays 2022-02-03 13:10:23 -08:00
clang-rename
utils/update_cc_test_checks [IRGen] Do not overwrite existing attributes in CGCall. 2022-01-20 13:45:19 +00:00
.clang-format
CMakeLists.txt [syntax][pseudo] Introduce the C++ spec grammar. 2022-02-04 11:58:50 +01:00
TestRunner.sh
cxx-sections.data
lit.cfg.py [AIX] Disable tests that fail because of no 64-bit XCOFF object file support 2022-01-09 12:25:24 -05:00
lit.site.cfg.py.in [clang] Use usual lit pattern for CLANG_DEFAULT_PIE_ON_LINUX and LLVM_WITH_Z3 2021-12-14 21:44:56 -05:00
make_test_dirs.pl