summaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/ScoreboardHazardRecognizer.h
diff options
context:
space:
mode:
authorHal Finkel <hfinkel@anl.gov>2012-06-18 21:08:18 +0000
committerHal Finkel <hfinkel@anl.gov>2012-06-18 21:08:18 +0000
commite877c4f9c7b4e4142f33a29e6cd1a07262525a12 (patch)
treeecbb5ae6ebaa572c5715be2b35512d9921317c74 /include/llvm/CodeGen/ScoreboardHazardRecognizer.h
parent0ed5cf4fc1f6d7947687114c9d0cbe0d1ba1d883 (diff)
downloadllvm-e877c4f9c7b4e4142f33a29e6cd1a07262525a12.tar.gz
llvm-e877c4f9c7b4e4142f33a29e6cd1a07262525a12.tar.bz2
llvm-e877c4f9c7b4e4142f33a29e6cd1a07262525a12.tar.xz
Allow up to 64 functional units per processor itinerary.
This patch changes the type used to hold the FU bitset from unsigned to uint64_t. This will be needed for some upcoming PowerPC itineraries. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158679 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/ScoreboardHazardRecognizer.h')
-rw-r--r--include/llvm/CodeGen/ScoreboardHazardRecognizer.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/llvm/CodeGen/ScoreboardHazardRecognizer.h b/include/llvm/CodeGen/ScoreboardHazardRecognizer.h
index 060e89a3fd..c741e1ba24 100644
--- a/include/llvm/CodeGen/ScoreboardHazardRecognizer.h
+++ b/include/llvm/CodeGen/ScoreboardHazardRecognizer.h
@@ -39,7 +39,7 @@ class ScoreboardHazardRecognizer : public ScheduleHazardRecognizer {
// bottom-up scheduler, then the scoreboard cycles are the inverse of the
// scheduler's cycles.
class Scoreboard {
- unsigned *Data;
+ uint64_t *Data;
// The maximum number of cycles monitored by the Scoreboard. This
// value is determined based on the target itineraries to ensure
@@ -54,7 +54,7 @@ class ScoreboardHazardRecognizer : public ScheduleHazardRecognizer {
}
size_t getDepth() const { return Depth; }
- unsigned& operator[](size_t idx) const {
+ uint64_t& operator[](size_t idx) const {
// Depth is expected to be a power-of-2.
assert(Depth && !(Depth & (Depth - 1)) &&
"Scoreboard was not initialized properly!");
@@ -65,7 +65,7 @@ class ScoreboardHazardRecognizer : public ScheduleHazardRecognizer {
void reset(size_t d = 1) {
if (Data == NULL) {
Depth = d;
- Data = new unsigned[Depth];
+ Data = new uint64_t[Depth];
}
memset(Data, 0, Depth * sizeof(Data[0]));