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.
Details
Details
- Reviewers
Anastasia
Diff Detail
Diff Detail
Event Timeline
Comment Actions
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?
Comment Actions
LGTM! Apart from the test can be changed.
test/CodeGenOpenCL/printf.cl | ||
---|---|---|
2 | I would prefer to test this with spir target since it's not AMD specific. We can use pragma extension enable/disable. :) |
I would prefer to test this with spir target since it's not AMD specific. We can use pragma extension enable/disable. :)