[llvm-commits] CVS: llvm/lib/CodeGen/RegAlloc/AllocInfo.h IGNode.cpp IGNode.h InterferenceGraph.cpp InterferenceGraph.h LiveRange.h LiveRangeInfo.cpp LiveRangeInfo.h PhyRegAlloc.cpp PhyRegAlloc.h RegAllocCommon.h RegClass.cpp RegClass.h

Brian Gaeke gaeke at cs.uiuc.edu
Tue Nov 11 16:43:42 PST 2003


Changes in directory llvm/lib/CodeGen/RegAlloc:

AllocInfo.h updated: 1.4 -> 1.5
IGNode.cpp updated: 1.11 -> 1.12
IGNode.h updated: 1.19 -> 1.20
InterferenceGraph.cpp updated: 1.18 -> 1.19
InterferenceGraph.h updated: 1.6 -> 1.7
LiveRange.h updated: 1.24 -> 1.25
LiveRangeInfo.cpp updated: 1.46 -> 1.47
LiveRangeInfo.h updated: 1.22 -> 1.23
PhyRegAlloc.cpp updated: 1.129 -> 1.130
PhyRegAlloc.h updated: 1.61 -> 1.62
RegAllocCommon.h updated: 1.11 -> 1.12
RegClass.cpp updated: 1.27 -> 1.28
RegClass.h updated: 1.20 -> 1.21

---
Log message:

Put all LLVM code into the llvm namespace, as per bug 109.

---
Diffs of the changes:  (+54 -1)

Index: llvm/lib/CodeGen/RegAlloc/AllocInfo.h
diff -u llvm/lib/CodeGen/RegAlloc/AllocInfo.h:1.4 llvm/lib/CodeGen/RegAlloc/AllocInfo.h:1.5
--- llvm/lib/CodeGen/RegAlloc/AllocInfo.h:1.4	Sun Nov  9 18:05:25 2003
+++ llvm/lib/CodeGen/RegAlloc/AllocInfo.h	Tue Nov 11 16:41:33 2003
@@ -19,6 +19,8 @@
 #include "llvm/DerivedTypes.h"
 #include "llvm/Constants.h"
 
+namespace llvm {
+
 /// AllocInfo - Structure representing one instruction's operand's-worth of
 /// register allocation state. We create tables made out of these data
 /// structures to generate mapping information for this register allocator.
@@ -76,5 +78,7 @@
     return std::string (AllocStateNames[AllocState]);
   }
 };
+
+} // End llvm namespace
 
 #endif // ALLOCINFO_H


Index: llvm/lib/CodeGen/RegAlloc/IGNode.cpp
diff -u llvm/lib/CodeGen/RegAlloc/IGNode.cpp:1.11 llvm/lib/CodeGen/RegAlloc/IGNode.cpp:1.12
--- llvm/lib/CodeGen/RegAlloc/IGNode.cpp:1.11	Thu Oct 23 13:02:47 2003
+++ llvm/lib/CodeGen/RegAlloc/IGNode.cpp	Tue Nov 11 16:41:33 2003
@@ -16,6 +16,8 @@
 #include <algorithm>
 #include <iostream>
 
+namespace llvm {
+
 //-----------------------------------------------------------------------------
 // Sets this IGNode on stack and reduce the degree of neighbors  
 //-----------------------------------------------------------------------------
@@ -56,3 +58,5 @@
   std::vector<IGNode*>::iterator new_end = unique(nbrs.begin(), nbrs.end());
   return new_end - nbrs.begin();
 }
+
+} // End llvm namespace


Index: llvm/lib/CodeGen/RegAlloc/IGNode.h
diff -u llvm/lib/CodeGen/RegAlloc/IGNode.h:1.19 llvm/lib/CodeGen/RegAlloc/IGNode.h:1.20
--- llvm/lib/CodeGen/RegAlloc/IGNode.h:1.19	Thu Oct 23 13:02:47 2003
+++ llvm/lib/CodeGen/RegAlloc/IGNode.h	Tue Nov 11 16:41:33 2003
@@ -32,6 +32,9 @@
 
 #include "LiveRange.h"
 #include <vector>
+
+namespace llvm {
+
 class RegClass;
 
 //----------------------------------------------------------------------------
@@ -114,5 +117,7 @@
 
   inline LiveRange *getParentLR() const { return ParentLR; }
 };
+
+} // End llvm namespace
 
 #endif


