1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 10:42:39 +01:00

[TableGen] Use ListSeparator (NFC)

This commit is contained in:
Kazu Hirata 2021-02-10 20:01:20 -08:00
parent 32c2f14548
commit be876e8742

View File

@ -708,10 +708,10 @@ void CodeGenSchedModels::collectSchedRW() {
/// Compute a SchedWrite name from a sequence of writes.
std::string CodeGenSchedModels::genRWName(ArrayRef<unsigned> Seq, bool IsRead) {
std::string Name("(");
for (auto I = Seq.begin(), E = Seq.end(); I != E; ++I) {
if (I != Seq.begin())
Name += '_';
Name += getSchedRW(*I, IsRead).Name;
ListSeparator LS("_");
for (unsigned I : Seq) {
Name += LS;
Name += getSchedRW(I, IsRead).Name;
}
Name += ')';
return Name;
@ -990,10 +990,10 @@ CodeGenSchedModels::createSchedClassName(Record *ItinClassDef,
std::string CodeGenSchedModels::createSchedClassName(const RecVec &InstDefs) {
std::string Name;
for (RecIter I = InstDefs.begin(), E = InstDefs.end(); I != E; ++I) {
if (I != InstDefs.begin())
Name += '_';
Name += (*I)->getName();
ListSeparator LS("_");
for (const Record *InstDef : InstDefs) {
Name += LS;
Name += InstDef->getName();
}
return Name;
}