summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/InstrSched
diff options
context:
space:
mode:
authorBrian Gaeke <gaeke@uiuc.edu>2003-11-11 22:41:34 +0000
committerBrian Gaeke <gaeke@uiuc.edu>2003-11-11 22:41:34 +0000
commit960707c335b85fa0df0bff6400fd4e5f19ac0df4 (patch)
treefcd6bd0a802eff2ba6d9bcfef369241d5b79d06a /llvm/lib/CodeGen/InstrSched
parentda3f675edd0b0ffa480c1bec97a2a701d31e4ca8 (diff)
downloadbcm5719-llvm-960707c335b85fa0df0bff6400fd4e5f19ac0df4.tar.gz
bcm5719-llvm-960707c335b85fa0df0bff6400fd4e5f19ac0df4.zip
Put all LLVM code into the llvm namespace, as per bug 109.
llvm-svn: 9903
Diffstat (limited to 'llvm/lib/CodeGen/InstrSched')
-rw-r--r--llvm/lib/CodeGen/InstrSched/InstrScheduling.cpp5
-rw-r--r--llvm/lib/CodeGen/InstrSched/SchedGraph.cpp4
-rw-r--r--llvm/lib/CodeGen/InstrSched/SchedGraph.h4
-rw-r--r--llvm/lib/CodeGen/InstrSched/SchedGraphCommon.cpp3
-rw-r--r--llvm/lib/CodeGen/InstrSched/SchedPriorities.cpp3
-rw-r--r--llvm/lib/CodeGen/InstrSched/SchedPriorities.h4
6 files changed, 23 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/InstrSched/InstrScheduling.cpp b/llvm/lib/CodeGen/InstrSched/InstrScheduling.cpp
index a50439de7f6..4e2bf478763 100644
--- a/llvm/lib/CodeGen/InstrSched/InstrScheduling.cpp
+++ b/llvm/lib/CodeGen/InstrSched/InstrScheduling.cpp
@@ -22,6 +22,8 @@
#include "Support/CommandLine.h"
#include <algorithm>
+namespace llvm {
+
SchedDebugLevel_t SchedDebugLevel;
static cl::opt<bool> EnableFillingDelaySlots("sched-fill-delay-slots",
@@ -1518,3 +1520,6 @@ bool InstructionSchedulingWithSSA::runOnFunction(Function &F)
FunctionPass *createInstructionSchedulingWithSSAPass(const TargetMachine &tgt) {
return new InstructionSchedulingWithSSA(tgt);
}
+
+} // End llvm namespace
+
diff --git a/llvm/lib/CodeGen/InstrSched/SchedGraph.cpp b/llvm/lib/CodeGen/InstrSched/SchedGraph.cpp
index e7cd47881ac..3a8088043bf 100644
--- a/llvm/lib/CodeGen/InstrSched/SchedGraph.cpp
+++ b/llvm/lib/CodeGen/InstrSched/SchedGraph.cpp
@@ -23,6 +23,8 @@
#include "llvm/Target/TargetRegInfo.h"
#include "Support/STLExtras.h"
+namespace llvm {
+
//*********************** Internal Data Structures *************************/
// The following two types need to be classes, not typedefs, so we can use
@@ -737,3 +739,5 @@ void SchedGraphNode::print(std::ostream &os) const {
os << std::string(16, ' ') << *outEdges[i];
}
}
+
+} // End llvm namespace
diff --git a/llvm/lib/CodeGen/InstrSched/SchedGraph.h b/llvm/lib/CodeGen/InstrSched/SchedGraph.h
index 50cc0520e6f..5aee9b25f69 100644
--- a/llvm/lib/CodeGen/InstrSched/SchedGraph.h
+++ b/llvm/lib/CodeGen/InstrSched/SchedGraph.h
@@ -25,6 +25,8 @@
#include "Support/hash_map"
#include "Support/GraphTraits.h"
+namespace llvm {
+
class RegToRefVecMap;
class ValueToDefVecMap;
class RefVec;
@@ -317,4 +319,6 @@ template <> struct GraphTraits<const SchedGraph*> {
}
};
+} // End llvm namespace
+
#endif
diff --git a/llvm/lib/CodeGen/InstrSched/SchedGraphCommon.cpp b/llvm/lib/CodeGen/InstrSched/SchedGraphCommon.cpp
index b75e3397cb9..d96c201c8a2 100644
--- a/llvm/lib/CodeGen/InstrSched/SchedGraphCommon.cpp
+++ b/llvm/lib/CodeGen/InstrSched/SchedGraphCommon.cpp
@@ -15,6 +15,8 @@
#include "llvm/CodeGen/SchedGraphCommon.h"
#include "Support/STLExtras.h"
+namespace llvm {
+
class SchedGraphCommon;
//
@@ -175,3 +177,4 @@ void SchedGraphCommon::eraseIncidentEdges(SchedGraphNodeCommon* node,
this->eraseOutgoingEdges(node, addDummyEdges);
}
+} // End llvm namespace
diff --git a/llvm/lib/CodeGen/InstrSched/SchedPriorities.cpp b/llvm/lib/CodeGen/InstrSched/SchedPriorities.cpp
index 1644d5ecbc5..7e05d1417fd 100644
--- a/llvm/lib/CodeGen/InstrSched/SchedPriorities.cpp
+++ b/llvm/lib/CodeGen/InstrSched/SchedPriorities.cpp
@@ -23,6 +23,8 @@
#include "llvm/Support/CFG.h"
#include "Support/PostOrderIterator.h"
+namespace llvm {
+
std::ostream &operator<<(std::ostream &os, const NodeDelayPair* nd) {
return os << "Delay for node " << nd->node->getNodeId()
<< " = " << (long)nd->delay << "\n";
@@ -278,3 +280,4 @@ SchedPriorities::instructionHasLastUse(FunctionLiveVarInfo &LVI,
return lastUseMap[MI] = hasLastUse;
}
+} // End llvm namespace
diff --git a/llvm/lib/CodeGen/InstrSched/SchedPriorities.h b/llvm/lib/CodeGen/InstrSched/SchedPriorities.h
index de321f9fcbf..74704678066 100644
--- a/llvm/lib/CodeGen/InstrSched/SchedPriorities.h
+++ b/llvm/lib/CodeGen/InstrSched/SchedPriorities.h
@@ -26,6 +26,8 @@
#include "Support/hash_set"
#include <list>
+namespace llvm {
+
class Function;
class MachineInstr;
class SchedulingManager;
@@ -214,4 +216,6 @@ inline void SchedPriorities::updateTime(cycles_t c) {
std::ostream &operator<<(std::ostream &os, const NodeDelayPair* nd);
+} // End llvm namespace
+
#endif
OpenPOWER on IntegriCloud