aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp
diff options
context:
space:
mode:
authorSameer Sahasrabuddhe <sameer.sahasrabuddhe@amd.com>2015-02-06 05:44:55 +0000
committerSameer Sahasrabuddhe <sameer.sahasrabuddhe@amd.com>2015-02-06 05:44:55 +0000
commitc65605d008dd409afd768328fe0250bb33ff0e3b (patch)
tree5dcc2ae23f3eb1e05329e168a142b54a9a8a358c /lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp
parentfa9eec2e6b6bacc2d5e4aa906c3681ccceaa532c (diff)
downloadllvm-c65605d008dd409afd768328fe0250bb33ff0e3b.zip
llvm-c65605d008dd409afd768328fe0250bb33ff0e3b.tar.gz
llvm-c65605d008dd409afd768328fe0250bb33ff0e3b.tar.bz2
OpenCL: handle shift operator with vector operands
Introduce a number of checks: 1. If LHS is a scalar, then RHS cannot be a vector. 2. Operands must be of integer type. 3. If both are vectors, then the number of elements must match. Relax the requirement for "usual arithmetic conversions": When LHS is a vector, a scalar RHS can simply be expanded into a vector; OpenCL does not require that its rank be lower than the LHS. For example, the following code is not an error even if the implicit type of the constant literal is "int". char2 foo(char2 v) { return v << 1; } Consolidate existing tests under CodeGenOpenCL, and add more tests under SemaOpenCL. llvm-svn: 228382
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServer.cpp')
0 files changed, 0 insertions, 0 deletions