[llvm] 7de5da2 - [OpenMP][NFC] Move address space enum into OMPConstants header
Johannes Doerfert via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 28 21:53:53 PST 2021
Author: Johannes Doerfert
Date: 2021-12-28T23:53:28-06:00
New Revision: 7de5da2a67e5ef972535537fbcf10e2f2591e570
URL: https://github.com/llvm/llvm-project/commit/7de5da2a67e5ef972535537fbcf10e2f2591e570
DIFF: https://github.com/llvm/llvm-project/commit/7de5da2a67e5ef972535537fbcf10e2f2591e570.diff
LOG: [OpenMP][NFC] Move address space enum into OMPConstants header
Added:
Modified:
llvm/include/llvm/Frontend/OpenMP/OMPConstants.h
llvm/lib/Transforms/IPO/OpenMPOpt.cpp
Removed:
################################################################################
diff --git a/llvm/include/llvm/Frontend/OpenMP/OMPConstants.h b/llvm/include/llvm/Frontend/OpenMP/OMPConstants.h
index d2f9bac16e5a2..c82f8e69b7438 100644
--- a/llvm/include/llvm/Frontend/OpenMP/OMPConstants.h
+++ b/llvm/include/llvm/Frontend/OpenMP/OMPConstants.h
@@ -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
diff --git a/llvm/lib/Transforms/IPO/OpenMPOpt.cpp b/llvm/lib/Transforms/IPO/OpenMPOpt.cpp
index c24ca90ce1bac..e0cb736952e89 100644
--- a/llvm/lib/Transforms/IPO/OpenMPOpt.cpp
+++ b/llvm/lib/Transforms/IPO/OpenMPOpt.cpp
@@ -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;
More information about the llvm-commits
mailing list