aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-03-08 04:25:59 +0000
committerChris Lattner <sabre@nondot.org>2006-03-08 04:25:59 +0000
commitb0d21ef20c29f4ea46d21b488f17feaa6a8760e1 (patch)
tree090bf7d3bcd785f81c02a84bba5792a39611d985 /include
parent2b0e309640c638025d83c8f6f4ee2698ba1b8b92 (diff)
downloadexternal_llvm-b0d21ef20c29f4ea46d21b488f17feaa6a8760e1.zip
external_llvm-b0d21ef20c29f4ea46d21b488f17feaa6a8760e1.tar.gz
external_llvm-b0d21ef20c29f4ea46d21b488f17feaa6a8760e1.tar.bz2
Change the interface for getting a target HazardRecognizer to be more clean.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26608 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/CodeGen/ScheduleDAG.h9
-rw-r--r--include/llvm/CodeGen/SelectionDAGISel.h6
2 files changed, 6 insertions, 9 deletions
diff --git a/include/llvm/CodeGen/ScheduleDAG.h b/include/llvm/CodeGen/ScheduleDAG.h
index a506b82..25b62e2 100644
--- a/include/llvm/CodeGen/ScheduleDAG.h
+++ b/include/llvm/CodeGen/ScheduleDAG.h
@@ -57,10 +57,6 @@ namespace llvm {
NoopHazard, // This instruction can't be emitted, and needs noops.
};
- /// StartBasicBlock - This is called when a new basic block is started.
- ///
- virtual void StartBasicBlock() {}
-
/// getHazardType - Return the hazard type of emitting this node. There are
/// three possible results. Either:
/// * NoHazard: it is legal to issue this instruction on this cycle.
@@ -410,10 +406,11 @@ namespace llvm {
MachineBasicBlock *BB);
/// createTDListDAGScheduler - This creates a top-down list scheduler with
- /// the specified hazard recognizer.
+ /// the specified hazard recognizer. This takes ownership of the hazard
+ /// recognizer and deletes it when done.
ScheduleDAG* createTDListDAGScheduler(SelectionDAG &DAG,
MachineBasicBlock *BB,
- HazardRecognizer &HR);
+ HazardRecognizer *HR);
}
#endif
diff --git a/include/llvm/CodeGen/SelectionDAGISel.h b/include/llvm/CodeGen/SelectionDAGISel.h
index ffaa1c6..1bdf055 100644
--- a/include/llvm/CodeGen/SelectionDAGISel.h
+++ b/include/llvm/CodeGen/SelectionDAGISel.h
@@ -62,9 +62,9 @@ public:
return true;
}
- /// GetTargetHazardRecognizer - Return the hazard recognizer to use for this
- /// target when scheduling the DAG.
- virtual HazardRecognizer &GetTargetHazardRecognizer();
+ /// CreateTargetHazardRecognizer - Return a newly allocated hazard recognizer
+ /// to use for this target when scheduling the DAG.
+ virtual HazardRecognizer *CreateTargetHazardRecognizer();
protected:
/// Pick a safe ordering and emit instructions for each target node in the