[llvm-commits] CVS: llvm/include/llvm/Transforms/Utils/BasicBlockUtils.h Cloning.h DemoteRegToStack.h Linker.h Local.h PromoteMemToReg.h UnifyFunctionExitNodes.h
Brian Gaeke
gaeke at cs.uiuc.edu
Tue Nov 11 16:45:33 PST 2003
Changes in directory llvm/include/llvm/Transforms/Utils:
BasicBlockUtils.h updated: 1.7 -> 1.8
Cloning.h updated: 1.12 -> 1.13
DemoteRegToStack.h updated: 1.3 -> 1.4
Linker.h updated: 1.7 -> 1.8
Local.h updated: 1.11 -> 1.12
PromoteMemToReg.h updated: 1.4 -> 1.5
UnifyFunctionExitNodes.h updated: 1.16 -> 1.17
---
Log message:
Put all LLVM code into the llvm namespace, as per bug 109.
---
Diffs of the changes: (+33 -2)
Index: llvm/include/llvm/Transforms/Utils/BasicBlockUtils.h
diff -u llvm/include/llvm/Transforms/Utils/BasicBlockUtils.h:1.7 llvm/include/llvm/Transforms/Utils/BasicBlockUtils.h:1.8
--- llvm/include/llvm/Transforms/Utils/BasicBlockUtils.h:1.7 Sun Nov 9 22:42:13 2003
+++ llvm/include/llvm/Transforms/Utils/BasicBlockUtils.h Tue Nov 11 16:41:31 2003
@@ -19,6 +19,9 @@
#include "llvm/BasicBlock.h"
#include "llvm/Support/CFG.h"
+
+namespace llvm {
+
class Instruction;
class Pass;
@@ -50,7 +53,6 @@
//
void RemoveSuccessor(TerminatorInst *TI, unsigned SuccNum);
-
/// isCriticalEdge - Return true if the specified edge is a critical edge.
/// Critical edges are edges from a block with multiple successors to a block
/// with multiple predecessors.
@@ -82,5 +84,6 @@
return MadeChange;
}
+} // End llvm namespace
#endif
Index: llvm/include/llvm/Transforms/Utils/Cloning.h
diff -u llvm/include/llvm/Transforms/Utils/Cloning.h:1.12 llvm/include/llvm/Transforms/Utils/Cloning.h:1.13
--- llvm/include/llvm/Transforms/Utils/Cloning.h:1.12 Mon Oct 20 15:19:47 2003
+++ llvm/include/llvm/Transforms/Utils/Cloning.h Tue Nov 11 16:41:31 2003
@@ -20,6 +20,9 @@
#include <vector>
#include <map>
+
+namespace llvm {
+
class Module;
class Function;
class BasicBlock;
@@ -108,5 +111,7 @@
/// phi nodes, adds it to the same function as the original (although there is
/// no jump to it) and returns the new vector of basic blocks.
std::vector<BasicBlock *> CloneTrace(const std::vector<BasicBlock*> &origTrace);
+
+} // End llvm namespace
#endif
Index: llvm/include/llvm/Transforms/Utils/DemoteRegToStack.h
diff -u llvm/include/llvm/Transforms/Utils/DemoteRegToStack.h:1.3 llvm/include/llvm/Transforms/Utils/DemoteRegToStack.h:1.4
--- llvm/include/llvm/Transforms/Utils/DemoteRegToStack.h:1.3 Mon Oct 20 15:19:47 2003
+++ llvm/include/llvm/Transforms/Utils/DemoteRegToStack.h Tue Nov 11 16:41:31 2003
@@ -24,7 +24,11 @@
//
//===----------------------------------------------------------------------===//
+namespace llvm {
+
class Instruction;
class AllocaInst;
AllocaInst *DemoteRegToStack(Instruction &X);
+
+} // End llvm namespace
Index: llvm/include/llvm/Transforms/Utils/Linker.h
diff -u llvm/include/llvm/Transforms/Utils/Linker.h:1.7 llvm/include/llvm/Transforms/Utils/Linker.h:1.8
--- llvm/include/llvm/Transforms/Utils/Linker.h:1.7 Mon Oct 20 15:19:47 2003
+++ llvm/include/llvm/Transforms/Utils/Linker.h Tue Nov 11 16:41:31 2003
@@ -15,6 +15,9 @@
#define LLVM_TRANSFORMATIONS_UTILS_LINKER_H
#include <string>
+
+namespace llvm {
+
class Module;
// LinkModules - This function links two modules together, with the resulting
@@ -23,6 +26,8 @@
// the problem.
//
bool LinkModules(Module *Dest, const Module *Src, std::string *ErrorMsg = 0);
+
+} // End llvm namespace
#endif
Index: llvm/include/llvm/Transforms/Utils/Local.h
diff -u llvm/include/llvm/Transforms/Utils/Local.h:1.11 llvm/include/llvm/Transforms/Utils/Local.h:1.12
--- llvm/include/llvm/Transforms/Utils/Local.h:1.11 Mon Oct 20 15:19:47 2003
+++ llvm/include/llvm/Transforms/Utils/Local.h Tue Nov 11 16:41:31 2003
@@ -16,6 +16,9 @@
#define LLVM_TRANSFORMS_UTILS_LOCAL_H
#include "llvm/Function.h"
+
+namespace llvm {
+
class Pass;
//===----------------------------------------------------------------------===//
@@ -66,5 +69,7 @@
/// WARNING: The entry node of a method may not be simplified.
///
bool SimplifyCFG(BasicBlock *BB);
+
+} // End llvm namespace
#endif
Index: llvm/include/llvm/Transforms/Utils/PromoteMemToReg.h
diff -u llvm/include/llvm/Transforms/Utils/PromoteMemToReg.h:1.4 llvm/include/llvm/Transforms/Utils/PromoteMemToReg.h:1.5
--- llvm/include/llvm/Transforms/Utils/PromoteMemToReg.h:1.4 Mon Oct 20 15:19:47 2003
+++ llvm/include/llvm/Transforms/Utils/PromoteMemToReg.h Tue Nov 11 16:41:31 2003
@@ -15,11 +15,14 @@
#ifndef TRANSFORMS_UTILS_PROMOTEMEMTOREG_H
#define TRANSFORMS_UTILS_PROMOTEMEMTOREG_H
+#include <vector>
+
+namespace llvm {
+
class AllocaInst;
class DominatorTree;
class DominanceFrontier;
class TargetData;
-#include <vector>
/// isAllocaPromotable - Return true if this alloca is legal for promotion.
/// This is true if there are only loads and stores to the alloca...
@@ -34,5 +37,7 @@
void PromoteMemToReg(const std::vector<AllocaInst*> &Allocas,
DominatorTree &DT, DominanceFrontier &DF,
const TargetData &TD);
+
+} // End llvm namespace
#endif
Index: llvm/include/llvm/Transforms/Utils/UnifyFunctionExitNodes.h
diff -u llvm/include/llvm/Transforms/Utils/UnifyFunctionExitNodes.h:1.16 llvm/include/llvm/Transforms/Utils/UnifyFunctionExitNodes.h:1.17
--- llvm/include/llvm/Transforms/Utils/UnifyFunctionExitNodes.h:1.16 Mon Oct 20 15:19:47 2003
+++ llvm/include/llvm/Transforms/Utils/UnifyFunctionExitNodes.h Tue Nov 11 16:41:31 2003
@@ -20,6 +20,8 @@
#include "llvm/Pass.h"
+namespace llvm {
+
struct UnifyFunctionExitNodes : public FunctionPass {
BasicBlock *ReturnBlock, *UnwindBlock;
public:
@@ -38,5 +40,7 @@
};
Pass *createUnifyFunctionExitNodesPass();
+
+} // End llvm namespace
#endif
More information about the llvm-commits
mailing list