HomePhabricator

[OpenCL] Fix reinterpret_cast of vectors

Authored by olestrohm on May 17 2021, 4:02 AM.

Description

[OpenCL] Fix reinterpret_cast of vectors

Fixes issues with vectors in reinterpret_cast in C++ for OpenCL
and adds tests to make sure they both pass without errors and
generate the correct code.

Fixes: PR47977

Reviewed By: Anastasia

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

Details

Committed
olestrohmMay 17 2021, 4:42 AM
Reviewer
Anastasia
Differential Revision
D101519: [C++4OpenCL] Fix reinterpret_cast of vectors
Parents
rG511f4ae54ed4: [PowerPC] Add patterns for vselect of v1i128
Branches
Unknown
Tags
Unknown