diff options
Diffstat (limited to 'llvm/include/llvm/CodeGen/ScoreboardHazardRecognizer.h')
-rw-r--r-- | llvm/include/llvm/CodeGen/ScoreboardHazardRecognizer.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/include/llvm/CodeGen/ScoreboardHazardRecognizer.h b/llvm/include/llvm/CodeGen/ScoreboardHazardRecognizer.h index ac67f3008fa7..cefafe87a17d 100644 --- a/llvm/include/llvm/CodeGen/ScoreboardHazardRecognizer.h +++ b/llvm/include/llvm/CodeGen/ScoreboardHazardRecognizer.h @@ -16,13 +16,13 @@ #define LLVM_CODEGEN_SCOREBOARDHAZARDRECOGNIZER_H #include "llvm/CodeGen/ScheduleHazardRecognizer.h" +#include "llvm/MC/MCInstrItineraries.h" #include <cassert> #include <cstddef> #include <cstring> namespace llvm { -class InstrItineraryData; class ScheduleDAG; class SUnit; @@ -37,7 +37,7 @@ class ScoreboardHazardRecognizer : public ScheduleHazardRecognizer { // bottom-up scheduler, then the scoreboard cycles are the inverse of the // scheduler's cycles. class Scoreboard { - unsigned *Data = nullptr; + InstrStage::FuncUnits *Data = nullptr; // The maximum number of cycles monitored by the Scoreboard. This // value is determined based on the target itineraries to ensure @@ -56,7 +56,7 @@ class ScoreboardHazardRecognizer : public ScheduleHazardRecognizer { size_t getDepth() const { return Depth; } - unsigned& operator[](size_t idx) const { + InstrStage::FuncUnits& operator[](size_t idx) const { // Depth is expected to be a power-of-2. assert(Depth && !(Depth & (Depth - 1)) && "Scoreboard was not initialized properly!"); @@ -67,7 +67,7 @@ class ScoreboardHazardRecognizer : public ScheduleHazardRecognizer { void reset(size_t d = 1) { if (!Data) { Depth = d; - Data = new unsigned[Depth]; + Data = new InstrStage::FuncUnits[Depth]; } memset(Data, 0, Depth * sizeof(Data[0])); |