llvm-project/clang/test/CodeGenOpenCLCXX
Johannes Doerfert 40107ce753 Introduce Value::stripPointerCastsSameRepresentation
This patch allows current users of Value::stripPointerCasts() to force
the result of the function to have the same representation as the value
it was called on. This is useful in various cases, e.g., (non-)null
checks.

In this patch only a single call site was adjusted to fix an existing
misuse that would cause nonnull where they may be wrong. Uses in
attribute deduction and other areas, e.g., D60047, are to be expected.

For a discussion on this topic, please see [0].

[0] http://lists.llvm.org/pipermail/llvm-dev/2018-December/128423.html

Reviewers: hfinkel, arsenm, reames

Subscribers: wdng, hiraditya, bollu, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D61607

llvm-svn: 362545
2019-06-04 20:21:46 +00:00
..
address-space-castoperators.cpp [Sema] Change addr space diagnostics in casts to follow C++ style. 2019-03-07 17:06:30 +00:00
address-space-deduction.cl
address-space-deduction2.cl [OpenCL] Fix for TBAA information of pointer after addresspacecast 2018-12-12 09:51:23 +00:00
addrspace-conversion.cl [PR41567][Sema] Fixed cast kind in addr space conversions 2019-06-03 15:42:36 +00:00
addrspace-derived-base.cl [PR40778] Preserve addr space in Derived to Base cast. 2019-03-07 16:23:15 +00:00
addrspace-of-this.cl [OpenCL] Switched CXX mode to be derived from C++17 2019-05-09 11:55:24 +00:00
addrspace-operators.cl [Sema] Adjust addr space of reference operand in compound assignment 2019-03-19 16:50:21 +00:00
addrspace-references.cl Introduce Value::stripPointerCastsSameRepresentation 2019-06-04 20:21:46 +00:00
global_init.cl [OpenCL] Make global ctor init function a kernel 2019-05-09 13:55:44 +00:00
local_addrspace_init.cl [OpenCL] Prevent mangling kernel functions. 2019-05-07 14:22:34 +00:00
method-overload-address-space.cl [OpenCL] Allow address spaces as method qualifiers. 2019-01-21 16:01:38 +00:00
template-address-spaces.cl [OpenCL] Add generic AS to 'this' pointer 2018-12-13 10:15:27 +00:00