summaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/SelectionDAGISel.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-03-06 00:20:29 +0000
committerChris Lattner <sabre@nondot.org>2006-03-06 00:20:29 +0000
commit37e30cf736f9975704f4994d4181fe65ebb7b76c (patch)
treebad8e85ae3d9de61fbdd13de800900d6acf9a9e5 /include/llvm/CodeGen/SelectionDAGISel.h
parent67727308fa1fbcc5090e1da657bd2bb93c6d0858 (diff)
downloadllvm-37e30cf736f9975704f4994d4181fe65ebb7b76c.tar.gz
llvm-37e30cf736f9975704f4994d4181fe65ebb7b76c.tar.bz2
llvm-37e30cf736f9975704f4994d4181fe65ebb7b76c.tar.xz
Hoist the HazardRecognizer out of the ScheduleDAGList.cpp file to where
targets can implement them. Make the top-down scheduler non-g5-specific. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26568 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/SelectionDAGISel.h')
-rw-r--r--include/llvm/CodeGen/SelectionDAGISel.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/SelectionDAGISel.h b/include/llvm/CodeGen/SelectionDAGISel.h
index 805699390d..ffaa1c6a35 100644
--- a/include/llvm/CodeGen/SelectionDAGISel.h
+++ b/include/llvm/CodeGen/SelectionDAGISel.h
@@ -28,6 +28,7 @@ namespace llvm {
class MachineInstr;
class TargetLowering;
class FunctionLoweringInfo;
+ class HazardRecognizer;
/// SelectionDAGISel - This is the common base class used for SelectionDAG-based
/// pattern-matching instruction selectors.
@@ -61,6 +62,10 @@ public:
return true;
}
+ /// GetTargetHazardRecognizer - Return the hazard recognizer to use for this
+ /// target when scheduling the DAG.
+ virtual HazardRecognizer &GetTargetHazardRecognizer();
+
protected:
/// Pick a safe ordering and emit instructions for each target node in the
/// graph.