diff options
author | Kazu Hirata <kazu@google.com> | 2021-01-15 21:00:55 -0800 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2021-01-15 21:00:56 -0800 |
commit | 8fd8ff1f67e4919954162ccf5f0e9b5e9c2d53fb (patch) | |
tree | e6f3510a84340992132d704d0f0d82be8bde3c11 /llvm/lib/CodeGen/MachineBasicBlock.cpp | |
parent | 4707b21298a6daf28b08d9395568ccc94a549711 (diff) | |
download | llvm-8fd8ff1f67e4919954162ccf5f0e9b5e9c2d53fb.zip llvm-8fd8ff1f67e4919954162ccf5f0e9b5e9c2d53fb.tar.gz llvm-8fd8ff1f67e4919954162ccf5f0e9b5e9c2d53fb.tar.bz2 |
[StringExtras] Rename SubsequentDelim to ListSeparator
This patch renames SubsequentDelim to ListSeparator to clarify the
purpose of the class.
Differential Revision: https://reviews.llvm.org/D94649
Diffstat (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineBasicBlock.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/llvm/lib/CodeGen/MachineBasicBlock.cpp b/llvm/lib/CodeGen/MachineBasicBlock.cpp index fded4b1..b4187af 100644 --- a/llvm/lib/CodeGen/MachineBasicBlock.cpp +++ b/llvm/lib/CodeGen/MachineBasicBlock.cpp @@ -353,9 +353,9 @@ void MachineBasicBlock::print(raw_ostream &OS, ModuleSlotTracker &MST, if (Indexes) OS << '\t'; // Don't indent(2), align with previous line attributes. OS << "; predecessors: "; - SubsequentDelim SD; + ListSeparator LS; for (auto *Pred : predecessors()) - OS << SD << printMBBReference(*Pred); + OS << LS << printMBBReference(*Pred); OS << '\n'; HasLineAttributes = true; } @@ -364,9 +364,9 @@ void MachineBasicBlock::print(raw_ostream &OS, ModuleSlotTracker &MST, if (Indexes) OS << '\t'; // Print the successors OS.indent(2) << "successors: "; - SubsequentDelim SD; + ListSeparator LS; for (auto I = succ_begin(), E = succ_end(); I != E; ++I) { - OS << SD << printMBBReference(**I); + OS << LS << printMBBReference(**I); if (!Probs.empty()) OS << '(' << format("0x%08" PRIx32, getSuccProbability(I).getNumerator()) @@ -375,10 +375,10 @@ void MachineBasicBlock::print(raw_ostream &OS, ModuleSlotTracker &MST, if (!Probs.empty() && IsStandalone) { // Print human readable probabilities as comments. OS << "; "; - SubsequentDelim SD; + ListSeparator LS; for (auto I = succ_begin(), E = succ_end(); I != E; ++I) { const BranchProbability &BP = getSuccProbability(I); - OS << SD << printMBBReference(**I) << '(' + OS << LS << printMBBReference(**I) << '(' << format("%.2f%%", rint(((double)BP.getNumerator() / BP.getDenominator()) * 100.0 * 100.0) / @@ -395,9 +395,9 @@ void MachineBasicBlock::print(raw_ostream &OS, ModuleSlotTracker &MST, if (Indexes) OS << '\t'; OS.indent(2) << "liveins: "; - SubsequentDelim SD; + ListSeparator LS; for (const auto &LI : liveins()) { - OS << SD << printReg(LI.PhysReg, TRI); + OS << LS << printReg(LI.PhysReg, TRI); if (!LI.LaneMask.all()) OS << ":0x" << PrintLaneMask(LI.LaneMask); } |