[Libclc-dev] [PATCH 1/4] clc: disable inlines for spirv builds
Dave Airlie via Libclc-dev
libclc-dev at lists.llvm.org
Thu Sep 26 17:59:16 PDT 2019
---
libclc/generic/include/clc/clcfunc.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/libclc/generic/include/clc/clcfunc.h b/libclc/generic/include/clc/clcfunc.h
index 5f166c5a414..250885883c1 100644
--- a/libclc/generic/include/clc/clcfunc.h
+++ b/libclc/generic/include/clc/clcfunc.h
@@ -1,4 +1,8 @@
#define _CLC_OVERLOAD __attribute__((overloadable))
#define _CLC_DECL
+#ifndef CLC_SPIRV
#define _CLC_DEF __attribute__((always_inline))
+#else
+#define _CLC_DEF
+#endif
#define _CLC_INLINE __attribute__((always_inline)) inline
--
2.21.0
More information about the Libclc-dev
mailing list