mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-27 13:30:05 +00:00
Fix a false error reported by the tblgen backend for machine model
"ProcResource def is not included in the ProcResources". Some of the machine model definitions were not added to the processor's list used for diagnostics and error checking. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203749 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ce5a6548a2
commit
0e8c89ae8f
@ -1473,11 +1473,23 @@ void CodeGenSchedModels::collectProcResources() {
|
||||
Record *ModelDef = (*WRI)->getValueAsDef("SchedModel");
|
||||
addWriteRes(*WRI, getProcModel(ModelDef).Index);
|
||||
}
|
||||
RecVec SWRDefs = Records.getAllDerivedDefinitions("SchedWriteRes");
|
||||
for (RecIter WRI = SWRDefs.begin(), WRE = SWRDefs.end(); WRI != WRE; ++WRI) {
|
||||
Record *ModelDef = (*WRI)->getValueAsDef("SchedModel");
|
||||
addWriteRes(*WRI, getProcModel(ModelDef).Index);
|
||||
}
|
||||
RecVec RADefs = Records.getAllDerivedDefinitions("ReadAdvance");
|
||||
for (RecIter RAI = RADefs.begin(), RAE = RADefs.end(); RAI != RAE; ++RAI) {
|
||||
Record *ModelDef = (*RAI)->getValueAsDef("SchedModel");
|
||||
addReadAdvance(*RAI, getProcModel(ModelDef).Index);
|
||||
}
|
||||
RecVec SRADefs = Records.getAllDerivedDefinitions("SchedReadAdvance");
|
||||
for (RecIter RAI = SRADefs.begin(), RAE = SRADefs.end(); RAI != RAE; ++RAI) {
|
||||
if ((*RAI)->getValueInit("SchedModel")->isComplete()) {
|
||||
Record *ModelDef = (*RAI)->getValueAsDef("SchedModel");
|
||||
addReadAdvance(*RAI, getProcModel(ModelDef).Index);
|
||||
}
|
||||
}
|
||||
// Add ProcResGroups that are defined within this processor model, which may
|
||||
// not be directly referenced but may directly specify a buffer size.
|
||||
RecVec ProcResGroups = Records.getAllDerivedDefinitions("ProcResGroup");
|
||||
|
Loading…
Reference in New Issue
Block a user