Skip to content

Commit 76bb987

Browse files
authored
[NFC][libclc] add missing __CLC_ prefix all internal macros (#153523)
This unifies naming scheme of macros to address review comment intel/llvm#19779 (comment) math constant value macros are not changed, e.g. `#define AU0 -9.86494292470009928597e-03`
1 parent 34c7b7c commit 76bb987

File tree

665 files changed

+2500
-2470
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

665 files changed

+2500
-2470
lines changed

libclc/clc/include/clc/atomic/atomic_decl.inc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,23 +14,23 @@
1414

1515
#ifdef __CLC_NO_VALUE_ARG
1616
#define __CLC_DECLARE_ATOMIC(ADDRSPACE) \
17-
_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE FUNCTION( \
17+
_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE __CLC_FUNCTION( \
1818
volatile ADDRSPACE __CLC_GENTYPE *Ptr, int MemoryOrder, \
1919
int MemoryScope);
2020
#elif defined(__CLC_RETURN_VOID)
2121
#define __CLC_DECLARE_ATOMIC(ADDRSPACE) \
22-
_CLC_OVERLOAD _CLC_DECL void FUNCTION(volatile ADDRSPACE __CLC_GENTYPE *Ptr, \
23-
__CLC_GENTYPE Value, int MemoryOrder, \
24-
int MemoryScope);
22+
_CLC_OVERLOAD _CLC_DECL void __CLC_FUNCTION( \
23+
volatile ADDRSPACE __CLC_GENTYPE *Ptr, __CLC_GENTYPE Value, \
24+
int MemoryOrder, int MemoryScope);
2525
#elif defined(__CLC_COMPARE_EXCHANGE)
2626
#define __CLC_DECLARE_ATOMIC(ADDRSPACE) \
27-
_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE FUNCTION( \
27+
_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE __CLC_FUNCTION( \
2828
volatile ADDRSPACE __CLC_GENTYPE *Ptr, __CLC_GENTYPE Comparator, \
2929
__CLC_GENTYPE Value, int MemoryOrderEqual, int MemoryOrderUnequal, \
3030
int MemoryScope);
3131
#else
3232
#define __CLC_DECLARE_ATOMIC(ADDRSPACE) \
33-
_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE FUNCTION( \
33+
_CLC_OVERLOAD _CLC_DECL __CLC_GENTYPE __CLC_FUNCTION( \
3434
volatile ADDRSPACE __CLC_GENTYPE *Ptr, __CLC_GENTYPE Value, \
3535
int MemoryOrder, int MemoryScope);
3636
#endif

libclc/clc/include/clc/atomic/clc_atomic_compare_exchange.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
#include <clc/internal/clc.h>
1313

14-
#define FUNCTION __clc_atomic_compare_exchange
14+
#define __CLC_FUNCTION __clc_atomic_compare_exchange
1515
#define __CLC_COMPARE_EXCHANGE
1616

1717
#define __CLC_BODY <clc/atomic/atomic_decl.inc>
@@ -21,6 +21,6 @@
2121
#include <clc/math/gentype.inc>
2222

2323
#undef __CLC_COMPARE_EXCHANGE
24-
#undef FUNCTION
24+
#undef __CLC_FUNCTION
2525

2626
#endif // __CLC_ATOMIC_CLC_ATOMIC_COMPARE_EXCHANGE_H__

libclc/clc/include/clc/atomic/clc_atomic_dec.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111

1212
#include <clc/internal/clc.h>
1313

14-
#define FUNCTION __clc_atomic_dec
14+
#define __CLC_FUNCTION __clc_atomic_dec
1515
#define __CLC_NO_VALUE_ARG
1616

1717
#define __CLC_BODY <clc/atomic/atomic_decl.inc>
1818
#include <clc/integer/gentype.inc>
1919

2020
#undef __CLC_NO_VALUE_ARG
21-
#undef FUNCTION
21+
#undef __CLC_FUNCTION
2222

2323
#endif // __CLC_ATOMIC_CLC_ATOMIC_DEC_H__

libclc/clc/include/clc/atomic/clc_atomic_exchange.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@
1111

1212
#include <clc/internal/clc.h>
1313

14-
#define FUNCTION __clc_atomic_exchange
14+
#define __CLC_FUNCTION __clc_atomic_exchange
1515

1616
#define __CLC_BODY <clc/atomic/atomic_decl.inc>
1717
#include <clc/integer/gentype.inc>
1818

1919
#define __CLC_BODY <clc/atomic/atomic_decl.inc>
2020
#include <clc/math/gentype.inc>
2121

22-
#undef FUNCTION
22+
#undef __CLC_FUNCTION
2323

2424
#endif // __CLC_ATOMIC_CLC_ATOMIC_EXCHANGE_H__

libclc/clc/include/clc/atomic/clc_atomic_fetch_add.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@
1111

1212
#include <clc/internal/clc.h>
1313

14-
#define FUNCTION __clc_atomic_fetch_add
14+
#define __CLC_FUNCTION __clc_atomic_fetch_add
1515

1616
#define __CLC_BODY <clc/atomic/atomic_decl.inc>
1717
#include <clc/integer/gentype.inc>
1818

1919
#define __CLC_BODY <clc/atomic/atomic_decl.inc>
2020
#include <clc/math/gentype.inc>
2121

22-
#undef FUNCTION
22+
#undef __CLC_FUNCTION
2323

2424
#endif // __CLC_ATOMIC_CLC_ATOMIC_FETCH_ADD_H__

libclc/clc/include/clc/atomic/clc_atomic_fetch_and.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111

1212
#include <clc/internal/clc.h>
1313

14-
#define FUNCTION __clc_atomic_fetch_and
14+
#define __CLC_FUNCTION __clc_atomic_fetch_and
1515

1616
#define __CLC_BODY <clc/atomic/atomic_decl.inc>
1717
#include <clc/integer/gentype.inc>
1818

19-
#undef FUNCTION
19+
#undef __CLC_FUNCTION
2020

2121
#endif // __CLC_ATOMIC_CLC_ATOMIC_FETCH_AND_H__

libclc/clc/include/clc/atomic/clc_atomic_fetch_max.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@
1111

1212
#include <clc/internal/clc.h>
1313

14-
#define FUNCTION __clc_atomic_fetch_max
14+
#define __CLC_FUNCTION __clc_atomic_fetch_max
1515

1616
#define __CLC_BODY <clc/atomic/atomic_decl.inc>
1717
#include <clc/integer/gentype.inc>
1818

1919
#define __CLC_BODY <clc/atomic/atomic_decl.inc>
2020
#include <clc/math/gentype.inc>
2121

22-
#undef FUNCTION
22+
#undef __CLC_FUNCTION
2323

2424
#endif // __CLC_ATOMIC_CLC_ATOMIC_FETCH_MAX_H__

libclc/clc/include/clc/atomic/clc_atomic_fetch_min.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@
1111

1212
#include <clc/internal/clc.h>
1313

14-
#define FUNCTION __clc_atomic_fetch_min
14+
#define __CLC_FUNCTION __clc_atomic_fetch_min
1515

1616
#define __CLC_BODY <clc/atomic/atomic_decl.inc>
1717
#include <clc/integer/gentype.inc>
1818

1919
#define __CLC_BODY <clc/atomic/atomic_decl.inc>
2020
#include <clc/math/gentype.inc>
2121

22-
#undef FUNCTION
22+
#undef __CLC_FUNCTION
2323

2424
#endif // __CLC_ATOMIC_CLC_ATOMIC_FETCH_MIN_H__

libclc/clc/include/clc/atomic/clc_atomic_fetch_or.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111

1212
#include <clc/internal/clc.h>
1313

14-
#define FUNCTION __clc_atomic_fetch_or
14+
#define __CLC_FUNCTION __clc_atomic_fetch_or
1515

1616
#define __CLC_BODY <clc/atomic/atomic_decl.inc>
1717
#include <clc/integer/gentype.inc>
1818

19-
#undef FUNCTION
19+
#undef __CLC_FUNCTION
2020

2121
#endif // __CLC_ATOMIC_CLC_ATOMIC_FETCH_OR_H__

libclc/clc/include/clc/atomic/clc_atomic_fetch_sub.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@
1111

1212
#include <clc/internal/clc.h>
1313

14-
#define FUNCTION __clc_atomic_fetch_sub
14+
#define __CLC_FUNCTION __clc_atomic_fetch_sub
1515

1616
#define __CLC_BODY <clc/atomic/atomic_decl.inc>
1717
#include <clc/integer/gentype.inc>
1818

1919
#define __CLC_BODY <clc/atomic/atomic_decl.inc>
2020
#include <clc/math/gentype.inc>
2121

22-
#undef FUNCTION
22+
#undef __CLC_FUNCTION
2323

2424
#endif // __CLC_ATOMIC_CLC_ATOMIC_FETCH_SUB_H__

0 commit comments

Comments
 (0)