mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 12:43:36 +01:00
[TableGen] Use ListSeparator (NFC)
This commit is contained in:
parent
32c2f14548
commit
be876e8742
@ -708,10 +708,10 @@ void CodeGenSchedModels::collectSchedRW() {
|
|||||||
/// Compute a SchedWrite name from a sequence of writes.
|
/// Compute a SchedWrite name from a sequence of writes.
|
||||||
std::string CodeGenSchedModels::genRWName(ArrayRef<unsigned> Seq, bool IsRead) {
|
std::string CodeGenSchedModels::genRWName(ArrayRef<unsigned> Seq, bool IsRead) {
|
||||||
std::string Name("(");
|
std::string Name("(");
|
||||||
for (auto I = Seq.begin(), E = Seq.end(); I != E; ++I) {
|
ListSeparator LS("_");
|
||||||
if (I != Seq.begin())
|
for (unsigned I : Seq) {
|
||||||
Name += '_';
|
Name += LS;
|
||||||
Name += getSchedRW(*I, IsRead).Name;
|
Name += getSchedRW(I, IsRead).Name;
|
||||||
}
|
}
|
||||||
Name += ')';
|
Name += ')';
|
||||||
return Name;
|
return Name;
|
||||||
@ -990,10 +990,10 @@ CodeGenSchedModels::createSchedClassName(Record *ItinClassDef,
|
|||||||
std::string CodeGenSchedModels::createSchedClassName(const RecVec &InstDefs) {
|
std::string CodeGenSchedModels::createSchedClassName(const RecVec &InstDefs) {
|
||||||
|
|
||||||
std::string Name;
|
std::string Name;
|
||||||
for (RecIter I = InstDefs.begin(), E = InstDefs.end(); I != E; ++I) {
|
ListSeparator LS("_");
|
||||||
if (I != InstDefs.begin())
|
for (const Record *InstDef : InstDefs) {
|
||||||
Name += '_';
|
Name += LS;
|
||||||
Name += (*I)->getName();
|
Name += InstDef->getName();
|
||||||
}
|
}
|
||||||
return Name;
|
return Name;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user