aboutsummaryrefslogtreecommitdiff
path: root/libclc
diff options
context:
space:
mode:
authorRomaric Jodin <89833130+rjodinchr@users.noreply.github.com>2024-05-17 15:13:32 +0200
committerGitHub <noreply@github.com>2024-05-17 06:13:32 -0700
commit932ca85680db5e4579306f37e55746097fb8ec7f (patch)
tree8b9b846a4886d5c42a0a5f3162e4394ac3c6c130 /libclc
parent3a32590f25482e283a79dea1f313a226a6dd392f (diff)
downloadllvm-932ca85680db5e4579306f37e55746097fb8ec7f.zip
llvm-932ca85680db5e4579306f37e55746097fb8ec7f.tar.gz
llvm-932ca85680db5e4579306f37e55746097fb8ec7f.tar.bz2
libclc: remove __attribute__((assume)) for clspv targets (#92126)
Instead add a proper attribute in clang, and add convert it to function metadata to keep the information in the IR. The goal is to remove the dependency on __attribute__((assume)) that should have not be there in the first place. Ref https://github.com/llvm/llvm-project/pull/84934
Diffstat (limited to 'libclc')
-rw-r--r--libclc/generic/include/clc/clcfunc.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/libclc/generic/include/clc/clcfunc.h b/libclc/generic/include/clc/clcfunc.h
index ad9eb23..086d780 100644
--- a/libclc/generic/include/clc/clcfunc.h
+++ b/libclc/generic/include/clc/clcfunc.h
@@ -7,8 +7,7 @@
#if defined(CLC_SPIRV) || defined(CLC_SPIRV64)
#define _CLC_DEF
#elif defined(CLC_CLSPV) || defined(CLC_CLSPV64)
-#define _CLC_DEF \
- __attribute__((noinline)) __attribute__((assume("clspv_libclc_builtin")))
+#define _CLC_DEF __attribute__((noinline)) __attribute__((clspv_libclc_builtin))
#else
#define _CLC_DEF __attribute__((always_inline))
#endif