Index: llvm/lib/CodeGen/RegAlloc/InterferenceGraph.cpp
diff -u llvm/lib/CodeGen/RegAlloc/InterferenceGraph.cpp:1.18 llvm/lib/CodeGen/RegAlloc/InterferenceGraph.cpp:1.19
--- llvm/lib/CodeGen/RegAlloc/InterferenceGraph.cpp:1.18	Thu Oct 23 13:10:02 2003
+++ llvm/lib/CodeGen/RegAlloc/InterferenceGraph.cpp	Tue Nov 11 16:41:33 2003
@@ -17,6 +17,8 @@
 #include "Support/STLExtras.h"
 #include <algorithm>
 
+namespace llvm {
+
 // for asserting this IG node is infact in the IGNodeList of this class
 inline static void assertIGNode(const InterferenceGraph *IG,
                                 const IGNode *Node) {
@@ -246,3 +248,5 @@
     }
   }
 }
+
+} // End llvm namespace


Index: llvm/lib/CodeGen/RegAlloc/InterferenceGraph.h
diff -u llvm/lib/CodeGen/RegAlloc/InterferenceGraph.h:1.6 llvm/lib/CodeGen/RegAlloc/InterferenceGraph.h:1.7
--- llvm/lib/CodeGen/RegAlloc/InterferenceGraph.h:1.6	Tue Oct 21 10:24:53 2003
+++ llvm/lib/CodeGen/RegAlloc/InterferenceGraph.h	Tue Nov 11 16:41:33 2003
@@ -30,6 +30,9 @@
 #define INTERFERENCEGRAPH_H
 
 #include <vector>
+
+namespace llvm {
+
 class LiveRange;
 class RegClass;
 class IGNode;
@@ -66,5 +69,7 @@
   void printIG() const;
   void printIGNodeList() const;
 };
+
+} // End llvm namespace
 
 #endif


Index: llvm/lib/CodeGen/RegAlloc/LiveRange.h
diff -u llvm/lib/CodeGen/RegAlloc/LiveRange.h:1.24 llvm/lib/CodeGen/RegAlloc/LiveRange.h:1.25
--- llvm/lib/CodeGen/RegAlloc/LiveRange.h:1.24	Thu Oct 23 13:03:49 2003
+++ llvm/lib/CodeGen/RegAlloc/LiveRange.h	Tue Nov 11 16:41:33 2003
@@ -21,6 +21,8 @@
 #include "llvm/Value.h"
 #include "llvm/CodeGen/ValueSet.h"
 
+namespace llvm {
+
 class RegClass;
 class IGNode;
 
@@ -176,5 +178,7 @@
     return SpillCost;
   }
 };
+
+} // End llvm namespace
 
 #endif


Index: llvm/lib/CodeGen/RegAlloc/LiveRangeInfo.cpp
diff -u llvm/lib/CodeGen/RegAlloc/LiveRangeInfo.cpp:1.46 llvm/lib/CodeGen/RegAlloc/LiveRangeInfo.cpp:1.47
--- llvm/lib/CodeGen/RegAlloc/LiveRangeInfo.cpp:1.46	Thu Oct 23 13:03:50 2003
+++ llvm/lib/CodeGen/RegAlloc/LiveRangeInfo.cpp	Tue Nov 11 16:41:33 2003
@@ -23,6 +23,8 @@
 #include "llvm/Target/TargetRegInfo.h"
 #include "Support/SetOperations.h"
 
+namespace llvm {
+
 unsigned LiveRange::getRegClassID() const { return getRegClass()->getID(); }
 
 LiveRangeInfo::LiveRangeInfo(const Function *F, const TargetMachine &tm,
@@ -411,3 +413,5 @@
     }
   }
 }
+
+} // End llvm namespace


Index: llvm/lib/CodeGen/RegAlloc/LiveRangeInfo.h
diff -u llvm/lib/CodeGen/RegAlloc/LiveRangeInfo.h:1.22 llvm/lib/CodeGen/RegAlloc/LiveRangeInfo.h:1.23
--- llvm/lib/CodeGen/RegAlloc/LiveRangeInfo.h:1.22	Thu Oct 23 13:03:50 2003
+++ llvm/lib/CodeGen/RegAlloc/LiveRangeInfo.h	Tue Nov 11 16:41:33 2003
@@ -29,6 +29,8 @@
 #include "llvm/CodeGen/ValueSet.h"
 #include "Support/hash_map"
 
