Index: openmp/libomptarget/DeviceRTL/include/Configuration.h =================================================================== --- openmp/libomptarget/DeviceRTL/include/Configuration.h +++ openmp/libomptarget/DeviceRTL/include/Configuration.h @@ -15,7 +15,7 @@ #include "Types.h" -namespace _OMP { +namespace ompx { namespace config { enum DebugKind : uint32_t { @@ -49,6 +49,6 @@ bool mayUseNestedParallelism(); } // namespace config -} // namespace _OMP +} // namespace ompx #endif Index: openmp/libomptarget/DeviceRTL/include/Mapping.h =================================================================== --- openmp/libomptarget/DeviceRTL/include/Mapping.h +++ openmp/libomptarget/DeviceRTL/include/Mapping.h @@ -14,7 +14,7 @@ #include "Types.h" -namespace _OMP { +namespace ompx { namespace mapping { @@ -97,6 +97,6 @@ } // namespace mapping -} // namespace _OMP +} // namespace ompx #endif Index: openmp/libomptarget/DeviceRTL/include/State.h =================================================================== --- openmp/libomptarget/DeviceRTL/include/State.h +++ openmp/libomptarget/DeviceRTL/include/State.h @@ -19,7 +19,7 @@ #pragma omp begin declare target device_type(nohost) -namespace _OMP { +namespace ompx { namespace memory { @@ -364,7 +364,7 @@ } // namespace icv -} // namespace _OMP +} // namespace ompx #pragma omp end declare target Index: openmp/libomptarget/DeviceRTL/include/Synchronization.h =================================================================== --- openmp/libomptarget/DeviceRTL/include/Synchronization.h +++ openmp/libomptarget/DeviceRTL/include/Synchronization.h @@ -14,7 +14,7 @@ #include "Types.h" -namespace _OMP { +namespace ompx { namespace synchronize { @@ -124,6 +124,6 @@ } // namespace fence -} // namespace _OMP +} // namespace ompx #endif Index: openmp/libomptarget/DeviceRTL/include/Utils.h =================================================================== --- openmp/libomptarget/DeviceRTL/include/Utils.h +++ openmp/libomptarget/DeviceRTL/include/Utils.h @@ -16,7 +16,7 @@ #pragma omp begin declare target device_type(nohost) -namespace _OMP { +namespace ompx { namespace utils { /// Return the value \p Var from thread Id \p SrcLane in the warp if the thread @@ -89,7 +89,7 @@ #define OMP_UNLIKELY(EXPR) __builtin_expect((bool)(EXPR), false) } // namespace utils -} // namespace _OMP +} // namespace ompx #pragma omp end declare target Index: openmp/libomptarget/DeviceRTL/src/Configuration.cpp =================================================================== --- openmp/libomptarget/DeviceRTL/src/Configuration.cpp +++ openmp/libomptarget/DeviceRTL/src/Configuration.cpp @@ -16,7 +16,7 @@ #include "State.h" #include "Types.h" -using namespace _OMP; +using namespace ompx; #pragma omp begin declare target device_type(nohost) Index: openmp/libomptarget/DeviceRTL/src/Debug.cpp =================================================================== --- openmp/libomptarget/DeviceRTL/src/Debug.cpp +++ openmp/libomptarget/DeviceRTL/src/Debug.cpp @@ -16,7 +16,7 @@ #include "Mapping.h" #include "Types.h" -using namespace _OMP; +using namespace ompx; #pragma omp begin declare target device_type(nohost) Index: openmp/libomptarget/DeviceRTL/src/Kernel.cpp =================================================================== --- openmp/libomptarget/DeviceRTL/src/Kernel.cpp +++ openmp/libomptarget/DeviceRTL/src/Kernel.cpp @@ -17,7 +17,7 @@ #include "Synchronization.h" #include "Types.h" -using namespace _OMP; +using namespace ompx; #pragma omp begin declare target device_type(nohost) Index: openmp/libomptarget/DeviceRTL/src/Mapping.cpp =================================================================== --- openmp/libomptarget/DeviceRTL/src/Mapping.cpp +++ openmp/libomptarget/DeviceRTL/src/Mapping.cpp @@ -19,9 +19,9 @@ #include "llvm/Frontend/OpenMP/OMPGridValues.h" -using namespace _OMP; +using namespace ompx; -namespace _OMP { +namespace ompx { namespace impl { // Forward declarations defined to be defined for AMDGCN and NVPTX. @@ -154,7 +154,7 @@ uint32_t getWarpSize() { return getGridValue().GV_Warp_Size; } } // namespace impl -} // namespace _OMP +} // namespace ompx /// We have to be deliberate about the distinction of `mapping::` and `impl::` /// below to avoid repeating assumptions or including irrelevant ones. Index: openmp/libomptarget/DeviceRTL/src/Misc.cpp =================================================================== --- openmp/libomptarget/DeviceRTL/src/Misc.cpp +++ openmp/libomptarget/DeviceRTL/src/Misc.cpp @@ -15,7 +15,7 @@ #pragma omp begin declare target device_type(nohost) -namespace _OMP { +namespace ompx { namespace impl { double getWTick(); @@ -59,7 +59,7 @@ #pragma omp end declare variant } // namespace impl -} // namespace _OMP +} // namespace ompx /// Interfaces /// @@ -76,9 +76,9 @@ return 0; } -double omp_get_wtick(void) { return _OMP::impl::getWTick(); } +double omp_get_wtick(void) { return ompx::impl::getWTick(); } -double omp_get_wtime(void) { return _OMP::impl::getWTime(); } +double omp_get_wtime(void) { return ompx::impl::getWTime(); } } ///} Index: openmp/libomptarget/DeviceRTL/src/Parallelism.cpp =================================================================== --- openmp/libomptarget/DeviceRTL/src/Parallelism.cpp +++ openmp/libomptarget/DeviceRTL/src/Parallelism.cpp @@ -40,7 +40,7 @@ #include "Types.h" #include "Utils.h" -using namespace _OMP; +using namespace ompx; #pragma omp begin declare target device_type(nohost) Index: openmp/libomptarget/DeviceRTL/src/Reduction.cpp =================================================================== --- openmp/libomptarget/DeviceRTL/src/Reduction.cpp +++ openmp/libomptarget/DeviceRTL/src/Reduction.cpp @@ -18,7 +18,7 @@ #include "Types.h" #include "Utils.h" -using namespace _OMP; +using namespace ompx; namespace { Index: openmp/libomptarget/DeviceRTL/src/State.cpp =================================================================== --- openmp/libomptarget/DeviceRTL/src/State.cpp +++ openmp/libomptarget/DeviceRTL/src/State.cpp @@ -17,7 +17,7 @@ #include "Types.h" #include "Utils.h" -using namespace _OMP; +using namespace ompx; #pragma omp begin declare target device_type(nohost) @@ -221,8 +221,8 @@ ASSERT(HasThreadState == Other.HasThreadState); } -state::TeamStateTy SHARED(_OMP::state::TeamState); -state::ThreadStateTy **SHARED(_OMP::state::ThreadStates); +state::TeamStateTy SHARED(ompx::state::TeamState); +state::ThreadStateTy **SHARED(ompx::state::ThreadStates); namespace { Index: openmp/libomptarget/DeviceRTL/src/Synchronization.cpp =================================================================== --- openmp/libomptarget/DeviceRTL/src/Synchronization.cpp +++ openmp/libomptarget/DeviceRTL/src/Synchronization.cpp @@ -21,7 +21,7 @@ #pragma omp begin declare target device_type(nohost) -using namespace _OMP; +using namespace ompx; namespace impl { Index: openmp/libomptarget/DeviceRTL/src/Tasking.cpp =================================================================== --- openmp/libomptarget/DeviceRTL/src/Tasking.cpp +++ openmp/libomptarget/DeviceRTL/src/Tasking.cpp @@ -18,7 +18,7 @@ #include "Types.h" #include "Utils.h" -using namespace _OMP; +using namespace ompx; #pragma omp begin declare target device_type(nohost) Index: openmp/libomptarget/DeviceRTL/src/Utils.cpp =================================================================== --- openmp/libomptarget/DeviceRTL/src/Utils.cpp +++ openmp/libomptarget/DeviceRTL/src/Utils.cpp @@ -17,7 +17,7 @@ #pragma omp begin declare target device_type(nohost) -using namespace _OMP; +using namespace ompx; extern "C" __attribute__((weak)) int IsSPMDMode; Index: openmp/libomptarget/DeviceRTL/src/Workshare.cpp =================================================================== --- openmp/libomptarget/DeviceRTL/src/Workshare.cpp +++ openmp/libomptarget/DeviceRTL/src/Workshare.cpp @@ -20,7 +20,7 @@ #include "Types.h" #include "Utils.h" -using namespace _OMP; +using namespace ompx; // TODO: struct DynamicScheduleTracker {