[PATCH] D79377: [mlir] Remove tabs from predecessor comments
Mehdi AMINI via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon May 4 19:23:11 PDT 2020
This revision was automatically updated to reflect the committed changes.
Closed by commit rG13090ec7dd4c: [mlir] Remove tabs from predecessor comments (authored by GMNGeoffrey, committed by mehdi_amini).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D79377/new/
https://reviews.llvm.org/D79377
Files:
mlir/lib/IR/AsmPrinter.cpp
Index: mlir/lib/IR/AsmPrinter.cpp
===================================================================
--- mlir/lib/IR/AsmPrinter.cpp
+++ mlir/lib/IR/AsmPrinter.cpp
@@ -2302,11 +2302,11 @@
// Print out some context information about the predecessors of this block.
if (!block->getParent()) {
- os << "\t// block is not in a region!";
+ os << " // block is not in a region!";
} else if (block->hasNoPredecessors()) {
- os << "\t// no predecessors";
+ os << " // no predecessors";
} else if (auto *pred = block->getSinglePredecessor()) {
- os << "\t// pred: ";
+ os << " // pred: ";
printBlockName(pred);
} else {
// We want to print the predecessors in increasing numeric order, not in
@@ -2316,7 +2316,7 @@
predIDs.push_back({state->getSSANameState().getBlockID(pred), pred});
llvm::array_pod_sort(predIDs.begin(), predIDs.end());
- os << "\t// " << predIDs.size() << " preds: ";
+ os << " // " << predIDs.size() << " preds: ";
interleaveComma(predIDs, [&](std::pair<unsigned, Block *> pred) {
printBlockName(pred.second);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D79377.261991.patch
Type: text/x-patch
Size: 1143 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200505/6436ad55/attachment.bin>
More information about the llvm-commits
mailing list