llvm-project/clang/test/SemaOpenCLCXX
Anastasia Stulova 0c65993be1 [OpenCL] Fix default address space in template argument deduction.
When deducing a reference type for forwarding references prevent
adding default address space of a template argument if it is given.

This got reported in PR48896 because in OpenCL all parameters are
in private address space and therefore when we initialize a
forwarding reference with a parameter we should just inherit the
address space from it i.e. keep __private instead of __generic.

Tags: #clang

Differential Revision: https://reviews.llvm.org/D95624
2021-02-04 13:51:53 +00:00
..
address-space-castoperators.cl [OpenCL] Fixed test for the cast operators. 2020-04-28 12:46:36 +01:00
address-space-cond.cl Clean up and slightly generalize implementation of composite pointer 2020-01-10 16:12:00 -08:00
address-space-deduction.cl [OpenCL] Defer addr space deduction for dependent type. 2020-07-13 11:44:38 +01:00
address-space-lambda.cl Fix a pair of tests that would fail on a win32 box 2020-11-17 14:28:52 -08:00
address-space-of-this-class-scope.cl [Sema] Improve diagnostic about addr spaces for overload candidates 2019-12-13 12:35:18 +00:00
address-space-of-this.cl
address-space-references.cl [OpenCL] Fix address space in binding of initializer lists to referencs 2021-02-03 12:48:21 +00:00
address-space-templates.cl [OpenCL] Fix default address space in template argument deduction. 2021-02-04 13:51:53 +00:00
address_space_overloading.cl
addrspace-auto.cl [OpenCL] Pretty print __private addr space 2019-12-27 13:42:07 +00:00
addrspace_cast.cl [OpenCL] Added addrspace_cast operator in C++ mode. 2020-05-18 12:07:54 +01:00
addrspace_cast_ast_dump.cl [OpenCL] Added addrspace_cast operator in C++ mode. 2020-05-18 12:07:54 +01:00
invalid-kernel.cl [OpenCL][NFC] Improve OpenCL test file naming 2021-01-06 14:16:44 +00:00
members.cl [OpenCL] Add diagnostics for references to functions 2021-02-02 15:07:40 +00:00
method-overload-address-space.cl
newdelete.cl
private-access-specifier.cpp
references.cl Fixed failing OpenCL test 2021-02-02 16:19:28 +00:00
restricted.cl [OpenCL] Move addr space deduction to Sema. 2019-11-27 12:44:42 +00:00