[PATCH] D157644: [Docs] Remove old HTML related comment from Passes documentation

Aiden Grossman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 10 14:19:17 PDT 2023


This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGb2c292c5b120: [Docs] Remove old HTML related comment from Passes documentation (authored by aidengrossman).

Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D157644

Files:
  llvm/docs/Passes.rst


Index: llvm/docs/Passes.rst
===================================================================
--- llvm/docs/Passes.rst
+++ llvm/docs/Passes.rst
@@ -1,32 +1,3 @@
-..
-    If Passes.html is up to date, the following "one-liner" should print
-    an empty diff.
-
-    egrep -e '^<tr><td><a href="#.*">-.*</a></td><td>.*</td></tr>$' \
-          -e '^  <a name=".*">.*</a>$' < Passes.html >html; \
-    perl >help <<'EOT' && diff -u help html; rm -f help html
-    open HTML, "<Passes.html" or die "open: Passes.html: $!\n";
-    while (<HTML>) {
-      m:^<tr><td><a href="#(.*)">-.*</a></td><td>.*</td></tr>$: or next;
-      $order{$1} = sprintf("%03d", 1 + int %order);
-    }
-    open HELP, "../Release/bin/opt -help|" or die "open: opt -help: $!\n";
-    while (<HELP>) {
-      m:^    -([^ ]+) +- (.*)$: or next;
-      my $o = $order{$1};
-      $o = "000" unless defined $o;
-      push @x, "$o<tr><td><a href=\"#$1\">-$1</a></td><td>$2</td></tr>\n";
-      push @y, "$o  <a name=\"$1\">-$1: $2</a>\n";
-    }
-    @x = map { s/^\d\d\d//; $_ } sort @x;
-    @y = map { s/^\d\d\d//; $_ } sort @y;
-    print @x, @y;
-    EOT
-
-    This (real) one-liner can also be helpful when converting comments to HTML:
-
-    perl -e '$/ = undef; for (split(/\n/, <>)) { s:^ *///? ?::; print "  <p>\n" if !$on && $_ =~ /\S/; print "  </p>\n" if $on && $_ =~ /^\s*$/; print "  $_\n"; $on = ($_ =~ /\S/); } print "  </p>\n" if $on'
-
 ====================================
 LLVM's Analysis and Transform Passes
 ====================================


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D157644.549168.patch
Type: text/x-patch
Size: 1543 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230810/6fffe1c4/attachment.bin>


More information about the llvm-commits mailing list