[PATCH] D55022: OpenCL: Extend argument promotion rules to vector types

Anastasia Stulova via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 29 02:58:48 PST 2018


Anastasia added a comment.

> The spec is ambiguous on whether vector types are allowed to be
>  implicitly converted. The only legal context I think this can
>  be used for OpenCL is printf, where it seems necessary.

s6.2.1, seems to say "Implicit conversions between built-in vector data types are disallowed." though. But considering that we disallow functions without a prototype. It should be fine.

However, is there any way to construct a test for this? Could it be tested similarly to https://reviews.llvm.org/D55023?


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D55022/new/

https://reviews.llvm.org/D55022





More information about the cfe-commits mailing list