diff options
author | Hal Finkel <hfinkel@anl.gov> | 2011-10-17 04:03:49 +0000 |
---|---|---|
committer | Hal Finkel <hfinkel@anl.gov> | 2011-10-17 04:03:49 +0000 |
commit | c6d08f10bf797cc78068ef30bd0e8812a5bdc9a2 (patch) | |
tree | 5f068799dd46640691edadc819fcee04e24b7592 /lib/Target/PowerPC/PPCHazardRecognizers.h | |
parent | 602650c98822371d4a34b00353ec71051621b7fb (diff) | |
download | llvm-c6d08f10bf797cc78068ef30bd0e8812a5bdc9a2.tar.gz llvm-c6d08f10bf797cc78068ef30bd0e8812a5bdc9a2.tar.bz2 llvm-c6d08f10bf797cc78068ef30bd0e8812a5bdc9a2.tar.xz |
Add PPC 440 scheduler and some associated tests
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142170 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPCHazardRecognizers.h')
-rw-r--r-- | lib/Target/PowerPC/PPCHazardRecognizers.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/Target/PowerPC/PPCHazardRecognizers.h b/lib/Target/PowerPC/PPCHazardRecognizers.h index 2f81f0f7c7..32fac91eee 100644 --- a/lib/Target/PowerPC/PPCHazardRecognizers.h +++ b/lib/Target/PowerPC/PPCHazardRecognizers.h @@ -15,11 +15,24 @@ #define PPCHAZRECS_H #include "llvm/CodeGen/ScheduleHazardRecognizer.h" +#include "llvm/CodeGen/ScoreboardHazardRecognizer.h" #include "llvm/CodeGen/SelectionDAGNodes.h" #include "PPCInstrInfo.h" namespace llvm { +/// PPCHazardRecognizer440 - This class implements a scoreboard-based +/// hazard recognizer for the PPC 440 and friends. +class PPCHazardRecognizer440 : public ScoreboardHazardRecognizer { + const ScheduleDAG *DAG; +public: + PPCHazardRecognizer440(const InstrItineraryData *ItinData, + const ScheduleDAG *DAG_) : + ScoreboardHazardRecognizer(ItinData, DAG_), DAG(DAG_) {} + + virtual void EmitInstruction(SUnit *SU); +}; + /// PPCHazardRecognizer970 - This class defines a finite state automata that /// models the dispatch logic on the PowerPC 970 (aka G5) processor. This /// promotes good dispatch group formation and implements noop insertion to |