SPIR/OpenCL size_t/ptrdiff_t as builtin types - preliminary patch

Hi all,

The attached patch contains implementation for turning OpenCL size_t and ptrdiff_t types to builtin types (on top of my previous patch).

This patch needs some additional polishing, like addition of size_t specific tests and changing some names.

In spite of the issues above, I find it very important to send this mail before the LLVM developers’ conference. During the conference we will hold a SPIR BOF session, and this patch will be used to explain some aspects of the SPIR approach.

Please review

Guy

image001.png

size_t.patch (45.7 KB)

Comments below.