[Libclc-dev] [PATCH 1/7] vstore_half: Make sure the helper function is always inline
Jan Vesely via Libclc-dev
libclc-dev at lists.llvm.org
Sun Jan 28 16:07:00 PST 2018
Signed-off-by: Jan Vesely <jan.vesely at rutgers.edu>
---
generic/lib/shared/vstore.cl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/generic/lib/shared/vstore.cl b/generic/lib/shared/vstore.cl
index e5383a8..1346620 100644
--- a/generic/lib/shared/vstore.cl
+++ b/generic/lib/shared/vstore.cl
@@ -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); \
}
--
2.14.3
More information about the Libclc-dev
mailing list