[OpenCL] Add missing subgroup builtins
authorJoey Gouly <joey.gouly@gmail.com>
Tue, 1 Aug 2017 13:27:09 +0000 (13:27 +0000)
committerJoey Gouly <joey.gouly@gmail.com>
Tue, 1 Aug 2017 13:27:09 +0000 (13:27 +0000)
commitfa76b49cefd861a45d7ff2b55a53492978b0e015
tree1781353485bed68b8c0b5aa6c076859fd24c4b54
parent91ff5c6d47282eb403b92e31a96412256f7ecf7d
[OpenCL] Add missing subgroup builtins

This adds get_kernel_max_sub_group_size_for_ndrange and
get_kernel_sub_group_count_for_ndrange.

llvm-svn: 309678
clang/include/clang/Basic/Builtins.def
clang/lib/CodeGen/CGBuiltin.cpp
clang/lib/Sema/SemaChecking.cpp
clang/test/CodeGenOpenCL/cl20-device-side-enqueue.cl
clang/test/SemaOpenCL/cl20-device-side-enqueue.cl