[llvm-commits] CVS: llvm/lib/Target/MRegisterInfo.cpp TargetData.cpp TargetInstrInfo.cpp TargetMachine.cpp TargetSchedInfo.cpp

Brian Gaeke gaeke at cs.uiuc.edu
Tue Nov 11 16:44:01 PST 2003


Changes in directory llvm/lib/Target:

MRegisterInfo.cpp updated: 1.4 -> 1.5
TargetData.cpp updated: 1.39 -> 1.40
TargetInstrInfo.cpp updated: 1.9 -> 1.10
TargetMachine.cpp updated: 1.19 -> 1.20
TargetSchedInfo.cpp updated: 1.12 -> 1.13

---
Log message:

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

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

Index: llvm/lib/Target/MRegisterInfo.cpp
diff -u llvm/lib/Target/MRegisterInfo.cpp:1.4 llvm/lib/Target/MRegisterInfo.cpp:1.5
--- llvm/lib/Target/MRegisterInfo.cpp:1.4	Mon Oct 20 14:43:16 2003
+++ llvm/lib/Target/MRegisterInfo.cpp	Tue Nov 11 16:41:33 2003
@@ -13,6 +13,8 @@
 
 #include "llvm/Target/MRegisterInfo.h"
 
+namespace llvm {
+
 MRegisterInfo::MRegisterInfo(const MRegisterDesc *D, unsigned NR,
                              regclass_iterator RCB, regclass_iterator RCE,
 			     int CFSO, int CFDO)
@@ -41,3 +43,5 @@
 MRegisterInfo::~MRegisterInfo() {
   delete[] PhysRegClasses;
 }
+
+} // End llvm namespace


Index: llvm/lib/Target/TargetData.cpp
diff -u llvm/lib/Target/TargetData.cpp:1.39 llvm/lib/Target/TargetData.cpp:1.40
--- llvm/lib/Target/TargetData.cpp:1.39	Mon Oct 20 14:43:16 2003
+++ llvm/lib/Target/TargetData.cpp	Tue Nov 11 16:41:33 2003
@@ -22,13 +22,14 @@
 #include "llvm/DerivedTypes.h"
 #include "llvm/Constants.h"
 
+namespace llvm {
+
 // Handle the Pass registration stuff necessary to use TargetData's.
 namespace {
   // Register the default SparcV9 implementation...
   RegisterPass<TargetData> X("targetdata", "Target Data Layout");
 }
 
-
 static inline void getTypeInfo(const Type *Ty, const TargetData *TD,
 			       uint64_t &Size, unsigned char &Alignment);
 
@@ -221,3 +222,5 @@
 
   return Result;
 }
+
+} // End llvm namespace


Index: llvm/lib/Target/TargetInstrInfo.cpp
diff -u llvm/lib/Target/TargetInstrInfo.cpp:1.9 llvm/lib/Target/TargetInstrInfo.cpp:1.10
--- llvm/lib/Target/TargetInstrInfo.cpp:1.9	Mon Oct 20 14:43:16 2003
+++ llvm/lib/Target/TargetInstrInfo.cpp	Tue Nov 11 16:41:33 2003
@@ -15,6 +15,8 @@
 #include "llvm/Constant.h"
 #include "llvm/DerivedTypes.h"
 
+namespace llvm {
+
 // External object describing the machine instructions
 // Initialized only when the TargetMachine class is created
 // and reset when that class is destroyed.
@@ -59,3 +61,5 @@
   assert(CV->getType()->isPrimitiveType() || isa<PointerType>(CV->getType()));
   return !(CV->getType()->isIntegral() || isa<PointerType>(CV->getType()));
 }
+
+} // End llvm namespace


Index: llvm/lib/Target/TargetMachine.cpp
diff -u llvm/lib/Target/TargetMachine.cpp:1.19 llvm/lib/Target/TargetMachine.cpp:1.20
--- llvm/lib/Target/TargetMachine.cpp:1.19	Mon Oct 20 14:43:16 2003
+++ llvm/lib/Target/TargetMachine.cpp	Tue Nov 11 16:41:33 2003
@@ -16,6 +16,8 @@
 #include "llvm/Target/TargetCacheInfo.h"
 #include "llvm/Type.h"
 
+namespace llvm {
+
 //---------------------------------------------------------------------------
 // class TargetMachine
 // 
@@ -49,3 +51,5 @@
   cacheSizes.push_back(1 << 15); cacheSizes.push_back(1 << 20);
   cacheAssoc.push_back(1);       cacheAssoc.push_back(4);
 }
+
+} // End llvm namespace


Index: llvm/lib/Target/TargetSchedInfo.cpp
diff -u llvm/lib/Target/TargetSchedInfo.cpp:1.12 llvm/lib/Target/TargetSchedInfo.cpp:1.13
--- llvm/lib/Target/TargetSchedInfo.cpp:1.12	Mon Oct 20 14:43:16 2003
+++ llvm/lib/Target/TargetSchedInfo.cpp	Tue Nov 11 16:41:33 2003
@@ -15,6 +15,8 @@
 #include "llvm/Target/TargetSchedInfo.h"
 #include "llvm/Target/TargetMachine.h"
 
+namespace llvm {
+
 resourceId_t MachineResource::nextId = 0;
 
 // Check if fromRVec and toRVec have *any* common entries.
@@ -249,3 +251,5 @@
       assert(r >= 0 && "Resource to remove was unused in cycle c!");
     }
 }
+
+} // End llvm namespace





More information about the llvm-commits mailing list