]> granicus.if.org Git - clang/commit
Recommit: R258773 [OpenCL] Pipe builtin functions
authorXiuli Pan <xiulipan@outlook.com>
Tue, 26 Jan 2016 04:03:48 +0000 (04:03 +0000)
committerXiuli Pan <xiulipan@outlook.com>
Tue, 26 Jan 2016 04:03:48 +0000 (04:03 +0000)
commit3c885c3f72ad748abc835e15f4c3f1a289d852e9
treed693114265f8950b754a89f3b8bea6d726220202
parent3eb0f55c2626d98b95cee1c8f7574718d8d0f0cd
Recommit: R258773 [OpenCL] Pipe builtin functions
Fix arc patch fuzz error.
Summary:
Support for the pipe built-in functions for OpenCL 2.0.
The pipe builtin functions may have infinite kinds of element types, one approach
would be to just generate calls that would always use generic types such as void*.
This patch is based on bader's opencl support patch on SPIR-V branch.

Reviewers: Anastasia, pekka.jaaskelainen

Subscribers: keryell, bader, cfe-commits

Differential Revision: http://reviews.llvm.org/D15914

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@258782 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/Builtins.def
include/clang/Basic/Builtins.h
include/clang/Basic/DiagnosticSemaKinds.td
lib/Basic/Builtins.cpp
lib/CodeGen/CGBuiltin.cpp
lib/Sema/SemaChecking.cpp
test/CodeGenOpenCL/pipe_builtin.cl [new file with mode: 0644]
test/SemaOpenCL/invalid-pipe-builtin-cl2.0.cl [new file with mode: 0644]