From aab99786114d09b2930e5d84e417e761a8ca34ec Mon Sep 17 00:00:00 2001 From: Andrew Trick Date: Thu, 14 Mar 2013 22:47:01 +0000 Subject: [PATCH] Fix r177112: Add ProcResGroup. This is the other half of r177122 that I meant to commit at the same time. llvm-svn: 177123 --- utils/TableGen/SubtargetEmitter.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/utils/TableGen/SubtargetEmitter.cpp b/utils/TableGen/SubtargetEmitter.cpp index ac81ceffee0..299a5afb352 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'); }