aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/SparcV9/ModuloScheduling/ModuloScheduling.h
diff options
context:
space:
mode:
authorTanya Lattner <tonic@nondot.org>2005-03-29 20:35:10 +0000
committerTanya Lattner <tonic@nondot.org>2005-03-29 20:35:10 +0000
commit5e9f35234653123de9b7b0bf4deb1012cd7deb63 (patch)
treefd7fcd84e362a1900e0070dbfa16737df50adeed /lib/Target/SparcV9/ModuloScheduling/ModuloScheduling.h
parent5ec3a63f6d3626a7ed278f72ac42119736c1af4e (diff)
Compare dependence analysis with llvm instructions versus machine instrutions. the problem with using machine instructions and alias analysis is that aa does not handle tmp instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20931 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/SparcV9/ModuloScheduling/ModuloScheduling.h')
-rw-r--r--lib/Target/SparcV9/ModuloScheduling/ModuloScheduling.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/Target/SparcV9/ModuloScheduling/ModuloScheduling.h b/lib/Target/SparcV9/ModuloScheduling/ModuloScheduling.h
index b36c5b2c20..b2dba19cb2 100644
--- a/lib/Target/SparcV9/ModuloScheduling/ModuloScheduling.h
+++ b/lib/Target/SparcV9/ModuloScheduling/ModuloScheduling.h
@@ -17,7 +17,7 @@
#include "MSSchedule.h"
#include "llvm/Function.h"
#include "llvm/Pass.h"
-#include "llvm/Analysis/AliasAnalysis.h"
+#include "DependenceAnalyzer.h"
#include "llvm/Target/TargetData.h"
#include <set>
@@ -47,6 +47,9 @@ namespace llvm {
//Map to hold list of instructions associate to the induction var for each BB
std::map<const MachineBasicBlock*, std::map<const MachineInstr*, unsigned> > indVarInstrs;
+ //Map to hold machine to llvm instrs for each valid BB
+ std::map<const MachineBasicBlock*, std::map<MachineInstr*, Instruction*> > machineTollvm;
+
//LLVM Instruction we know we can add TmpInstructions to its MCFI
Instruction *defaultInst;
@@ -145,6 +148,7 @@ namespace llvm {
// getAnalysisUsage
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
+ AU.addRequired<DependenceAnalyzer>();
AU.addRequired<AliasAnalysis>();
AU.addRequired<TargetData>();
}