mirror of
https://github.com/siemens-mobile-hacks/llvm-c166.git
synced 2026-11-25 21:45:57 +00:00
Tracking issue: #201242 This change is a one-off using a different methodology, described here. AttributeReference.rst is generated, not checked in, so there's no separate rename PR. The reST markup lives in AttrDocs.td, which is essentially a tablegen wrapper that we can "join" with Attr.td to produce complete reference. I can't simply stream AttrDocs.td through rst2myst to migrate it. Instead, my agent used Python regexes to match `let Content = [{` and similar blocks (`code Intro = [{`) through to the closing delimiters (`}];`). The one-off script imported the `rst_to_myst` module and called the `rst_to_myst` library function on the inner reST body text. It then built up a list of alternating fragments of tablegen and markdown strings that were concatenated to produce the new contents of AttrDocs.td. The point of mentioning this is to explain that only 11% of the inserted lines in this change were agent-generated, based on the split of the diff state between the two commits: ``` ❯ jj diff --stat ... 5 files changed, 526 insertions(+), 537 deletions(-) ❯ jj diff --stat -r @- ... 1 file changed, 4630 insertions(+), 4671 deletions(-) ``` So, if you want to trust rst2myst and only focus on the agentic and manual cleanups, you can look at the *second commit* in the PR, which is only +526 lines. If you dig into the second diff, you'll notice that most of it is just removing block quotes that were caused by bugs from extra indentation in the original AttrDocs.td reST. I also have an elaborate new pixel diff strategy that shows me that all of the visual diffs look good. I paged through the new AttributeReference.html, but it was too long for me personally visually diff. The change passed all my other existing validation scripts that ensure that all the id= anchors are all still present in the new output. |
||
|---|---|---|
| .. | ||
| BackEnds.rst | ||
| BackGuide.rst | ||
| index.md | ||
| ProgRef.rst | ||