[Openmp-commits] [PATCH] D119747: [Libomptarget][NFC] Remove constexpr to hide warnings

Joseph Huber via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Mon Feb 14 12:34:37 PST 2022


This revision was automatically updated to reflect the committed changes.
Closed by commit rG48e3dcecc425: [Libomptarget][NFC] Remove constexpr to hide warnings (authored by jhuber6).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D119747/new/

https://reviews.llvm.org/D119747

Files:
  openmp/libomptarget/DeviceRTL/src/Mapping.cpp


Index: openmp/libomptarget/DeviceRTL/src/Mapping.cpp
===================================================================
--- openmp/libomptarget/DeviceRTL/src/Mapping.cpp
+++ openmp/libomptarget/DeviceRTL/src/Mapping.cpp
@@ -29,7 +29,7 @@
 ///{
 #pragma omp begin declare variant match(device = {arch(amdgcn)})
 
-constexpr const llvm::omp::GV &getGridValue() {
+static const llvm::omp::GV &getGridValue() {
   return llvm::omp::getAMDGPUGridValues<__AMDGCN_WAVEFRONT_SIZE>();
 }
 
@@ -104,7 +104,7 @@
   return __nvvm_read_ptx_sreg_ntid_x();
 }
 
-constexpr const llvm::omp::GV &getGridValue() {
+static const llvm::omp::GV &getGridValue() {
   return llvm::omp::NVPTXGridValues;
 }
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D119747.408567.patch
Type: text/x-patch
Size: 686 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20220214/61657851/attachment.bin>


More information about the Openmp-commits mailing list