[cfe-commits] [PATCH] OpenCL inline calls have internal linkage

Anton Lokhmotov Anton.Lokhmotov at arm.com
Thu Jun 14 04:15:15 PDT 2012


Hi Tanya,

> In OpenCL inline calls without a specified storage class should have
> internal linkage. The attached patch makes this modification and adds a
> test case.

If this is OpenCL 1.2 specific, it should be guarded on a new language
option OpenCL_1_2 [1].

+
+// CHECK: define internal fastcc i32 @bar(i32 %X) nounwind readnone
inlinehint
+

Please correct me if I'm wrong but isn't fastcc an x86-specific calling
convention?  In this case, a regular expression should be used to allow this
check passing on a different architecture.

Many thanks,
Anton.

[1] http://lists.cs.uiuc.edu/pipermail/cfe-dev/2012-June/022116.html







More information about the cfe-commits mailing list