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
This commit is contained in:
Chris Lattner
2006-03-08 04:25:59 +00:00
parent 2b0e309640
commit b0d21ef20c
8 changed files with 29 additions and 38 deletions

View File

@@ -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