[libclc] 6ca50a2 - [libclc] Correct use of CLC macro on two definitions

Fraser Cormack via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 7 09:48:42 PST 2024


Author: Fraser Cormack
Date: 2024-11-07T17:47:52Z
New Revision: 6ca50a2593641f45b5310d907e6323f5eb367dfa

URL: https://github.com/llvm/llvm-project/commit/6ca50a2593641f45b5310d907e6323f5eb367dfa
DIFF: https://github.com/llvm/llvm-project/commit/6ca50a2593641f45b5310d907e6323f5eb367dfa.diff

LOG: [libclc] Correct use of CLC macro on two definitions

_CLC_DECL is for declarations and _CLC_DEF for definitions, as the names
imply.

No change to any bitcode module.

Added: 
    

Modified: 
    libclc/generic/lib/relational/binary_def.inc
    libclc/generic/lib/relational/unary_def.inc

Removed: 
    


################################################################################
diff  --git a/libclc/generic/lib/relational/binary_def.inc b/libclc/generic/lib/relational/binary_def.inc
index 3ed68be142d005..e1ee9de7f84c2f 100644
--- a/libclc/generic/lib/relational/binary_def.inc
+++ b/libclc/generic/lib/relational/binary_def.inc
@@ -2,6 +2,6 @@
 
 #define __CLC_FUNCTION(x) __CLC_CONCAT(__clc_, x)
 
-_CLC_OVERLOAD _CLC_DECL __CLC_INTN FUNCTION(__CLC_FLOATN a, __CLC_FLOATN b) {
+_CLC_OVERLOAD _CLC_DEF __CLC_INTN FUNCTION(__CLC_FLOATN a, __CLC_FLOATN b) {
   return __CLC_FUNCTION(FUNCTION)(a, b);
 }

diff  --git a/libclc/generic/lib/relational/unary_def.inc b/libclc/generic/lib/relational/unary_def.inc
index dd9fe48731f969..0bec35804af9cd 100644
--- a/libclc/generic/lib/relational/unary_def.inc
+++ b/libclc/generic/lib/relational/unary_def.inc
@@ -2,6 +2,6 @@
 
 #define __CLC_FUNCTION(x) __CLC_CONCAT(__clc_, x)
 
-_CLC_OVERLOAD _CLC_DECL __CLC_INTN FUNCTION(__CLC_FLOATN a) {
+_CLC_OVERLOAD _CLC_DEF __CLC_INTN FUNCTION(__CLC_FLOATN a) {
   return __CLC_FUNCTION(FUNCTION)(a);
 }


        


More information about the cfe-commits mailing list