[libclc] r324370 - vstore_half: Make sure the helper function is always inline

Jan Vesely via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 6 10:44:35 PST 2018


Author: jvesely
Date: Tue Feb  6 10:44:35 2018
New Revision: 324370

URL: http://llvm.org/viewvc/llvm-project?rev=324370&view=rev
Log:
vstore_half: Make sure the helper function is always inline

Reviewer: Jeroen Ketema <j.ketema at xs4all.nl>
Signed-off-by: Jan Vesely <jan.vesely at rutgers.edu>

Modified:
    libclc/trunk/generic/lib/shared/vstore.cl

Modified: libclc/trunk/generic/lib/shared/vstore.cl
URL: http://llvm.org/viewvc/llvm-project/libclc/trunk/generic/lib/shared/vstore.cl?rev=324370&r1=324369&r2=324370&view=diff
==============================================================================
--- libclc/trunk/generic/lib/shared/vstore.cl (original)
+++ libclc/trunk/generic/lib/shared/vstore.cl Tue Feb  6 10:44:35 2018
@@ -59,7 +59,7 @@ VSTORE_ADDR_SPACES(float)
 #define DECLARE_HELPER(STYPE, AS, builtin) void __clc_vstore_half_##STYPE##_helper##AS(STYPE, AS half *);
 #else
 #define DECLARE_HELPER(STYPE, AS, __builtin) \
-inline void __clc_vstore_half_##STYPE##_helper##AS(STYPE s, AS half *d) \
+_CLC_DEF void __clc_vstore_half_##STYPE##_helper##AS(STYPE s, AS half *d) \
 { \
 	__builtin(s, d); \
 }




More information about the cfe-commits mailing list