[llvm-commits] CVS: llvm/lib/Transforms/ExprTypeConvert.cpp LevelRaise.cpp

Chris Lattner lattner at cs.uiuc.edu
Tue Dec 23 01:44:01 PST 2003


Changes in directory llvm/lib/Transforms:

ExprTypeConvert.cpp updated: 1.84 -> 1.85
LevelRaise.cpp updated: 1.89 -> 1.90

---
Log message:

Remove extraneous #include
finegrainify namespacification


---
Diffs of the changes:  (+11 -16)

Index: llvm/lib/Transforms/ExprTypeConvert.cpp
diff -u llvm/lib/Transforms/ExprTypeConvert.cpp:1.84 llvm/lib/Transforms/ExprTypeConvert.cpp:1.85
--- llvm/lib/Transforms/ExprTypeConvert.cpp:1.84	Fri Nov 28 23:31:25 2003
+++ llvm/lib/Transforms/ExprTypeConvert.cpp	Tue Dec 23 01:43:38 2003
@@ -22,8 +22,7 @@
 #include "Support/STLExtras.h"
 #include "Support/Debug.h"
 #include <algorithm>
-
-namespace llvm {
+using namespace llvm;
 
 static bool OperandConvertibleToType(User *U, Value *V, const Type *Ty,
                                      ValueTypeCache &ConvertedTypes,
@@ -142,7 +141,7 @@
 
 
 // ExpressionConvertibleToType - Return true if it is possible
-bool ExpressionConvertibleToType(Value *V, const Type *Ty,
+bool llvm::ExpressionConvertibleToType(Value *V, const Type *Ty,
                                  ValueTypeCache &CTMap, const TargetData &TD) {
   // Expression type must be holdable in a register.
   if (!Ty->isFirstClassType())
@@ -330,8 +329,8 @@
 }
 
 
-Value *ConvertExpressionToType(Value *V, const Type *Ty, ValueMapCache &VMC,
-                               const TargetData &TD) {
+Value *llvm::ConvertExpressionToType(Value *V, const Type *Ty, 
+                                     ValueMapCache &VMC, const TargetData &TD) {
   if (V->getType() == Ty) return V;  // Already where we need to be?
 
   ValueMapCache::ExprMapTy::iterator VMCI = VMC.ExprMap.find(V);
@@ -564,9 +563,9 @@
 
 
 // ValueConvertibleToType - Return true if it is possible
-bool ValueConvertibleToType(Value *V, const Type *Ty,
-                             ValueTypeCache &ConvertedTypes,
-                            const TargetData &TD) {
+bool llvm::ValueConvertibleToType(Value *V, const Type *Ty,
+                                  ValueTypeCache &ConvertedTypes,
+                                  const TargetData &TD) {
   ValueTypeCache::iterator I = ConvertedTypes.find(V);
   if (I != ConvertedTypes.end()) return I->second == Ty;
   ConvertedTypes[V] = Ty;
@@ -894,8 +893,8 @@
 }
 
 
-void ConvertValueToNewType(Value *V, Value *NewVal, ValueMapCache &VMC,
-                           const TargetData &TD) {
+void llvm::ConvertValueToNewType(Value *V, Value *NewVal, ValueMapCache &VMC,
+                                 const TargetData &TD) {
   ValueHandle VH(VMC, V);
 
   unsigned NumUses = V->use_size();
@@ -1302,4 +1301,3 @@
   }
 }
 
-} // End llvm namespace


Index: llvm/lib/Transforms/LevelRaise.cpp
diff -u llvm/lib/Transforms/LevelRaise.cpp:1.89 llvm/lib/Transforms/LevelRaise.cpp:1.90
--- llvm/lib/Transforms/LevelRaise.cpp:1.89	Thu Dec 11 15:47:37 2003
+++ llvm/lib/Transforms/LevelRaise.cpp	Tue Dec 23 01:43:38 2003
@@ -20,15 +20,13 @@
 #include "llvm/iMemory.h"
 #include "llvm/Pass.h"
 #include "llvm/ConstantHandling.h"
-#include "llvm/Analysis/Expressions.h"
 #include "llvm/Transforms/Utils/BasicBlockUtils.h"
 #include "Support/CommandLine.h"
 #include "Support/Debug.h"
 #include "Support/Statistic.h"
 #include "Support/STLExtras.h"
 #include <algorithm>
-
-namespace llvm {
+using namespace llvm;
 
 // StartInst - This enables the -raise-start-inst=foo option to cause the level
 // raising pass to start at instruction "foo", which is immensely useful for
@@ -87,7 +85,7 @@
 }
 
 
-Pass *createRaisePointerReferencesPass() {
+Pass *llvm::createRaisePointerReferencesPass() {
   return new RPR();
 }
 
@@ -614,4 +612,3 @@
   return Changed;
 }
 
-} // End llvm namespace





More information about the llvm-commits mailing list