diff options
author | David Goodwin <david_goodwin@apple.com> | 2009-08-10 15:55:25 +0000 |
---|---|---|
committer | David Goodwin <david_goodwin@apple.com> | 2009-08-10 15:55:25 +0000 |
commit | d94a4e5d8de1145be200ff7223f98b0928462b94 (patch) | |
tree | f3fbcecfdc7ed2e3a84989c12cedc5a15db93215 /include/llvm/CodeGen/ScheduleHazardRecognizer.h | |
parent | 65f2e7887a8b70b3ee63ef535a6bcfe8a170c074 (diff) | |
download | external_llvm-d94a4e5d8de1145be200ff7223f98b0928462b94.zip external_llvm-d94a4e5d8de1145be200ff7223f98b0928462b94.tar.gz external_llvm-d94a4e5d8de1145be200ff7223f98b0928462b94.tar.bz2 |
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.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/ScheduleHazardRecognizer.h b/include/llvm/CodeGen/ScheduleHazardRecognizer.h index 369882d..09e3e88 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 *) {} |