summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorAndrew Trick <atrick@apple.com>2013-03-14 22:47:01 +0000
committerAndrew Trick <atrick@apple.com>2013-03-14 22:47:01 +0000
commit157c6c4e8e0b4f5f83289d32f7b67b1ae2e3c357 (patch)
treeb0c7879b2ba6b9d1418471860544d9627143af74 /utils
parent488e4f445a010b8fc66fb820266a6fe64e093e0b (diff)
downloadllvm-157c6c4e8e0b4f5f83289d32f7b67b1ae2e3c357.tar.gz
llvm-157c6c4e8e0b4f5f83289d32f7b67b1ae2e3c357.tar.bz2
llvm-157c6c4e8e0b4f5f83289d32f7b67b1ae2e3c357.tar.xz
Fix r177112: Add ProcResGroup.
This is the other half of r177122 that I meant to commit at the same time. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@177123 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r--utils/TableGen/SubtargetEmitter.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/utils/TableGen/SubtargetEmitter.cpp b/utils/TableGen/SubtargetEmitter.cpp
index ac81ceffee..299a5afb35 100644
--- a/utils/TableGen/SubtargetEmitter.cpp
+++ b/utils/TableGen/SubtargetEmitter.cpp
@@ -656,6 +656,8 @@ void SubtargetEmitter::EmitProcessorResources(const CodeGenProcModel &ProcModel,
PRDef->getValueAsDef("Super"), ProcModel);
SuperIdx = ProcModel.getProcResourceIdx(SuperDef);
}
+ NumUnits = PRDef->getValueAsInt("NumUnits");
+ IsBuffered = PRDef->getValueAsBit("Buffered");
}
// Emit the ProcResourceDesc
if (i+1 == e)
@@ -881,7 +883,7 @@ void SubtargetEmitter::GenSchedClassTables(const CodeGenProcModel &ProcModel,
}
}
if (Writes.empty()) {
- DEBUG(dbgs() << ProcModel.ItinsDef->getName()
+ DEBUG(dbgs() << ProcModel.ModelName
<< " does not have resources for itinerary class "
<< SCI->ItinClassDef->getName() << '\n');
}