diff options
| author | Guillaume Chatelet <gchatelet@google.com> | 2023-09-26 11:45:04 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-09-26 11:45:04 +0200 |
| commit | b6bc9d72f65a5086f310f321e969d96e9a559e75 (patch) | |
| tree | 1e9a9f8c36c9dfc0106507f7b7a0055af83c4a07 /libc/src/__support/GPU | |
| parent | 7675f541f75baa20e8ec007cd625a837e89fc01f (diff) | |
[libc] Mass replace enclosing namespace (#67032)
This is step 4 of
https://discourse.llvm.org/t/rfc-customizable-namespace-to-allow-testing-the-libc-when-the-system-libc-is-also-llvms-libc/73079
Diffstat (limited to 'libc/src/__support/GPU')
| -rw-r--r-- | libc/src/__support/GPU/amdgpu/utils.h | 4 | ||||
| -rw-r--r-- | libc/src/__support/GPU/generic/utils.h | 4 | ||||
| -rw-r--r-- | libc/src/__support/GPU/nvptx/utils.h | 4 | ||||
| -rw-r--r-- | libc/src/__support/GPU/utils.h | 4 |
4 files changed, 8 insertions, 8 deletions
diff --git a/libc/src/__support/GPU/amdgpu/utils.h b/libc/src/__support/GPU/amdgpu/utils.h index f64ed796dc17..9f0ff0c717a6 100644 --- a/libc/src/__support/GPU/amdgpu/utils.h +++ b/libc/src/__support/GPU/amdgpu/utils.h @@ -14,7 +14,7 @@ #include <stdint.h> -namespace __llvm_libc { +namespace LIBC_NAMESPACE { namespace gpu { /// The number of threads that execute in lock-step in a lane. @@ -180,6 +180,6 @@ LIBC_INLINE uint64_t fixed_frequency_clock() { [[noreturn]] LIBC_INLINE void end_program() { __builtin_amdgcn_endpgm(); } } // namespace gpu -} // namespace __llvm_libc +} // namespace LIBC_NAMESPACE #endif diff --git a/libc/src/__support/GPU/generic/utils.h b/libc/src/__support/GPU/generic/utils.h index af347580cca9..b701db482bbe 100644 --- a/libc/src/__support/GPU/generic/utils.h +++ b/libc/src/__support/GPU/generic/utils.h @@ -13,7 +13,7 @@ #include <stdint.h> -namespace __llvm_libc { +namespace LIBC_NAMESPACE { namespace gpu { constexpr const uint64_t LANE_SIZE = 1; @@ -76,6 +76,6 @@ LIBC_INLINE uint64_t fixed_frequency_clock() { return 0; } [[noreturn]] LIBC_INLINE void end_program() { __builtin_unreachable(); } } // namespace gpu -} // namespace __llvm_libc +} // namespace LIBC_NAMESPACE #endif diff --git a/libc/src/__support/GPU/nvptx/utils.h b/libc/src/__support/GPU/nvptx/utils.h index 375af6ef10ac..1519f36850a6 100644 --- a/libc/src/__support/GPU/nvptx/utils.h +++ b/libc/src/__support/GPU/nvptx/utils.h @@ -13,7 +13,7 @@ #include <stdint.h> -namespace __llvm_libc { +namespace LIBC_NAMESPACE { namespace gpu { /// The number of threads that execute in lock-step in a warp. @@ -160,6 +160,6 @@ LIBC_INLINE uint64_t fixed_frequency_clock() { } } // namespace gpu -} // namespace __llvm_libc +} // namespace LIBC_NAMESPACE #endif diff --git a/libc/src/__support/GPU/utils.h b/libc/src/__support/GPU/utils.h index d598996e0aa2..6505b18dbd33 100644 --- a/libc/src/__support/GPU/utils.h +++ b/libc/src/__support/GPU/utils.h @@ -19,7 +19,7 @@ #include "generic/utils.h" #endif -namespace __llvm_libc { +namespace LIBC_NAMESPACE { namespace gpu { /// Get the first active thread inside the lane. LIBC_INLINE uint64_t get_first_lane_id(uint64_t lane_mask) { @@ -32,6 +32,6 @@ LIBC_INLINE bool is_first_lane(uint64_t lane_mask) { } } // namespace gpu -} // namespace __llvm_libc +} // namespace LIBC_NAMESPACE #endif // LLVM_LIBC_SRC___SUPPORT_OSUTIL_IO_H |
