[PATCH] D15914: [OpenCL] Pipe builtin functions
Xiuli PAN via cfe-commits
cfe-commits at lists.llvm.org
Tue Jan 5 22:05:30 PST 2016
pxli168 created this revision.
pxli168 added reviewers: pekka.jaaskelainen, Anastasia.
pxli168 added subscribers: cfe-commits, bader.
Support for the pipe built-in functions.
The pipe packet type can be user defined structure, we need to handle this in clang frontend.
This version is based on bader's opencl support patches. It transform all kinds of pipe type in anonymous pipe and identify the actual type by packet size in byte, and bitcast pointers to void* to get one function definition.
We may discuss how to handle these pipe built-in functions, I have tried few ways and none of them seems to be a perfect solution.
http://reviews.llvm.org/D15914
Files:
include/clang/Basic/Builtins.def
include/clang/Basic/DiagnosticSemaKinds.td
lib/CodeGen/CGBuiltin.cpp
lib/CodeGen/CGOpenCLRuntime.cpp
lib/CodeGen/CGOpenCLRuntime.h
lib/Sema/SemaChecking.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D15914.44086.patch
Type: text/x-patch
Size: 23315 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20160106/c571e51e/attachment-0001.bin>
More information about the cfe-commits
mailing list