[llvm-commits] [llvm] r76927 - /llvm/trunk/include/llvm/Analysis/ScalarEvolution.h

Dan Gohman gohman at apple.com
Thu Jul 23 18:00:10 PDT 2009


Author: djg
Date: Thu Jul 23 19:59:53 2009
New Revision: 76927

URL: http://llvm.org/viewvc/llvm-project?rev=76927&view=rev
Log:
Give the SCEV class a SubclassData field.

Modified:
    llvm/trunk/include/llvm/Analysis/ScalarEvolution.h

Modified: llvm/trunk/include/llvm/Analysis/ScalarEvolution.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Analysis/ScalarEvolution.h?rev=76927&r1=76926&r2=76927&view=diff

==============================================================================
--- llvm/trunk/include/llvm/Analysis/ScalarEvolution.h (original)
+++ llvm/trunk/include/llvm/Analysis/ScalarEvolution.h Thu Jul 23 19:59:53 2009
@@ -50,15 +50,22 @@
   /// directly.
   ///
   class SCEV : public FastFoldingSetNode {
-    const unsigned SCEVType;      // The SCEV baseclass this node corresponds to
+    // The SCEV baseclass this node corresponds to
+    const unsigned short SCEVType;
 
+  protected:
+    /// SubclassData - This field is initialized to zero and may be used in
+    /// subclasses to store miscelaneous information.
+    unsigned short SubclassData;
+
+  private:
     SCEV(const SCEV &);            // DO NOT IMPLEMENT
     void operator=(const SCEV &);  // DO NOT IMPLEMENT
   protected:
     virtual ~SCEV();
   public:
     explicit SCEV(const FoldingSetNodeID &ID, unsigned SCEVTy) :
-      FastFoldingSetNode(ID), SCEVType(SCEVTy) {}
+      FastFoldingSetNode(ID), SCEVType(SCEVTy), SubclassData(0) {}
 
     unsigned getSCEVType() const { return SCEVType; }
 





More information about the llvm-commits mailing list