← Back to Pull requests

[LLVM][docs] Finish MyST migration for remaining docs (batch 11) #223100

Merged
rnk merged 30 files (15466 lines) on Sep 19, 2026 14:59 UTC
View on GitHub
rnk rnk commented on Sep 11, 2026 23:20 UTC
Author

Migration notes:

  • I left several eval-rest blocks in TableGen/ProgRef which uses EBNF production lists to define grammars. This apparently doesn't work in myst.

  • Accidental list blockquotes were converted to native lists. The project-layout and Makefile entries in Projects are native definition lists.
  • Tracking issue: #201242
    See the [migration guide] for more information.

    [migration guide]: https://llvm.org/docs/SphinxQuickstartTemplate.html#markdown-migration-guidelines
    This is a stacked PR based on #223098, which is a standalone commit that
    renames .rst -> .md before this PR lands for history preservation purposes.

    This was prepared with rst2myst plus LLM-assisted cleanup.

    Diff: 15466 lines (+7451 / -8015) across 30 files Reviewer: kazutakahirata Review duration: 11018m
    All Vouch review confidence checks passed
    Residual risk 0.29 = Change Risk (0.96) × (1 − Review Confidence (0.69)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.96 · 15466 lines diff across 30 files
    0.96
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.46 · 3 substantive comment(s)
    0.46
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    69%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.400
    Sensitive Paths sensitive_paths
    0.096
    Mass File Touch mass_file_touch
    0.080
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    5 items
    kazutakahirata kazutakahirata commented on Sep 18, 2026 17:13 UTC
    Contributor

    Thank you for working on this! Since we're both using LLMs here, I'm listing findings in one place so you can feed this directly to your agent rather than clicking through inline diff threads:

    1. llvm/docs/SecurityTransparencyReports.md (lines 111–161, ## 2023 section):
    When the ## 2023 list was unindented from a blockquote to a native list, the <...> autolink brackets were dropped around all 26 https://... URLs in that section (unlike ## 2022 and ## 2024). Since MyST linkify is off in llvm/docs/conf.py, those 26 URLs currently render as non-clickable plain text. Please wrap the bare URLs in ## 2023 in <https://...> (and wrap __builtin_unreachable() on line 123 in backticks).

    2. llvm/docs/XRay.md (lines 297–298):
    The original .rst link was missing a trailing _, so rst2myst turned it into {title-reference} instead of a link:
    - Replace {title-reference}Chrome Trace Viewer (catapult)\n <https://github.com/catapult-project/catapult>` with Chrome Trace Viewer (catapult).

    3. Leftover {title-reference} roles that should be inline code ( ... ):
    -
    llvm/docs/Security.md (line 29): {title-reference} ${full_name} (${affiliation}) [${github_username}] -> ${full_name} (${affiliation}) [${github_username}]
    -
    llvm/docs/TransformMetadata.md (line 393): {title-reference}B[0] -> B[0]
    -
    llvm/docs/XRay.md (line 86): {title-reference}libclang_rt.xray-{arch} where {title-reference}{arch} -> libclang_rt.xray-{arch} where {arch}

    4. *Single-backtick code identifiers converted to italics instead of code :
    -
    llvm/docs/StackMaps.md (lines 47–50): GCFunctionMetadata (x2) and GCRoot -> GCFunctionMetadata and GCRoot
    -
    llvm/docs/TableGen/ProgRef.md:
    - Lines 593–594:
    int and list\<int> -> int and list<int>
    - Line 1349:
    deftype -> deftype
    - Line 1420:
    dump -> dump
    - Line 1429:
    !repr -> !repr
    - Lines 2073–2075:
    [0, 1, 2, 3], [1, 2, 3], [0, 2]* -> [0, 1, 2, 3] , [1, 2, 3] , [0, 2] `

    nickdesaulniers nickdesaulniers commented on Sep 18, 2026 22:56 UTC
    Contributor

    Good idea, also had a bot chew on this:

    llvm/docs/SecurityTransparencyReports.md (lines 111–161, ## 2023 section):

    around all 26 https://... URLs

    My bot counted 28. There are 2 that are immediately followed by a period, so perhaps check for that.

    Single-backtick code identifiers converted to italics instead of code:

    More cases of that:

    1. Lines 593–594 (m, n, i, j, ls):
    #issuecomment-5733523561 flagged int and list\<int> on ProgRef.md:593-594, but missed m, n, i, j, and ls on the same two lines
    (which are already formatted as inline code m, n, i, j, ls in the immediately preceding list on lines 587–590):
    --- a/llvm/docs/TableGen/ProgRef.md
    +++ b/llvm/docs/TableGen/ProgRef.md
    @@ -593,2 +593,2 @@
    -The type of m and n should be int.
    -The type of i, j, and ls should be either int or list\<int>.
    +The type of m and n should be int.
    +The type of i, j, and ls should be either int or list<int>.

    2. Line 554 (Type):
    In ProgRef.md:554, Type refers to the grammar production Type from the !isa<Type> / bang-operator syntax block right above it (and line 555
    uses Type in backticks):
    --- a/llvm/docs/TableGen/ProgRef.md
    +++ b/llvm/docs/TableGen/ProgRef.md
    @@ -554,2 +554,2 @@
    -The Type is only accepted for certain bang operators, and must not be
    -specified with other bang operators. When Type is omitted, the curly braces
    +The Type is only accepted for certain bang operators, and must not be
    +specified with other bang operators. When Type is omitted, the curly braces

    3. Lines 298 & 429 (bits<n>):
    In ProgRef.md:298 and ProgRef.md:429, `bits< n > was converted to bits<n> (adjacent inline code spans sandwiching italics).
    While valid CommonMark, it renders with mixed <code class="docutils literal">bits<</code><em>n</em><code class="docutils literal">></code>
    styling.
    ---
    One indented syntax line at ProgRef.md:1525 is still a > blockquote instead of a code block or unindented syntax line:

    --- a/llvm/docs/TableGen/ProgRef.md
    +++ b/llvm/docs/TableGen/ProgRef.md
    @@ -1523,3 +1523,3 @@
    The syntax of a
    dag instance is:

    ->
    ( operator argument1, argument2, ... )
    +
    ( operator argument1, argument2, ... )`

    rnk rnk commented on Sep 18, 2026 23:46 UTC
    Author

    Thanks for the review, fixed!

    I think many of these differences were not visible in the pixel diff because they are either invisible in the HTML ({title-reference}) or they are hidden in the big pixel diff from the blockquote removal, and that was my main quality evaluation criteria: Does it render the same.

    Anyway, I went through a new diff, I think it looks good. I'm publishing new HTML, but that will take 15min, FYI.

    kazutakahirata kazutakahirata approved these changes on Sep 19, 2026 09:35 UTC
    Approved Reviewer

    LGTM. Thank you for the update!

    Assignees
    rnk rnk
    Labels
    risk: low confidence: 69.3% reviewed sensitive_module
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 96% (HIGH) · Higher = larger blast radius
    96%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 69.3% · Lower = rushed or shallow review
    69.3%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 29.5% · Safe to merge
    29.5%