[OpenMP][NFC] Move address space enum into OMPConstants header
authorJohannes Doerfert <johannes@jdoerfert.de>
Wed, 3 Nov 2021 17:57:43 +0000 (12:57 -0500)
committerJohannes Doerfert <johannes@jdoerfert.de>
Wed, 29 Dec 2021 05:53:28 +0000 (23:53 -0600)
llvm/include/llvm/Frontend/OpenMP/OMPConstants.h
llvm/lib/Transforms/IPO/OpenMPOpt.cpp

index d2f9bac..c82f8e6 100644 (file)
@@ -140,6 +140,14 @@ enum OMPTgtExecModeFlags : int8_t {
   LLVM_MARK_AS_BITMASK_ENUM(/* LargestValue */ OMP_TGT_EXEC_MODE_GENERIC_SPMD)
 };
 
+enum class AddressSpace : unsigned {
+  Generic = 0,
+  Global = 1,
+  Shared = 3,
+  Constant = 4,
+  Local = 5,
+};
+
 } // end namespace omp
 
 } // end namespace llvm
index c24ca90..e0cb736 100644 (file)
@@ -153,14 +153,6 @@ static constexpr auto TAG = "[" DEBUG_TYPE "]";
 
 namespace {
 
-enum class AddressSpace : unsigned {
-  Generic = 0,
-  Global = 1,
-  Shared = 3,
-  Constant = 4,
-  Local = 5,
-};
-
 struct AAHeapToShared;
 
 struct AAICVTracker;