[llvm] 86e9be0 - EquivalenceClasses: Make ECValue public. NFC (#139689)

via llvm-commits llvm-commits at lists.llvm.org
Thu May 15 22:09:10 PDT 2025


Author: Ruiling, Song
Date: 2025-05-16T13:09:07+08:00
New Revision: 86e9be0954ac054bdf5164d1e9a17e330cbd2429

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

LOG: EquivalenceClasses: Make ECValue public. NFC (#139689)

Expose the inner class so that we can explicitly write the type outside
the parent class.

Added: 
    

Modified: 
    llvm/include/llvm/ADT/EquivalenceClasses.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/ADT/EquivalenceClasses.h b/llvm/include/llvm/ADT/EquivalenceClasses.h
index fed012ce56005..b1009f8b49992 100644
--- a/llvm/include/llvm/ADT/EquivalenceClasses.h
+++ b/llvm/include/llvm/ADT/EquivalenceClasses.h
@@ -60,6 +60,7 @@ namespace llvm {
 ///   5 1 2
 ///
 template <class ElemTy> class EquivalenceClasses {
+public:
   /// ECValue - The EquivalenceClasses data structure is just a set of these.
   /// Each of these represents a relation for a value.  First it stores the
   /// value itself. Next, it provides a "next pointer", which is used to
@@ -122,6 +123,7 @@ template <class ElemTy> class EquivalenceClasses {
     }
   };
 
+private:
   /// TheMapping - This implicitly provides a mapping from ElemTy values to the
   /// ECValues, it just keeps the key as part of the value.
   DenseMap<ElemTy, ECValue *> TheMapping;


        


More information about the llvm-commits mailing list