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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9903 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Brian Gaeke
2003-11-11 22:41:34 +00:00
parent 0d723acf15
commit d0fde30ce8
558 changed files with 2494 additions and 264 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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