+namespace llvm {
+
 class LiveRange;
 class MachineInstr;
 class RegClass;
@@ -120,5 +122,7 @@
   ///
   void printLiveRanges();
 };
+
+} // End llvm namespace
 
 #endif 


Index: llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp
diff -u llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp:1.129 llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp:1.130
--- llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp:1.129	Mon Nov 10 01:12:01 2003
+++ llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp	Tue Nov 11 16:41:33 2003
@@ -47,6 +47,8 @@
 #include "Support/STLExtras.h"
 #include <cmath>
 
+namespace llvm {
+
 RegAllocDebugLevel_t DEBUG_RA;
 
 /// The reoptimizer wants to be able to grovel through the register
@@ -1392,3 +1394,5 @@
   if (DEBUG_RA) std::cerr << "\nRegister allocation complete!\n"; 
   return false;     // Function was not modified
 } 
+
+} // End llvm namespace


Index: llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.h
diff -u llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.h:1.61 llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.h:1.62
--- llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.h:1.61	Sun Nov  9 18:05:26 2003
+++ llvm/lib/CodeGen/RegAlloc/PhyRegAlloc.h	Tue Nov 11 16:41:33 2003
@@ -31,6 +31,8 @@
 #include "llvm/Target/TargetRegInfo.h"
 #include <map>
 
+namespace llvm {
+
 class MachineFunction;
 class FunctionLiveVarInfo;
 class MachineInstr;
@@ -178,5 +180,7 @@
 
   void addInterf4PseudoInstr(const MachineInstr *MI);
 };
+
+} // End llvm namespace
 
 #endif


Index: llvm/lib/CodeGen/RegAlloc/RegAllocCommon.h
diff -u llvm/lib/CodeGen/RegAlloc/RegAllocCommon.h:1.11 llvm/lib/CodeGen/RegAlloc/RegAllocCommon.h:1.12
--- llvm/lib/CodeGen/RegAlloc/RegAllocCommon.h:1.11	Tue Oct 21 10:17:13 2003
+++ llvm/lib/CodeGen/RegAlloc/RegAllocCommon.h	Tue Nov 11 16:41:33 2003
@@ -14,6 +14,8 @@
 #ifndef REGALLOCCOMMON_H
 #define REGALLOCCOMMON_H
 
+namespace llvm {
+
 enum RegAllocDebugLevel_t {
   RA_DEBUG_None         = 0,
   RA_DEBUG_Results      = 1,
@@ -24,5 +26,7 @@
 };
 
 extern RegAllocDebugLevel_t DEBUG_RA;
+
+} // End llvm namespace
 
 #endif


Index: llvm/lib/CodeGen/RegAlloc/RegClass.cpp
diff -u llvm/lib/CodeGen/RegAlloc/RegClass.cpp:1.27 llvm/lib/CodeGen/RegAlloc/RegClass.cpp:1.28
--- llvm/lib/CodeGen/RegAlloc/RegClass.cpp:1.27	Thu Oct 23 13:10:02 2003
+++ llvm/lib/CodeGen/RegAlloc/RegClass.cpp	Tue Nov 11 16:41:33 2003
@@ -16,6 +16,8 @@
 #include "RegClass.h"
 #include "llvm/Target/TargetRegInfo.h"
 
+namespace llvm {
+
 //----------------------------------------------------------------------------
 // This constructor inits IG. The actual matrix is created by a call to 
 // createInterferenceGraph() above.
@@ -245,4 +247,4 @@
   IG.printIG(); 
 }
 
-
+} // End llvm namespace


Index: llvm/lib/CodeGen/RegAlloc/RegClass.h
diff -u llvm/lib/CodeGen/RegAlloc/RegClass.h:1.20 llvm/lib/CodeGen/RegAlloc/RegClass.h:1.21
--- llvm/lib/CodeGen/RegAlloc/RegClass.h:1.20	Tue Oct 21 10:24:53 2003
+++ llvm/lib/CodeGen/RegAlloc/RegClass.h	Tue Nov 11 16:41:33 2003
@@ -20,6 +20,9 @@
 #include "llvm/Target/TargetRegInfo.h"
 #include "InterferenceGraph.h"
 #include <stack>
+
+namespace llvm {
+
 class TargetRegClassInfo;
 
 
@@ -138,5 +141,7 @@
   void printIGNodeList() const;
   void printIG();
 };
+
+} // End llvm namespace
 
 #endif





More information about the llvm-commits mailing list