[llvm] 74ec038 - [OMPIRBuilder] Don't include MemorySSAUpdater.h (NFC)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 2 09:48:59 PDT 2025


Author: Nikita Popov
Date: 2025-04-02T18:48:51+02:00
New Revision: 74ec038ffb34575ee93fa313cd0ea0db0c0a7e0a

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

LOG: [OMPIRBuilder] Don't include MemorySSAUpdater.h (NFC)

This header does not use MemorySSA in any way -- it was just using
a typedef from it. Write out the type instead.

Added: 
    

Modified: 
    llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h b/llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h
index 28909cef4748d..78fcce8cd77ef 100644
--- a/llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h
+++ b/llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h
@@ -14,13 +14,13 @@
 #ifndef LLVM_FRONTEND_OPENMP_OMPIRBUILDER_H
 #define LLVM_FRONTEND_OPENMP_OMPIRBUILDER_H
 
-#include "llvm/Analysis/MemorySSAUpdater.h"
 #include "llvm/Frontend/Atomic/Atomic.h"
 #include "llvm/Frontend/OpenMP/OMPConstants.h"
 #include "llvm/Frontend/OpenMP/OMPGridValues.h"
 #include "llvm/IR/DebugLoc.h"
 #include "llvm/IR/IRBuilder.h"
 #include "llvm/IR/Module.h"
+#include "llvm/IR/ValueMap.h"
 #include "llvm/Support/Allocator.h"
 #include "llvm/TargetParser/Triple.h"
 #include <forward_list>
@@ -1093,7 +1093,8 @@ class OpenMPIRBuilder {
   ///                   original and copied loop values and loop blocks.
   /// \param NamePrefix Optional name prefix for if.then if.else blocks.
   void createIfVersion(CanonicalLoopInfo *Loop, Value *IfCond,
-                       ValueToValueMapTy &VMap, const Twine &NamePrefix = "");
+                       ValueMap<const Value *, WeakTrackingVH> &VMap,
+                       const Twine &NamePrefix = "");
 
 public:
   /// Modifies the canonical loop to be a workshare loop.


        


More information about the llvm-commits mailing list