diff options
author | Chris Lattner <sabre@nondot.org> | 2002-07-24 21:21:32 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-07-24 21:21:32 +0000 |
commit | 09ff1126dab045d68be7d9e8ae7ad0601002a718 (patch) | |
tree | e4fb571d35f390670aed304ba303b5d2a55593d2 /lib/Target | |
parent | 417d31c202bf42c1f9db1afa1d2e6730c6fbd566 (diff) | |
download | external_llvm-09ff1126dab045d68be7d9e8ae7ad0601002a718.zip external_llvm-09ff1126dab045d68be7d9e8ae7ad0601002a718.tar.gz external_llvm-09ff1126dab045d68be7d9e8ae7ad0601002a718.tar.bz2 |
*** empty log message ***
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3056 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
-rw-r--r-- | lib/Target/SparcV9/InstrSched/InstrScheduling.cpp | 10 | ||||
-rw-r--r-- | lib/Target/SparcV9/InstrSched/SchedGraph.cpp | 1 | ||||
-rw-r--r-- | lib/Target/SparcV9/InstrSched/SchedGraph.h | 4 | ||||
-rw-r--r-- | lib/Target/SparcV9/InstrSched/SchedPriorities.cpp | 2 | ||||
-rw-r--r-- | lib/Target/SparcV9/InstrSched/SchedPriorities.h | 2 | ||||
-rw-r--r-- | lib/Target/SparcV9/SparcV9AsmPrinter.cpp | 12 | ||||
-rw-r--r-- | lib/Target/SparcV9/SparcV9InstrSelection.cpp | 2 | ||||
-rw-r--r-- | lib/Target/SparcV9/SparcV9RegInfo.cpp | 2 |
8 files changed, 17 insertions, 18 deletions
diff --git a/lib/Target/SparcV9/InstrSched/InstrScheduling.cpp b/lib/Target/SparcV9/InstrSched/InstrScheduling.cpp index 1d4c180..2271c78 100644 --- a/lib/Target/SparcV9/InstrSched/InstrScheduling.cpp +++ b/lib/Target/SparcV9/InstrSched/InstrScheduling.cpp @@ -352,18 +352,18 @@ private: unsigned int totalInstrCount; cycles_t curTime; cycles_t nextEarliestIssueTime; // next cycle we can issue - vector<std::hash_set<const SchedGraphNode*> > choicesForSlot; // indexed by slot# + vector<hash_set<const SchedGraphNode*> > choicesForSlot; // indexed by slot# vector<const SchedGraphNode*> choiceVec; // indexed by node ptr vector<int> numInClass; // indexed by sched class vector<cycles_t> nextEarliestStartTime; // indexed by opCode - std::hash_map<const SchedGraphNode*, DelaySlotInfo*> delaySlotInfoForBranches; + hash_map<const SchedGraphNode*, DelaySlotInfo*> delaySlotInfoForBranches; // indexed by branch node ptr public: SchedulingManager(const TargetMachine& _target, const SchedGraph* graph, SchedPriorities& schedPrio); ~SchedulingManager() { - for (std::hash_map<const SchedGraphNode*, + for (hash_map<const SchedGraphNode*, DelaySlotInfo*>::iterator I = delaySlotInfoForBranches.begin(), E = delaySlotInfoForBranches.end(); I != E; ++I) delete I->second; @@ -422,7 +422,7 @@ public: return choiceVec[i]; } - inline std::hash_set<const SchedGraphNode*>& getChoicesForSlot(unsigned slotNum) { + inline hash_set<const SchedGraphNode*>& getChoicesForSlot(unsigned slotNum) { assert(slotNum < nslots); return choicesForSlot[slotNum]; } @@ -497,7 +497,7 @@ public: inline DelaySlotInfo* getDelaySlotInfoForInstr(const SchedGraphNode* bn, bool createIfMissing=false) { - std::hash_map<const SchedGraphNode*, DelaySlotInfo*>::const_iterator + hash_map<const SchedGraphNode*, DelaySlotInfo*>::const_iterator I = delaySlotInfoForBranches.find(bn); if (I != delaySlotInfoForBranches.end()) return I->second; diff --git a/lib/Target/SparcV9/InstrSched/SchedGraph.cpp b/lib/Target/SparcV9/InstrSched/SchedGraph.cpp index 96962ce..8a9c8e5 100644 --- a/lib/Target/SparcV9/InstrSched/SchedGraph.cpp +++ b/lib/Target/SparcV9/InstrSched/SchedGraph.cpp @@ -27,7 +27,6 @@ using std::vector; using std::pair; -using std::hash_map; using std::cerr; //*********************** Internal Data Structures *************************/ diff --git a/lib/Target/SparcV9/InstrSched/SchedGraph.h b/lib/Target/SparcV9/InstrSched/SchedGraph.h index aa25881..7db22d6 100644 --- a/lib/Target/SparcV9/InstrSched/SchedGraph.h +++ b/lib/Target/SparcV9/InstrSched/SchedGraph.h @@ -211,14 +211,14 @@ private: class SchedGraph : public NonCopyable, - private std::hash_map<const MachineInstr*, SchedGraphNode*> + private hash_map<const MachineInstr*, SchedGraphNode*> { private: std::vector<const BasicBlock*> bbVec; // basic blocks included in the graph SchedGraphNode* graphRoot; // the root and leaf are not inserted SchedGraphNode* graphLeaf; // in the hash_map (see getNumNodes()) - typedef std::hash_map<const MachineInstr*, SchedGraphNode*> map_base; + typedef hash_map<const MachineInstr*, SchedGraphNode*> map_base; public: using map_base::iterator; using map_base::const_iterator; diff --git a/lib/Target/SparcV9/InstrSched/SchedPriorities.cpp b/lib/Target/SparcV9/InstrSched/SchedPriorities.cpp index 8a1c9a5..6277576 100644 --- a/lib/Target/SparcV9/InstrSched/SchedPriorities.cpp +++ b/lib/Target/SparcV9/InstrSched/SchedPriorities.cpp @@ -270,7 +270,7 @@ SchedPriorities::instructionHasLastUse(FunctionLiveVarInfo &LVI, const SchedGraphNode* graphNode) { const MachineInstr *MI = graphNode->getMachineInstr(); - std::hash_map<const MachineInstr*, bool>::const_iterator + hash_map<const MachineInstr*, bool>::const_iterator ui = lastUseMap.find(MI); if (ui != lastUseMap.end()) return ui->second; diff --git a/lib/Target/SparcV9/InstrSched/SchedPriorities.h b/lib/Target/SparcV9/InstrSched/SchedPriorities.h index f5c29b2..b01c1a4 100644 --- a/lib/Target/SparcV9/InstrSched/SchedPriorities.h +++ b/lib/Target/SparcV9/InstrSched/SchedPriorities.h @@ -25,7 +25,7 @@ #include "llvm/CodeGen/InstrScheduling.h" #include "llvm/Target/MachineSchedInfo.h" #include <list> -#include <ext/hash_set> +#include <Support/hash_set> #include <iostream> class Function; class MachineInstr; diff --git a/lib/Target/SparcV9/SparcV9AsmPrinter.cpp b/lib/Target/SparcV9/SparcV9AsmPrinter.cpp index 34d80b1..e58a0c2 100644 --- a/lib/Target/SparcV9/SparcV9AsmPrinter.cpp +++ b/lib/Target/SparcV9/SparcV9AsmPrinter.cpp @@ -34,7 +34,7 @@ class GlobalIdTable: public Annotation { static AnnotationID AnnotId; friend class AsmPrinter; // give access to AnnotId - typedef std::hash_map<const Value*, int> ValIdMap; + typedef hash_map<const Value*, int> ValIdMap; typedef ValIdMap::const_iterator ValIdMapConstIterator; typedef ValIdMap:: iterator ValIdMapIterator; public: @@ -474,7 +474,7 @@ private: void printConstant( const Constant* CV, std::string valID = ""); static void FoldConstants(const Module &M, - std::hash_set<const Constant*> &moduleConstants); + hash_set<const Constant*> &moduleConstants); }; @@ -741,10 +741,10 @@ SparcModuleAsmPrinter::printConstant(const Constant* CV, string valID) void SparcModuleAsmPrinter::FoldConstants(const Module &M, - std::hash_set<const Constant*> &MC) { + hash_set<const Constant*> &MC) { for (Module::const_iterator I = M.begin(), E = M.end(); I != E; ++I) if (!I->isExternal()) { - const std::hash_set<const Constant*> &pool = + const hash_set<const Constant*> &pool = MachineCodeForMethod::get(I).getConstantPoolValues(); MC.insert(pool.begin(), pool.end()); } @@ -774,7 +774,7 @@ void SparcModuleAsmPrinter::emitGlobalsAndConstants(const Module &M) { // lets force these constants into the slot table so that we can get // unique names for unnamed constants also. // - std::hash_set<const Constant*> moduleConstants; + hash_set<const Constant*> moduleConstants; FoldConstants(M, moduleConstants); // Now, emit the three data sections separately; the cost of I/O should @@ -786,7 +786,7 @@ void SparcModuleAsmPrinter::emitGlobalsAndConstants(const Module &M) { if (GI->hasInitializer() && GI->isConstant()) printGlobalVariable(GI); - for (std::hash_set<const Constant*>::const_iterator + for (hash_set<const Constant*>::const_iterator I = moduleConstants.begin(), E = moduleConstants.end(); I != E; ++I) printConstant(*I); diff --git a/lib/Target/SparcV9/SparcV9InstrSelection.cpp b/lib/Target/SparcV9/SparcV9InstrSelection.cpp index ea1ddea..8783a1e 100644 --- a/lib/Target/SparcV9/SparcV9InstrSelection.cpp +++ b/lib/Target/SparcV9/SparcV9InstrSelection.cpp @@ -148,7 +148,7 @@ ChooseBFpccInstruction(const InstructionNode* instrNode, static TmpInstruction* GetTmpForCC(Value* boolVal, const Function *F, const Type* ccType) { - typedef std::hash_map<const Value*, TmpInstruction*> BoolTmpCache; + typedef hash_map<const Value*, TmpInstruction*> BoolTmpCache; static BoolTmpCache boolToTmpCache; // Map boolVal -> TmpInstruction* static const Function *lastFunction = 0;// Use to flush cache between funcs diff --git a/lib/Target/SparcV9/SparcV9RegInfo.cpp b/lib/Target/SparcV9/SparcV9RegInfo.cpp index 11b65f8..c321adc 100644 --- a/lib/Target/SparcV9/SparcV9RegInfo.cpp +++ b/lib/Target/SparcV9/SparcV9RegInfo.cpp @@ -1317,7 +1317,7 @@ UltraSparcRegInfo::insertCallerSavingCode(vector<MachineInstr*>& instrnsBefore, // has set to record which registers were saved/restored // - std::hash_set<unsigned> PushedRegSet; + hash_set<unsigned> PushedRegSet; CallArgsDescriptor* argDesc = CallArgsDescriptor::get(CallMI); |