[cfe-dev] [RFC][OpenCL] Implement OpenCL builtin functions in Clang

Andrew Savonichev via cfe-dev cfe-dev at lists.llvm.org
Fri Oct 26 08:53:41 PDT 2018

Hi Joey,

> I posted my prototype here for review/discussion: https://reviews.llvm.org/D53023
> I included some explanation / TODOs there.

Thanks a lot for working on this!

The prototype looks really good: it eliminates the need to parse 15000
declarations in a header file, or spend a good amount of hours
handcrafting all OpenCL builtins in Clang CodeGen.

In essence, this looks like a really good replacement for opencl-c.h
header, at a cost of about 170KB of additional size.


Joint Stock Company Intel A/O
Registered legal address: Krylatsky Hills Business Park,
17 Krylatskaya Str., Bldg 4, Moscow 121614,
Russian Federation

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.

More information about the cfe-dev mailing list