summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/PowerPC/fast-isel-binary.ll
diff options
context:
space:
mode:
authorAnastasia Stulova <anastasia.stulova@arm.com>2020-02-06 11:56:21 +0000
committerHans Wennborg <hans@chromium.org>2020-02-12 13:45:17 +0100
commitb33830aea54536f0f03334b2015b03af336ec90c (patch)
tree51976f2f36ab3aed5a998e93668225d5fa4206dd /llvm/test/CodeGen/PowerPC/fast-isel-binary.ll
parentd8a6deab7a84a559a1ff9f2196dae68870af80bf (diff)
downloadbcm5719-llvm-b33830aea54536f0f03334b2015b03af336ec90c.tar.gz
bcm5719-llvm-b33830aea54536f0f03334b2015b03af336ec90c.zip
[OpenCL] Restrict addr space conversions in nested pointers
Address space conversion changes pointer representation. This commit disallows such conversions when they are not legal i.e. for the nested pointers even with compatible address spaces. Because the address space conversion in the nested levels can't be generated to modify the pointers correctly. The behavior implemented is as follows: - Any implicit conversions of nested pointers with different address spaces is rejected. - Any conversion of address spaces in nested pointers in safe casts (e.g. const_cast or static_cast) is rejected. - Conversion in low level C-style or reinterpret_cast is accepted but with a warning (this aligns with OpenCL C behavior). Fixes PR39674 Differential Revision: https://reviews.llvm.org/D73360 (cherry picked from commit 6064f426a18304e16b51cc79e74c9c2d55ef5a9c)
Diffstat (limited to 'llvm/test/CodeGen/PowerPC/fast-isel-binary.ll')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud