aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/SparcV9/ModuloScheduling/ModuloSchedGraph.cpp
diff options
context:
space:
mode:
authorGuochun Shi <gshi1@uiuc.edu>2003-04-06 23:56:19 +0000
committerGuochun Shi <gshi1@uiuc.edu>2003-04-06 23:56:19 +0000
commit6fbe5fbce1f3ff901eb3685290e19f5973ff588a (patch)
tree5d7d1db0b4bff8eb368815ee710182fbf8160dc3 /lib/Target/SparcV9/ModuloScheduling/ModuloSchedGraph.cpp
parentf9a88b684d8ca368ad51695c61a3580f4700da52 (diff)
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
Diffstat (limited to 'lib/Target/SparcV9/ModuloScheduling/ModuloSchedGraph.cpp')
-rw-r--r--lib/Target/SparcV9/ModuloScheduling/ModuloSchedGraph.cpp17
1 files changed, 9 insertions, 8 deletions
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 <iostream>
-#include <swig.h>
+//#include <swig.h>
#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<ModuloSchedGraphNode*> 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:"<<endl;
+ modSched_os <<" dumping non-loop BB:\n";
dump(bb);
}
if( isLoop(bb))
@@ -1109,7 +1110,7 @@ void ModuloSchedGraph::addResourceUsage(std::vector<pair<int,int> >& ruVec, int
}
void ModuloSchedGraph::dumpResourceUsage(std::vector< pair<int,int> > &ru)
{
- MachineSchedInfo& msi = (MachineSchedInfo&)target.getSchedInfo();
+ TargetSchedInfo& msi = (TargetSchedInfo&)target.getSchedInfo();
std::vector<pair<int,int> > resourceNumVector = msi.resourceNumVector;
modSched_os <<"resourceID\t"<<"resourceNum"<<"\n";
@@ -1128,8 +1129,8 @@ void ModuloSchedGraph::dumpResourceUsage(std::vector< pair<int,int> > &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<pair<int,int> > resourceUsage; //pair<int resourceid, int resourceUsageTimes_in_the_whole_block>