[PATCH] D145484: [Tools] Changed the number printing format for sorting in chunk-print-before-all

Dmitry Bakunevich via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 17 00:35:37 PDT 2023


This revision was automatically updated to reflect the committed changes.
Closed by commit rGdc9c7f539124: [Tools] Changed the number printing format for sorting (authored by dbakunevich).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D145484/new/

https://reviews.llvm.org/D145484

Files:
  llvm/utils/chunk-print-before-all.py


Index: llvm/utils/chunk-print-before-all.py
===================================================================
--- llvm/utils/chunk-print-before-all.py
+++ llvm/utils/chunk-print-before-all.py
@@ -19,7 +19,7 @@
 
 def print_chunk(lines, prefix, pass_name):
     global chunk_id
-    fname = str(chunk_id) + "-" + prefix + "-" + pass_name + ".ll"
+    fname = str(chunk_id).zfill(4) + "-" + prefix + "-" + pass_name + ".ll"
     chunk_id = chunk_id + 1
     print("writing chunk " + fname + " (" + str(len(lines)) + " lines)")
     with open(fname, "w") as f:


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D145484.505994.patch
Type: text/x-patch
Size: 560 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230317/c8225f0a/attachment.bin>


More information about the llvm-commits mailing list