[PATCH] D132362: Add clspv to libclc targets exempt from alwaysinline
Aaron Greig via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 22 02:55:37 PDT 2022
aarongreig created this revision.
Herald added a subscriber: jvesely.
Herald added a project: All.
aarongreig requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Like the other SPIR-V targets clspv performs optimizations on the code it gets from libclc after linking, and it also stands to benefit from being able to choose which functions get inlined.
This contribution is being made by Codeplay on behalf of Samsung.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D132362
Files:
libclc/generic/include/clc/clcfunc.h
Index: libclc/generic/include/clc/clcfunc.h
===================================================================
--- libclc/generic/include/clc/clcfunc.h
+++ libclc/generic/include/clc/clcfunc.h
@@ -2,8 +2,10 @@
#define _CLC_DECL
#define _CLC_INLINE __attribute__((always_inline)) inline
-/* avoid inlines for SPIR-V since we'll optimise later in the chain */
-#if defined(CLC_SPIRV) || defined(CLC_SPIRV64)
+// avoid inlines for SPIR-V related targets since we'll optimise later in the
+// chain
+#if defined(CLC_SPIRV) || defined(CLC_SPIRV64) || defined(CLC_CLSPV) || \
+ defined(CLC_CLSPV64)
#define _CLC_DEF
#else
#define _CLC_DEF __attribute__((always_inline))
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D132362.454049.patch
Type: text/x-patch
Size: 675 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220822/3cd6f196/attachment.bin>
More information about the llvm-commits
mailing list