[Openmp-commits] [PATCH] D93328: [libomptarget][nfc] Replace static const with enum
Jon Chesterfield via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Wed Dec 16 08:40:59 PST 2020
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGb607837c75d0: [libomptarget][nfc] Replace static const with enum (authored by JonChesterfield).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D93328/new/
https://reviews.llvm.org/D93328
Files:
openmp/libomptarget/deviceRTLs/amdgcn/src/target_impl.h
openmp/libomptarget/deviceRTLs/nvptx/src/target_impl.h
Index: openmp/libomptarget/deviceRTLs/nvptx/src/target_impl.h
===================================================================
--- openmp/libomptarget/deviceRTLs/nvptx/src/target_impl.h
+++ openmp/libomptarget/deviceRTLs/nvptx/src/target_impl.h
@@ -91,8 +91,9 @@
return val;
}
-static const __kmpc_impl_lanemask_t __kmpc_impl_all_lanes =
- UINT32_C(0xffffffff);
+enum : __kmpc_impl_lanemask_t {
+ __kmpc_impl_all_lanes = ~(__kmpc_impl_lanemask_t)0
+};
INLINE __kmpc_impl_lanemask_t __kmpc_impl_lanemask_lt() {
__kmpc_impl_lanemask_t res;
Index: openmp/libomptarget/deviceRTLs/amdgcn/src/target_impl.h
===================================================================
--- openmp/libomptarget/deviceRTLs/amdgcn/src/target_impl.h
+++ openmp/libomptarget/deviceRTLs/amdgcn/src/target_impl.h
@@ -74,8 +74,9 @@
return (((uint64_t)hi) << 32) | (uint64_t)lo;
}
-static const __kmpc_impl_lanemask_t __kmpc_impl_all_lanes =
- UINT64_C(0xffffffffffffffff);
+enum : __kmpc_impl_lanemask_t {
+ __kmpc_impl_all_lanes = ~(__kmpc_impl_lanemask_t)0
+};
DEVICE __kmpc_impl_lanemask_t __kmpc_impl_lanemask_lt();
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D93328.312223.patch
Type: text/x-patch
Size: 1129 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20201216/85d0eac3/attachment.bin>
More information about the Openmp-commits
mailing list