From 6fbe5fbce1f3ff901eb3685290e19f5973ff588a Mon Sep 17 00:00:00 2001 From: Guochun Shi Date: Sun, 6 Apr 2003 23:56:19 +0000 Subject: change the include file names and some class names to make it compile git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5764 91177308-0d34-0410-b5e6-96231b3b80d8 --- .../SparcV9/ModuloScheduling/ModuloSchedGraph.cpp | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'lib/Target/SparcV9/ModuloScheduling/ModuloSchedGraph.cpp') diff --git a/lib/Target/SparcV9/ModuloScheduling/ModuloSchedGraph.cpp b/lib/Target/SparcV9/ModuloScheduling/ModuloSchedGraph.cpp index 4e36b070b4..34834826bc 100644 --- a/lib/Target/SparcV9/ModuloScheduling/ModuloSchedGraph.cpp +++ b/lib/Target/SparcV9/ModuloScheduling/ModuloSchedGraph.cpp @@ -7,7 +7,7 @@ #include "Support/StringExtras.h" #include "Support/STLExtras.h" #include -#include +//#include #include "llvm/iOperators.h" #include "llvm/iOther.h" #include "llvm/iPHINode.h" @@ -16,7 +16,7 @@ #include "llvm/Type.h" #include "llvm/CodeGen/MachineCodeForInstruction.h" #include "llvm/CodeGen/MachineInstr.h" -#include "llvm/Target/MachineSchedInfo.h" +#include "llvm/Target/TargetSchedInfo.h" #define UNIDELAY 1 #define min(a, b) ((a) < (b) ? (a) : (b)) @@ -104,7 +104,8 @@ bool isDefinition(const Instruction* I) void ModuloSchedGraph::addDefUseEdges(const BasicBlock* bb) { //collect def instructions, store them in vector - const MachineInstrInfo& mii = target.getInstrInfo(); + // const TargetInstrInfo& mii = target.getInstrInfo(); + const TargetInstrInfo& mii = target.getInstrInfo(); typedef std::vector DefVec; DefVec defVec; @@ -274,7 +275,7 @@ void ModuloSchedGraph::buildNodesforBB (const TargetMachine& target, RegToRefVecMap& regToRefVecMap, ValueToDefVecMap& valueToDefVecMap) { - //const MachineInstrInfo& mii=target.getInstrInfo(); + //const TargetInstrInfo& mii=target.getInstrInfo(); //Build graph nodes for each LLVM instruction and gather def/use info. //Do both together in a single pass over all machine instructions. @@ -889,7 +890,7 @@ void ModuloSchedGraph::buildGraph (const TargetMachine& target) this->dump(bb); if(!isLoop(bb)){ - modSched_os <<" dumping non-loop BB:"< >& ruVec, int } void ModuloSchedGraph::dumpResourceUsage(std::vector< pair > &ru) { - MachineSchedInfo& msi = (MachineSchedInfo&)target.getSchedInfo(); + TargetSchedInfo& msi = (TargetSchedInfo&)target.getSchedInfo(); std::vector > resourceNumVector = msi.resourceNumVector; modSched_os <<"resourceID\t"<<"resourceNum"<<"\n"; @@ -1128,8 +1129,8 @@ void ModuloSchedGraph::dumpResourceUsage(std::vector< pair > &ru) int ModuloSchedGraph::computeResII(const BasicBlock* bb) { - const MachineInstrInfo& mii = target.getInstrInfo(); - const MachineSchedInfo& msi = target.getSchedInfo(); + const TargetInstrInfo& mii = target.getInstrInfo(); + const TargetSchedInfo& msi = target.getSchedInfo(); int ResII; std::vector > resourceUsage; //pair -- cgit v1.2.3-18-g5258