[llvm-commits] CVS: llvm/lib/Transforms/ExprTypeConvert.cpp LevelRaise.cpp TransformInternals.cpp TransformInternals.h
Brian Gaeke
gaeke at cs.uiuc.edu
Tue Nov 11 16:43:56 PST 2003
Changes in directory llvm/lib/Transforms:
ExprTypeConvert.cpp updated: 1.82 -> 1.83
LevelRaise.cpp updated: 1.87 -> 1.88
TransformInternals.cpp updated: 1.40 -> 1.41
TransformInternals.h updated: 1.22 -> 1.23
---
Log message:
Put all LLVM code into the llvm namespace, as per bug 109.
---
Diffs of the changes: (+17 -2)
Index: llvm/lib/Transforms/ExprTypeConvert.cpp
diff -u llvm/lib/Transforms/ExprTypeConvert.cpp:1.82 llvm/lib/Transforms/ExprTypeConvert.cpp:1.83
--- llvm/lib/Transforms/ExprTypeConvert.cpp:1.82 Mon Oct 20 14:43:18 2003
+++ llvm/lib/Transforms/ExprTypeConvert.cpp Tue Nov 11 16:41:33 2003
@@ -23,6 +23,8 @@
#include "Support/Debug.h"
#include <algorithm>
+namespace llvm {
+
static bool OperandConvertibleToType(User *U, Value *V, const Type *Ty,
ValueTypeCache &ConvertedTypes,
const TargetData &TD);
@@ -1298,3 +1300,5 @@
// << Operands[0]->use_size() << " " << Operands[0]);
}
}
+
+} // End llvm namespace
Index: llvm/lib/Transforms/LevelRaise.cpp
diff -u llvm/lib/Transforms/LevelRaise.cpp:1.87 llvm/lib/Transforms/LevelRaise.cpp:1.88
--- llvm/lib/Transforms/LevelRaise.cpp:1.87 Mon Oct 20 14:43:18 2003
+++ llvm/lib/Transforms/LevelRaise.cpp Tue Nov 11 16:41:33 2003
@@ -29,6 +29,8 @@
#include "Support/STLExtras.h"
#include <algorithm>
+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
// debugging!
@@ -55,7 +57,6 @@
static Statistic<>
NumVarargCallChanges("raise", "Number of vararg call peepholes");
-
#define PRINT_PEEPHOLE(ID, NUM, I) \
DEBUG(std::cerr << "Inst P/H " << ID << "[" << NUM << "] " << I)
@@ -86,12 +87,12 @@
RegisterOpt<RPR> X("raise", "Raise Pointer References");
}
+
Pass *createRaisePointerReferencesPass() {
return new RPR();
}
-
// isReinterpretingCast - Return true if the cast instruction specified will
// cause the operand to be "reinterpreted". A value is reinterpreted if the
// cast instruction would cause the underlying bits to change.
@@ -617,3 +618,5 @@
return Changed;
}
+
+} // End llvm namespace
Index: llvm/lib/Transforms/TransformInternals.cpp
diff -u llvm/lib/Transforms/TransformInternals.cpp:1.40 llvm/lib/Transforms/TransformInternals.cpp:1.41
--- llvm/lib/Transforms/TransformInternals.cpp:1.40 Mon Oct 20 14:43:18 2003
+++ llvm/lib/Transforms/TransformInternals.cpp Tue Nov 11 16:41:33 2003
@@ -18,6 +18,8 @@
#include "llvm/Function.h"
#include "llvm/iOther.h"
+namespace llvm {
+
static const Type *getStructOffsetStep(const StructType *STy, uint64_t &Offset,
std::vector<Value*> &Indices,
const TargetData &TD) {
@@ -193,3 +195,5 @@
return NextTy;
}
+
+} // End llvm namespace
Index: llvm/lib/Transforms/TransformInternals.h
diff -u llvm/lib/Transforms/TransformInternals.h:1.22 llvm/lib/Transforms/TransformInternals.h:1.23
--- llvm/lib/Transforms/TransformInternals.h:1.22 Tue Oct 21 10:17:13 2003
+++ llvm/lib/Transforms/TransformInternals.h Tue Nov 11 16:41:33 2003
@@ -22,6 +22,8 @@
#include <map>
#include <set>
+namespace llvm {
+
static inline int64_t getConstantValue(const ConstantInt *CPI) {
return (int64_t)cast<ConstantInt>(CPI)->getRawValue();
}
@@ -138,5 +140,7 @@
const Type *getStructOffsetType(const Type *Ty, unsigned &Offset,
std::vector<Value*> &Offsets,
const TargetData &TD, bool StopEarly = true);
+
+} // End llvm namespace
#endif
More information about the llvm-commits
mailing list