OpenCL: Extend argument promotion rules to vector types
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Sat, 1 Dec 2018 21:56:10 +0000 (21:56 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Sat, 1 Dec 2018 21:56:10 +0000 (21:56 +0000)
commitaf07de40596a90d293c2adc59af1ad50ed1598d0
treea442916f9de5cab00cae4359a63dbd05f6a3445f
parenteff43f6ae3cebbdefe5aac96d0165471421dd44c
OpenCL: Extend argument promotion rules to vector types

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.

llvm-svn: 348083
clang/lib/Sema/SemaExpr.cpp
clang/test/CodeGenOpenCL/printf.cl [new file with mode: 0644]