[llvm-branch-commits] [llvm-branch] r201996 - modest cleanups

Gabor Greif ggreif at gmail.com
Sun Feb 23 14:30:55 PST 2014


Author: ggreif
Date: Sun Feb 23 16:30:55 2014
New Revision: 201996

URL: http://llvm.org/viewvc/llvm-project?rev=201996&view=rev
Log:
modest cleanups

Modified:
    llvm/branches/ggreif/waymark-64-new/include/llvm/IR/Use.h
    llvm/branches/ggreif/waymark-64-new/lib/IR/Use.cpp

Modified: llvm/branches/ggreif/waymark-64-new/include/llvm/IR/Use.h
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/ggreif/waymark-64-new/include/llvm/IR/Use.h?rev=201996&r1=201995&r2=201996&view=diff
==============================================================================
--- llvm/branches/ggreif/waymark-64-new/include/llvm/IR/Use.h (original)
+++ llvm/branches/ggreif/waymark-64-new/include/llvm/IR/Use.h Sun Feb 23 16:30:55 2014
@@ -51,7 +51,7 @@ public:
   enum { NumLowBitsAvailable = 2 + (sizeof(Use**) >= 8) };
 };
 
-  //PointerIntPair<Use**, 2 + (sizeof(Use**) >= 8), PrevPtrTag3> Prev;
+// Smart baseclass to Use, that provides necessary discriminators.
 template <bool = (sizeof(Use**) >= 8)> struct PrevPointerIntPair;
 
 template <> struct PrevPointerIntPair<false> {
@@ -64,7 +64,6 @@ template <> struct PrevPointerIntPair<fa
 };
 
 template <> struct PrevPointerIntPair<true> {
-
   enum PrevPtrTag3 { fullStopTag3,
 		     stopTag3,
 		     skipStopTag3,
@@ -77,8 +76,6 @@ template <> struct PrevPointerIntPair<tr
   typedef PointerIntPair<Use**, 3, PrevPtrTag3> Pair;
 };
 
-
-
 //===----------------------------------------------------------------------===//
 //                                  Use Class
 //===----------------------------------------------------------------------===//
@@ -103,23 +100,6 @@ private:
     if (Val) removeFromList();
   }
 
-  /*
-  enum PrevPtrTag { zeroDigitTag
-                  , oneDigitTag
-                  , stopTag
-                  , fullStopTag };
-
-  enum PrevPtrTag3 { fullStopTag3,
-		     stopTag3,
-		     skipStopTag3,
-		     skip2StopTag3,
-		     zeroZeroDigitTag3,
-		     zeroOneDigitTag3,
-		     oneZeroDigitTag3,
-		     oneOneDigitTag3 };
-  template <size_t> struct TagTraits
-  */
-
   /// Constructor
   Use(PrevPointerIntPair<>::Tag_t tag) : Val(0) {
     Prev.setInt(tag);
@@ -171,8 +151,6 @@ private:
 
   Value *Val;
   Use *Next;
-  //PointerIntPair<Use**, 2 + (sizeof(Use**) >= 8), PrevPtrTag3> Prev;
-  //PrevPointerIntPair<(sizeof(Use**) >= 8)>::Pair Prev;
   PrevPointerIntPair<>::Pair Prev;
 
   void setPrev(Use **NewPrev) {

Modified: llvm/branches/ggreif/waymark-64-new/lib/IR/Use.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/ggreif/waymark-64-new/lib/IR/Use.cpp?rev=201996&r1=201995&r2=201996&view=diff
==============================================================================
--- llvm/branches/ggreif/waymark-64-new/lib/IR/Use.cpp (original)
+++ llvm/branches/ggreif/waymark-64-new/lib/IR/Use.cpp Sun Feb 23 16:30:55 2014
@@ -81,18 +81,6 @@ const Use *Use::getImpliedUser<4>() cons
     }
   }
 }
-
-
-enum Tag3 {
-  fullStopTag3,
-  stopTag3,
-  skipStopTag3,
-  skip2StopTag3,
-  zeroZeroDigitTag3,
-  zeroOneDigitTag3,
-  oneZeroDigitTag3,
-  oneOneDigitTag3
-};
 */
 
 template<>





More information about the llvm-branch-commits mailing list