mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 04:32:44 +01:00
[TableGen] Use ListSeparator (NFC)
This commit is contained in:
parent
03a18c0465
commit
7c818b1f11
@ -2262,25 +2262,18 @@ void PredTransitions::dump() const {
|
||||
for (std::vector<PredTransition>::const_iterator
|
||||
TI = TransVec.begin(), TE = TransVec.end(); TI != TE; ++TI) {
|
||||
dbgs() << "{";
|
||||
for (SmallVectorImpl<PredCheck>::const_iterator
|
||||
PCI = TI->PredTerm.begin(), PCE = TI->PredTerm.end();
|
||||
PCI != PCE; ++PCI) {
|
||||
if (PCI != TI->PredTerm.begin())
|
||||
dbgs() << ", ";
|
||||
dbgs() << SchedModels.getSchedRW(PCI->RWIdx, PCI->IsRead).Name
|
||||
<< ":" << PCI->Predicate->getName();
|
||||
}
|
||||
ListSeparator LS;
|
||||
for (const PredCheck &PC : TI->PredTerm)
|
||||
dbgs() << LS << SchedModels.getSchedRW(PC.RWIdx, PC.IsRead).Name << ":"
|
||||
<< PC.Predicate->getName();
|
||||
dbgs() << "},\n => {";
|
||||
for (SmallVectorImpl<SmallVector<unsigned,4>>::const_iterator
|
||||
WSI = TI->WriteSequences.begin(), WSE = TI->WriteSequences.end();
|
||||
WSI != WSE; ++WSI) {
|
||||
dbgs() << "(";
|
||||
for (SmallVectorImpl<unsigned>::const_iterator
|
||||
WI = WSI->begin(), WE = WSI->end(); WI != WE; ++WI) {
|
||||
if (WI != WSI->begin())
|
||||
dbgs() << ", ";
|
||||
dbgs() << SchedModels.getSchedWrite(*WI).Name;
|
||||
}
|
||||
ListSeparator LS;
|
||||
for (unsigned N : *WSI)
|
||||
dbgs() << LS << SchedModels.getSchedWrite(N).Name;
|
||||
dbgs() << "),";
|
||||
}
|
||||
dbgs() << "}\n";
|
||||
|
Loading…
Reference in New Issue
Block a user