summaryrefslogtreecommitdiffstats
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
commita5c747b0ca3f48c564a758f3d801d770ddf464a7 (patch)
treedf3c9835f53f4feee5a639a70e3aec01b3683c9d
parent712366821a10f594ccd495a90567e284aac227ba (diff)
downloadbcm5719-llvm-a5c747b0ca3f48c564a758f3d801d770ddf464a7.tar.gz
bcm5719-llvm-a5c747b0ca3f48c564a758f3d801d770ddf464a7.zip
Fix r177112: Add ProcResGroup.
This is the other half of r177122 that I meant to commit at the same time. llvm-svn: 177123
-rw-r--r--llvm/utils/TableGen/SubtargetEmitter.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/utils/TableGen/SubtargetEmitter.cpp b/llvm/utils/TableGen/SubtargetEmitter.cpp
index ac81ceffee0..299a5afb352 100644
--- a/llvm/utils/TableGen/SubtargetEmitter.cpp
+++ b/llvm/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');
}
OpenPOWER on IntegriCloud