[clang] e2d75f9 - [OpenMP][NFC] Remove more unused code, eliminate warning

Johannes Doerfert via cfe-commits cfe-commits at lists.llvm.org
Tue Dec 13 20:53:51 PST 2022


Author: Johannes Doerfert
Date: 2022-12-13T20:53:45-08:00
New Revision: e2d75f9b6ba58940d82a2e1ef92e8270d6793788

URL: https://github.com/llvm/llvm-project/commit/e2d75f9b6ba58940d82a2e1ef92e8270d6793788
DIFF: https://github.com/llvm/llvm-project/commit/e2d75f9b6ba58940d82a2e1ef92e8270d6793788.diff

LOG: [OpenMP][NFC] Remove more unused code, eliminate warning

Added: 
    

Modified: 
    clang/lib/CodeGen/CGOpenMPRuntimeGPU.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/CodeGen/CGOpenMPRuntimeGPU.cpp b/clang/lib/CodeGen/CGOpenMPRuntimeGPU.cpp
index e6bf499eb3bfc..31f2d038ef299 100644
--- a/clang/lib/CodeGen/CGOpenMPRuntimeGPU.cpp
+++ b/clang/lib/CodeGen/CGOpenMPRuntimeGPU.cpp
@@ -856,22 +856,6 @@ void CGOpenMPRuntimeGPU::emitTargetOutlinedFunction(
   setPropertyExecutionMode(CGM, OutlinedFn->getName(), Mode);
 }
 
-namespace {
-LLVM_ENABLE_BITMASK_ENUMS_IN_NAMESPACE();
-/// Enum for accessing the reserved_2 field of the ident_t struct.
-enum ModeFlagsTy : unsigned {
-  /// Bit set to 1 when in SPMD mode.
-  KMP_IDENT_SPMD_MODE = 0x01,
-  /// Bit set to 1 when a simplified runtime is used.
-  KMP_IDENT_SIMPLE_RT_MODE = 0x02,
-  LLVM_MARK_AS_BITMASK_ENUM(/*LargestValue=*/KMP_IDENT_SIMPLE_RT_MODE)
-};
-
-/// Special mode Undefined. Is the combination of Non-SPMD mode + SimpleRuntime.
-static const ModeFlagsTy UndefinedMode =
-    (~KMP_IDENT_SPMD_MODE) & KMP_IDENT_SIMPLE_RT_MODE;
-} // anonymous namespace
-
 CGOpenMPRuntimeGPU::CGOpenMPRuntimeGPU(CodeGenModule &CGM)
     : CGOpenMPRuntime(CGM) {
   llvm::OpenMPIRBuilderConfig Config(CGM.getLangOpts().OpenMPIsDevice, true,


        


More information about the cfe-commits mailing list