summaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/ScheduleHazardRecognizer.h
diff options
context:
space:
mode:
authorDavid Goodwin <david_goodwin@apple.com>2009-08-10 15:55:25 +0000
committerDavid Goodwin <david_goodwin@apple.com>2009-08-10 15:55:25 +0000
commitd94a4e5d8de1145be200ff7223f98b0928462b94 (patch)
treef3fbcecfdc7ed2e3a84989c12cedc5a15db93215 /include/llvm/CodeGen/ScheduleHazardRecognizer.h
parent65f2e7887a8b70b3ee63ef535a6bcfe8a170c074 (diff)
downloadllvm-d94a4e5d8de1145be200ff7223f98b0928462b94.tar.gz
llvm-d94a4e5d8de1145be200ff7223f98b0928462b94.tar.bz2
llvm-d94a4e5d8de1145be200ff7223f98b0928462b94.tar.xz
Post RA scheduler changes. Introduce a hazard recognizer that uses the target schedule information to accurately model the pipeline. Update the scheduler to correctly handle multi-issue targets.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78563 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/ScheduleHazardRecognizer.h')
-rw-r--r--include/llvm/CodeGen/ScheduleHazardRecognizer.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/ScheduleHazardRecognizer.h b/include/llvm/CodeGen/ScheduleHazardRecognizer.h
index 369882d258..09e3e88613 100644
--- a/include/llvm/CodeGen/ScheduleHazardRecognizer.h
+++ b/include/llvm/CodeGen/ScheduleHazardRecognizer.h
@@ -43,6 +43,11 @@ public:
return NoHazard;
}
+ /// Reset - This callback is invoked when a new block of
+ /// instructions is about to be schedule. The hazard state should be
+ /// set to an initialized state.
+ virtual void Reset() {}
+
/// EmitInstruction - This callback is invoked when an instruction is
/// emitted, to advance the hazard state.
virtual void EmitInstruction(SUnit *) {}