[libomptarget][nfc] Move lanemask_t type into target_impl.h
authorJon Chesterfield <jonathanchesterfield@gmail.com>
Thu, 19 Aug 2021 17:42:23 +0000 (18:42 +0100)
committerJon Chesterfield <jonathanchesterfield@gmail.com>
Thu, 19 Aug 2021 17:50:03 +0000 (18:50 +0100)
openmp/libomptarget/deviceRTLs/amdgcn/src/amdgcn_interface.h
openmp/libomptarget/deviceRTLs/amdgcn/src/target_impl.h
openmp/libomptarget/deviceRTLs/nvptx/src/nvptx_interface.h
openmp/libomptarget/deviceRTLs/nvptx/src/target_impl.h

index 1e653da..c3b2f59 100644 (file)
@@ -12,7 +12,6 @@
 #include <stdint.h>
 
 #define EXTERN extern "C"
-typedef uint64_t __kmpc_impl_lanemask_t;
 typedef uint32_t omp_lock_t; /* arbitrary type of the right length */
 
 EXTERN uint32_t __kmpc_amdgcn_gpu_num_threads();
index fe1c6a7..830911d 100644 (file)
@@ -25,6 +25,8 @@
 #define PRId64 "ld"
 #define PRIu64 "lu"
 
+typedef uint64_t __kmpc_impl_lanemask_t;
+
 #define INLINE inline
 #define NOINLINE __attribute__((noinline))
 #define ALIGN(N) __attribute__((aligned(N)))
index f3e34c2..b8fd91e 100644 (file)
@@ -12,8 +12,6 @@
 #include <stdint.h>
 
 #define EXTERN extern "C"
-
-typedef uint32_t __kmpc_impl_lanemask_t;
 typedef uint32_t omp_lock_t; /* arbitrary type of the right length */
 
 #endif
index a2346d4..196f623 100644 (file)
@@ -18,6 +18,8 @@
 
 #include "nvptx_interface.h"
 
+typedef uint32_t __kmpc_impl_lanemask_t;
+
 #define INLINE inline __attribute__((always_inline))
 #define NOINLINE __attribute__((noinline))
 #define ALIGN(N) __attribute__((aligned(N)))