#include "Support/CommandLine.h"
#include <iostream>
using std::cerr;
+using std::vector;
//******************** Internal Data Declarations ************************/
//-------------------------------------------------------------------------
void
-InsertPhiElimInstructions(BasicBlock *BB, const vector<MachineInstr*>& CpVec)
+InsertPhiElimInstructions(BasicBlock *BB, const std::vector<MachineInstr*>& CpVec)
{
Instruction *TermInst = (Instruction*)BB->getTerminator();
MachineCodeForInstruction &MC4Term =MachineCodeForInstruction::get(TermInst);
//
if (treeRoot->opLabel != VRegListOp)
{
- vector<MachineInstr*> minstrVec;
+ std::vector<MachineInstr*> minstrVec;
InstructionNode* instrNode = (InstructionNode*)treeRoot;
assert(instrNode->getNodeType() == InstrTreeNode::NTInstructionNode);
#include <iostream>
#include <math.h>
using std::cerr;
+using std::vector;
RegAllocDebugLevel_t DEBUG_RA;
static cl::Enum<RegAllocDebugLevel_t> DEBUG_RA_c(DEBUG_RA, "dregalloc",
#include <cstdlib>
#include <cstdio>
#include <signal.h>
+using std::string;
-static vector<string> FilesToRemove;
+static std::vector<string> FilesToRemove;
// IntSigs - Signals that may interrupt the program at any time.
static const int IntSigs[] = {
FilesToRemove.pop_back();
}
- if (find(IntSigs, IntSigsEnd, Sig) != IntSigsEnd)
+ if (std::find(IntSigs, IntSigsEnd, Sig) != IntSigsEnd)
exit(1); // If this is an interrupt signal, exit the program
// Otherwise if it is a fault (like SEGV) reissue the signal to die...
void RemoveFileOnSignal(const string &Filename) {
FilesToRemove.push_back(Filename);
- for_each(IntSigs, IntSigsEnd, RegisterHandler);
- for_each(KillSigs, KillSigsEnd, RegisterHandler);
+ std::for_each(IntSigs, IntSigsEnd, RegisterHandler);
+ std::for_each(KillSigs, KillSigsEnd, RegisterHandler);
}
#include "Support/CommandLine.h"
#include <iostream>
using std::cerr;
+using std::vector;
//******************** Internal Data Declarations ************************/
//-------------------------------------------------------------------------
void
-InsertPhiElimInstructions(BasicBlock *BB, const vector<MachineInstr*>& CpVec)
+InsertPhiElimInstructions(BasicBlock *BB, const std::vector<MachineInstr*>& CpVec)
{
Instruction *TermInst = (Instruction*)BB->getTerminator();
MachineCodeForInstruction &MC4Term =MachineCodeForInstruction::get(TermInst);
//
if (treeRoot->opLabel != VRegListOp)
{
- vector<MachineInstr*> minstrVec;
+ std::vector<MachineInstr*> minstrVec;
InstructionNode* instrNode = (InstructionNode*)treeRoot;
assert(instrNode->getNodeType() == InstrTreeNode::NTInstructionNode);
#include <iostream>
#include <math.h>
using std::cerr;
+using std::vector;
RegAllocDebugLevel_t DEBUG_RA;
static cl::Enum<RegAllocDebugLevel_t> DEBUG_RA_c(DEBUG_RA, "dregalloc",
#include "llvm/Instruction.h"
#include "llvm/Constants.h"
#include "llvm/DerivedTypes.h"
-
+using std::vector;
//************************ Internal Functions ******************************/
// for an architecture.
//
void cpReg2RegMI(unsigned SrcReg, unsigned DestReg,
- int RegType, vector<MachineInstr*>& mvec) const;
+ int RegType, std::vector<MachineInstr*>& mvec) const;
void cpReg2MemMI(unsigned SrcReg, unsigned DestPtrReg,
- int Offset, int RegType, vector<MachineInstr*>& mvec) const;
+ int Offset, int RegType, std::vector<MachineInstr*>& mvec) const;
void cpMem2RegMI(unsigned SrcPtrReg, int Offset, unsigned DestReg,
- int RegType, vector<MachineInstr*>& mvec) const;
+ int RegType, std::vector<MachineInstr*>& mvec) const;
void cpValue2Value(Value *Src, Value *Dest,
- vector<MachineInstr*>& mvec) const;
+ std::vector<MachineInstr*>& mvec) const;
// To see whether a register is a volatile (i.e., whehter it must be
// preserved acorss calls)
void InsertPrologEpilogCode::InsertPrologCode(Function &F)
{
- vector<MachineInstr*> mvec;
+ std::vector<MachineInstr*> mvec;
MachineInstr* M;
const MachineFrameInfo& frameInfo = Target.getFrameInfo();
#include "llvm/Type.h"
#include <iostream>
using std::cerr;
+using std::vector;
//-----------------------------------------------------------------------------
// Int Register Class - method for coloring a node in the interference graph.
#include <iostream>
#include <values.h>
using std::cerr;
+using std::vector;
UltraSparcRegInfo::UltraSparcRegInfo(const UltraSparc &tgt)
: MachineRegInfo(tgt), UltraSparcInfo(&tgt), NumOfIntArgRegs(6),
#include "Support/STLExtras.h"
#include "Support/StatisticReporter.h"
#include <algorithm>
+using std::cerr;
static Statistic<> NumLoadStorePeepholes("raise\t\t- Number of load/store peepholes");
static Statistic<> NumGEPInstFormed("raise\t\t- Number of other getelementptr's formed");
#include <cstdlib>
#include <cstdio>
#include <signal.h>
+using std::string;
-static vector<string> FilesToRemove;
+static std::vector<string> FilesToRemove;
// IntSigs - Signals that may interrupt the program at any time.
static const int IntSigs[] = {
FilesToRemove.pop_back();
}
- if (find(IntSigs, IntSigsEnd, Sig) != IntSigsEnd)
+ if (std::find(IntSigs, IntSigsEnd, Sig) != IntSigsEnd)
exit(1); // If this is an interrupt signal, exit the program
// Otherwise if it is a fault (like SEGV) reissue the signal to die...
void RemoveFileOnSignal(const string &Filename) {
FilesToRemove.push_back(Filename);
- for_each(IntSigs, IntSigsEnd, RegisterHandler);
- for_each(KillSigs, KillSigsEnd, RegisterHandler);
+ std::for_each(IntSigs, IntSigsEnd, RegisterHandler);
+ std::for_each(KillSigs, KillSigsEnd, RegisterHandler);
}