LLVM/project 8d19df3llvm/lib/Target/RISCV RISCVTargetTransformInfo.cpp, llvm/test/Analysis/CostModel/RISCV select-fp-zve32x.ll

[RISCV][CostModel] Fix invalid cost for vector select on targets without FP vector support (#183158)

Fixes #182047

**Issue:** Compiling floating-point vector selects (e.g., `<2 x float>`)
on RISC-V targets that only support integer vectors (like `zve32x`)
causes a compiler crash in the Loop Vectorizer (`emitInvalidCostRemarks`
unhandled `TypeSwitch`).

**Root Cause:** The Type Legalizer correctly scalarizes the unsupported
FP vector into `f32` operations. However,
`RISCVTTIImpl::getCmpSelInstrCost` attempted to cost
`Instruction::Select` natively without verifying floating-point vector
hardware support. It passed the scalarized type to
`getRISCVInstructionCost` to price a native vector merge instruction,
which returned `InstructionCost::getInvalid()`.

**Fix:** Added hardware support checks (`hasVInstructionsF16/32/64()`)
for floating-point types in the `Instruction::Select` block. If the

    [9 lines not shown]
DeltaFile
+57-0llvm/test/Analysis/CostModel/RISCV/select-fp-zve32x.ll
+1-1llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp
+58-12 files

LLVM/project ceaff22clang/lib/CodeGen CGExprScalar.cpp, clang/test/CodeGen constrained-math-builtins.c fp-reassoc-pragma.cpp

[Clang][CodeGen] Respect FP pragma options for fneg and calls (#212141)

Apply expression-specific floating-point options when emitting fneg and
call instructions.

This prevents these instructions from retaining fast-math flags disabled
by local FP pragmas, such as #pragma clang fp reassociate(off).

Fixes #51905
DeltaFile
+22-22clang/test/CodeGen/AArch64/v8.2a-neon-intrinsics-constrained.c
+22-8clang/test/CodeGen/fp-reassoc-pragma.cpp
+8-8clang/test/CodeGen/constrained-math-builtins.c
+5-1clang/lib/CodeGen/CGExprScalar.cpp
+57-394 files

LLVM/project 5ab9b3ellvm/docs AMDGPUMemoryModel.md

[Docs][AMDGPU] fully specify volatile accesses in the memory model (#214168)

A non-atomic volatile access on AMDGPU includes store-available or
load-visible
semantics at the widest scope supported by its address space:

- system scope for global/generic,
- workgroup scope for local (LDS)

An atomic volatile access has the same availability and visibility as
its atomic
non-volatile variant.

Previous Reference: 2f499b9

This fully specifies the behavior that the LLVM memory model leaves
target-dependent, matching the implementation in SIMemoryLegalizer. 

Assisted-By: Claude Opus 4.8
DeltaFile
+25-0llvm/docs/AMDGPUMemoryModel.md
+25-01 files

LLVM/project 35b6c91llvm/lib/Target/LoongArch LoongArchLSXInstrInfo.td LoongArchLASXInstrInfo.td, llvm/test/CodeGen/LoongArch/lasx/ir-instruction extractelement.ll

[LoongArch] Use unsigned vector extract for zero extension

Add patterns to select VPICKVE2GR_BU/HU and [X]VPICKVE2GR_WU for vector
extraction followed by zero extension, eliminating redundant masking
instructions.
DeltaFile
+16-38llvm/test/CodeGen/LoongArch/lasx/ir-instruction/extractelement.ll
+28-0llvm/lib/Target/LoongArch/LoongArchLASXInstrInfo.td
+8-19llvm/test/CodeGen/LoongArch/lsx/ir-instruction/extractelement.ll
+13-0llvm/lib/Target/LoongArch/LoongArchLSXInstrInfo.td
+65-574 files

LLVM/project 1bfd939llvm/test/CodeGen/LoongArch/lasx/ir-instruction extractelement.ll, llvm/test/CodeGen/LoongArch/lsx/ir-instruction extractelement.ll

[LoongArch][NFC] Add tests for vector extraction with zero extension (#214119)
DeltaFile
+107-0llvm/test/CodeGen/LoongArch/lasx/ir-instruction/extractelement.ll
+64-0llvm/test/CodeGen/LoongArch/lsx/ir-instruction/extractelement.ll
+171-02 files

LLVM/project 8307b46bolt/lib/RuntimeLibs RuntimeLibrary.cpp, bolt/test CMakeLists.txt lit.cfg.py

[BOLT] Support runtime libraries built as thin archives (#214292)

In some configurations, BOLT runtime libraries may be built as thin
archive. Use the more generic `Archive::create` to handle these.
DeltaFile
+22-0bolt/test/runtime/thin-archive.c
+4-3bolt/lib/RuntimeLibs/RuntimeLibrary.cpp
+3-0bolt/test/lit.cfg.py
+1-0bolt/test/CMakeLists.txt
+30-34 files

LLVM/project c6eb5e3clang/docs ClangFormat.md ClangFormatStyleOptions.md, clang/docs/tools dump_format_help.py dump_format_style.py

[docs][clang-format] Migrate generated clang-format docs to markdown (#211398)

Tracking issue: #201242
See the [migration guide] for more information. 

This is a stacked PR based on #211397 , which will be a standalone
commit that
renames *.rst -> *.md before this PR lands for history preservation
purposes.

[migration guide]:
https://llvm.org/docs/SphinxQuickstartTemplate.html#markdown-migration-guidelines

First, the generator was updated to generate markdown constructs, and
then the Doxygen comments in `Format.h` and `IncludeStyle.h` were also
modified to use markdown constructs. Mostly this means using single
backticks instead of double backticks, which is the Doxygen-native way
of expressing code font blocks anyway, so that's good.


    [3 lines not shown]
DeltaFile
+5,522-5,344clang/docs/ClangFormatStyleOptions.md
+404-404clang/include/clang/Format/Format.h
+241-260clang/docs/ClangFormat.md
+109-27clang/docs/tools/dump_format_style.py
+34-33clang/include/clang/Tooling/Inclusions/IncludeStyle.h
+3-11clang/docs/tools/dump_format_help.py
+6,313-6,0796 files

LLVM/project 56a654bllvm/include/llvm/CodeGen TargetLowering.h, llvm/lib/CodeGen/SelectionDAG DAGCombiner.cpp

[DAG] Change `isExtractSubvectorCheap` into `getExtractSubvectorCost` (#213614)

This changes `isExtractSubvectorCheap` into `getExtractSubvectorCost`.

This is preparing for #201056 in order to remove `isNarrowingProfitable`
bail out for `narrowInsertExtractVectorBinOp`.

The reason is `isNarrowingProfitable` should be applying on scalar
variable instead of vectors.

---------

Co-authored-by: shore <shorshen at amd.com>
DeltaFile
+17-11llvm/lib/Target/RISCV/RISCVISelLowering.cpp
+20-7llvm/include/llvm/CodeGen/TargetLowering.h
+17-9llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+15-8llvm/lib/Target/X86/X86ISelLowering.cpp
+10-4llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
+8-5llvm/lib/Target/Hexagon/HexagonISelLowering.cpp
+87-4411 files not shown
+130-7717 files

LLVM/project 1b8dcb4llvm/lib/Target/NVPTX NVPTXISelLowering.cpp NVPTXInstrInfo.td

[NVPTX] Model SM architectures as subtarget features (NFC) (#214335)
DeltaFile
+170-170llvm/lib/Target/NVPTX/NVPTXIntrinsics.td
+89-121llvm/lib/Target/NVPTX/NVPTXSubtarget.h
+93-82llvm/lib/Target/NVPTX/NVPTX.td
+64-97llvm/lib/Target/NVPTX/NVPTXSubtarget.cpp
+50-78llvm/lib/Target/NVPTX/NVPTXInstrInfo.td
+38-39llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp
+504-5873 files not shown
+512-5949 files

LLVM/project 1c0eda0llvm/lib/Analysis ScalarEvolution.cpp, llvm/unittests/Analysis ScalarEvolutionTest.cpp

Revert "[SCEV] Speed up forgetLoop by avoiding def-use walk for loop-header PHIs" (#212485)

Reverts https://github.com/llvm/llvm-project/pull/201572
Multiple miscompilations are reported, see
https://github.com/llvm/llvm-project/issues/207744,
https://github.com/llvm/llvm-project/issues/212027

That commit made forgetLoop() rely on LoopUsers[L] and stop walking the
def-use chain of the loop-header PHIs. This is insufficient, because
some cached data is derived from the underlying IR of SCEVUnknown, it is
not reachable from LoopUsers[L].
After that commit, forgetLoop() no longer invalidated them, so stale
UnsignedRanges / SignedRanges, ConstantMultipleCache, ValuesAtScopes
cause miscompilations.
DeltaFile
+0-39llvm/unittests/Analysis/ScalarEvolutionTest.cpp
+16-6llvm/lib/Analysis/ScalarEvolution.cpp
+16-452 files

LLVM/project 7f298d7llvm/lib/Transforms/Vectorize SLPVectorizer.cpp

Update for comments
DeltaFile
+4-5llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+4-51 files

LLVM/project 5be66d0llvm/lib/Target/AMDGPU SIModeRegisterDefaults.h SIISelLowering.h

[NFC][AMDGPU] Let IR level callers query the FMA/FMAD predicates (#213310)

isFMADLegal and isFMAFasterThanFMulAndFAdd read the denormal mode out of
the MachineFunction, so nothing before instruction selection can ask
them whether an fmul/fadd pair will be fused. Take an explicit
DenormalFPEnv instead, and make the existing MachineFunction /
SelectionDAG / MachineInstr entry points thin wrappers over it.

Also override the IR level isFMAFasterThanFMulAndFAdd hook. The two
views agree by construction, since SIModeRegisterDefaults copies its
denormal fields out of getDenormalFPEnv.

isFMADLegal uses VT as written and does not look through vectors, so a
vector type reports false, as in the SelectionDAG overload it was
extracted from.

The patch is preparation for querying these from getArithmeticInstrCost
and a revived isProfitableToSinkOperands.


    [2 lines not shown]
DeltaFile
+41-19llvm/lib/Target/AMDGPU/SIISelLowering.cpp
+10-0llvm/lib/Target/AMDGPU/SIISelLowering.h
+5-0llvm/lib/Target/AMDGPU/SIModeRegisterDefaults.h
+56-193 files

LLVM/project a432964llvm/lib/Target/AMDGPU VOP3PInstructions.td, llvm/test/CodeGen/AMDGPU mad-mix-lo-bf16.ll mad-mix-lo.ll

[AMDGPU] Fix sign of zero in fpround(fmul) -> V_{MAD,FMA}_MIX{LO,HI} (#214544)

The isel patterns lowering `fptrunc (fmul float %a, %b)` to a mix
instruction passed +0.0 as the FMA addend. Under round-to-nearest fma(a,
b, +0.0) is +0.0 whenever a * b is -0.0, so the sign of zero was lost:
on gfx90a, `(half)(-1.0f * 0.0f)` returned +0.0.

Use a -0.0 addend instead, which is the correct multiplicative identity
for an FMA and is what the f32 sibling pattern in MadFmaMixFP32Pats has
always done.

Verified on gfx90a: (half)(-1.0f * 0.0f) now returns 0x8000.
DeltaFile
+76-76llvm/test/CodeGen/AMDGPU/llvm.log10.ll
+76-76llvm/test/CodeGen/AMDGPU/llvm.log.ll
+11-11llvm/test/CodeGen/AMDGPU/mad-mix-lo.ll
+4-4llvm/test/CodeGen/AMDGPU/mad-mix-lo-bf16.ll
+3-3llvm/lib/Target/AMDGPU/VOP3PInstructions.td
+170-1705 files

LLVM/project 668134ellvm/include/llvm/DebugInfo/GSYM GsymReader.h FunctionInfo.h, llvm/lib/DebugInfo/GSYM FunctionInfo.cpp GsymReader.cpp

[gsymutil] Add `--statistics` option (#186495)

# Motiviation

Currently, if one wants to know the size of the sections in a gSYM (e.g.
to check if they exceed 4GB), they have to dump the whole gSYM in the
text form, then process that huge text to get the sizes.

# New option `--statistics[=<format>]`

This patch adds a `llvm-gsymutil --statistics[=<format>]` option to
print the size info for all sections. It supports three formats:
* `text`: Default.
* `json`: Dense JSON.
* `pretty-json`: Pretty-printed JSON.

See example output below.

# Examples

    [67 lines not shown]
DeltaFile
+397-0llvm/unittests/DebugInfo/GSYM/GSYMTest.cpp
+204-0llvm/lib/DebugInfo/GSYM/GsymReader.cpp
+79-0llvm/lib/DebugInfo/GSYM/FunctionInfo.cpp
+38-0llvm/include/llvm/DebugInfo/GSYM/FunctionInfo.h
+25-0llvm/tools/llvm-gsymutil/llvm-gsymutil.cpp
+18-0llvm/include/llvm/DebugInfo/GSYM/GsymReader.h
+761-03 files not shown
+776-09 files

LLVM/project d39a398clang/docs ClangFormat.md ClangFormatStyleOptions.md, clang/docs/tools dump_format_help.py dump_format_style.py

[docs][clang-format] Migrate generated clang-format docs to markdown

The challenge here is that the documentation is generated from Doxygen
comments in headers, `Format.h` and `IncludeStyle.h`.

First, the generator was updated to generate markdown constructs, and
then the Doxygen comments were also modified to use markdown constructs.
Mostly this means using single backticks instead of double backticks,
which is the Doxygen-native way of expressing code font blocks anyway,
so that's good.

To validate, I built the Sphinx docs and the doxygen, and I confirmed
that the generator script is idempotent, meaning it doesn't change the
markdown output. When I add a new option to clang-format, it shows up in
the help text block, so it works.

Before/after validation links:
| Source file | Before HTML | After HTML |
| --- | --- | --- |

    [4 lines not shown]
DeltaFile
+5,424-5,444clang/docs/ClangFormatStyleOptions.md
+401-400clang/include/clang/Format/Format.h
+236-259clang/docs/ClangFormat.md
+87-27clang/docs/tools/dump_format_style.py
+34-33clang/include/clang/Tooling/Inclusions/IncludeStyle.h
+3-11clang/docs/tools/dump_format_help.py
+6,185-6,1746 files

LLVM/project 330f7fdclang/docs ClangFormatStyleOptions.md, clang/docs/tools dump_format_style.py

Fix dump_format_style.py blank lines and trailing whitespace, regenerate

The reindent_fenced_blocks() change in the previous commit introduced two
output issues when regenerating ClangFormatStyleOptions.md:

1. Empty lines inside code blocks got an indentation prefix added, producing
   trailing whitespace. Fix by skipping the prefix for whitespace-only lines.

2. The blank line that separates a description sentence from the following
   code fence was lost. This blank line is necessary for correct CommonMark
   loose-list rendering. Fix by inserting a blank line before any opening
   code fence (triple-backtick with a lang word, or ::: with a directive)
   that immediately follows a non-blank line.

Regenerate ClangFormatStyleOptions.md with the corrected generator.
DeltaFile
+263-64clang/docs/ClangFormatStyleOptions.md
+3-4clang/include/clang/Format/Format.h
+6-1clang/docs/tools/dump_format_style.py
+272-693 files

LLVM/project 0ce2c97clang/docs ClangFormatStyleOptions.md ClangFormat.md, clang/docs/tools dump_format_style.py

fix link word wrapping
DeltaFile
+26-9clang/docs/tools/dump_format_style.py
+9-5clang/docs/ClangFormat.md
+0-1clang/docs/ClangFormatStyleOptions.md
+35-153 files

LLVM/project 77b44ebclang/docs ClangFormat.rst ClangFormat.md, clang/lib/Format CMakeLists.txt

[docs][clang-format] Rename clang-format docs *.rst -> *.md, update refs (#211397)

Tracking issue: #201242
See the [migration guide] for more information. 

[migration guide]:
https://llvm.org/docs/SphinxQuickstartTemplate.html#markdown-migration-guidelines

This is the initial straight rename commit. It will probably break the
docs build, but it has to be a separate PR for blame preservation
purposes.

---------

Co-authored-by: owenca <owenpiano at gmail.com>
DeltaFile
+0-8,043clang/docs/ClangFormatStyleOptions.rst
+8,043-0clang/docs/ClangFormatStyleOptions.md
+0-366clang/docs/ClangFormat.rst
+366-0clang/docs/ClangFormat.md
+2-2clang/test/Format/docs_updated.test
+2-2clang/lib/Format/CMakeLists.txt
+8,413-8,4132 files not shown
+8,417-8,4178 files

LLVM/project 9219721llvm/test/CodeGen/NVPTX cache-hint-load-store.ll cache-hint-intrinsics.ll

[NVPTX] Fix broken cache hint metadata lit tests (#214600)

I just merged https://github.com/llvm/llvm-project/pull/204067 and
unfortunately forgot to locally compile all the PTX I was generating
from cache hint metadata in lit tests.

- I didn't know that .L2::cache_hint isn't valid on PTX volatile loads.
We need to drop the metadata then for volatile loads. I'll put this up
in a PR later, but for now just delete the lit test that generates the
invalid PTX. I'll add it back in the follow up.

- I forgot to provide SM version and PTX version when invoking ptxas for
the lit tests.
DeltaFile
+1-14llvm/test/CodeGen/NVPTX/cache-hint-transforms.ll
+1-1llvm/test/CodeGen/NVPTX/cache-hint-load-store.ll
+1-1llvm/test/CodeGen/NVPTX/cache-hint-intrinsics.ll
+1-1llvm/test/CodeGen/NVPTX/cache-hint-cache-policy.ll
+1-1llvm/test/CodeGen/NVPTX/cache-hint-atomics.ll
+5-185 files

LLVM/project 5200600clang-tools-extra/include-cleaner/lib WalkAST.cpp, clang-tools-extra/include-cleaner/unittests WalkASTTest.cpp

[include-cleaner] Ensure receiver headers are kept when accessing ObjC properties (#212633)

When accessing Objective-C properties via dot-notation (e.g., obj.foo),
include-cleaner was previously only recording the usage of the property
itself or its underlying getter/setter methods. This could lead to cases
where the header declaring the receiver's type (Interface or Protocol)
was incorrectly flagged as unused if no other standard methods were
invoked on it.
DeltaFile
+304-6clang-tools-extra/include-cleaner/unittests/WalkASTTest.cpp
+13-2clang-tools-extra/include-cleaner/lib/WalkAST.cpp
+317-82 files

LLVM/project 9c121cdllvm/include/llvm/DebugInfo/DWARF DWARFExpressionPrinter.h, llvm/lib/DebugInfo/DWARF DWARFExpressionPrinter.cpp

[DebugInfo] Fix compact DWARF expression failure handling (#213391)

printDwarfExpressionCompact has two pre-existing failure paths that
silently produce bad output.

The register-name callback is optional, but the short DW_OP_reg* and
DW_OP_breg* paths call it directly, so a missing callback falls over.
Use resolveRegName for every register form and report an unknown
register only after both name-resolution paths fail.

DW_OP_entry_value has the same problem: it ignores a failed recursive
print, wraps the partial output in entry(...), and returns true. Print
entry-value subexpressions into a temporary buffer and propagate failure
before adding entry(...), so a failed subexpression can't come back as
successful output.

While here, GetRegName in llvm-objdump has a latent ordering issue: it
writes an unknown-register diagnostic as soon as target lookup misses,
even though resolveRegName can still decode an ASCII-packed

    [13 lines not shown]
DeltaFile
+109-55llvm/unittests/DebugInfo/DWARF/DWARFExpressionCompactPrinterTest.cpp
+50-0llvm/test/tools/llvm-objdump/ELF/ARM/debug-vars-ascii-packed-reg.s
+28-9llvm/lib/DebugInfo/DWARF/DWARFExpressionPrinter.cpp
+3-1llvm/include/llvm/DebugInfo/DWARF/DWARFExpressionPrinter.h
+1-2llvm/tools/llvm-objdump/SourcePrinter.cpp
+191-675 files

LLVM/project 3e9646alld/test/wasm shared-synthetic-symbols.s, lld/wasm Driver.cpp

[lld][WebAssembly] Allow linker-synthetic symbols to be undefine when building shared libraries (#153537)

Fixes: #103592
DeltaFile
+75-0lld/test/wasm/shared-synthetic-symbols.s
+21-10lld/wasm/Driver.cpp
+96-102 files

LLVM/project 54ee0d1llvm/lib/Target/AMDGPU GCNHazardRecognizer.h GCNHazardRecognizer.cpp, llvm/test/CodeGen/AMDGPU vperm-pk16-postmisched-hazard.mir vperm-pk16-sched-softcost.mir

[AMDGPU] Prefer a safe V_PERM_PK16 follower in the scheduler (gfx1250)

Stacked on the post-RA V_PERM_PK16 hazard fixup. V_PERM_PK16 must be
immediately followed by a "safe" instruction (see
SIInstrInfo::isVPermPk16SafeInstr) or the post-RA fixup has to insert a
forced-EXEC V_NOP. Teach GCNHazardRecognizer to bias a safe follower into
the slot right after a V_PERM_PK16 so that V_NOP can be avoided.

Assisted-by: Opus 4.8 Medium
DeltaFile
+56-0llvm/test/CodeGen/AMDGPU/vperm-pk16-sched-softcost.mir
+46-3llvm/lib/Target/AMDGPU/GCNHazardRecognizer.cpp
+33-0llvm/test/CodeGen/AMDGPU/vperm-pk16-postmisched-hazard.mir
+21-0llvm/lib/Target/AMDGPU/GCNHazardRecognizer.h
+156-34 files

LLVM/project 5194e33llvm/include/llvm/ExecutionEngine/Orc/RTBridge Calls.h, llvm/include/llvm/ExecutionEngine/Orc/RTBridge/SPS Calls.h

[ORC] Hoist Caller state into the base; add operator bool (#214483)

Move the ExecutionSession reference and callee address up from the SPS
implementation into the rt::Caller base, together with their constructor
and new executionSession() / calleeAddr() accessors. The named callers
(MainCaller, VoidVoidCaller, ...) become plain aliases of Caller rather
than subclasses, and rt::sps::Caller inherits the base constructor.

Add an explicit operator bool() reporting whether the caller has a
non-null callee address.

Give rt::sps::Caller::Create a SymbolLookupFlags parameter. Looking the
callee up as a weakly-referenced symbol now yields a caller with a null
callee (operator bool == false) when the symbol is absent, rather than
an error -- so callers for optional runtime functions can be constructed
and then tested for availability.

Adds SPSCallersTest coverage for operator bool and the accessors, and
for the required/weak x present/absent Create paths.
DeltaFile
+72-0llvm/unittests/ExecutionEngine/Orc/SPSCallersTest.cpp
+21-19llvm/include/llvm/ExecutionEngine/Orc/RTBridge/SPS/Calls.h
+27-7llvm/include/llvm/ExecutionEngine/Orc/RTBridge/Calls.h
+120-263 files

LLVM/project d50b994llvm/lib/Target/NVPTX NVPTXAsmPrinter.cpp, llvm/test/CodeGen/NVPTX fp128-global.ll

[NVPTX][AsmPrinter] Allow fp128 aggregate types in NVPTX backend (#214546)

Fixes an issue where aggregate types containing fp128 non-zero elements
would cause "unsupported type" due to missing case in bufferLEByte. Adds
fp128-global.ll test.
DeltaFile
+23-0llvm/test/CodeGen/NVPTX/fp128-global.ll
+1-0llvm/lib/Target/NVPTX/NVPTXAsmPrinter.cpp
+24-02 files

LLVM/project 8972983bolt/lib/Core Relocation.cpp, bolt/lib/Target/AArch64 AArch64MCSymbolizer.cpp AArch64MCPlusBuilder.cpp

[BOLT][AArch64] Add TLSGD relocations support (#213700)
DeltaFile
+11-1bolt/test/AArch64/runtime-relocs.test
+12-0bolt/lib/Core/Relocation.cpp
+4-0bolt/lib/Target/AArch64/AArch64MCPlusBuilder.cpp
+2-0bolt/lib/Target/AArch64/AArch64MCSymbolizer.cpp
+29-14 files

LLVM/project a02a843clang-tools-extra/clang-tidy add_new_check.py, clang-tools-extra/clang-tidy/tool check_alphabetical_order_test.py

pacify formatter
DeltaFile
+52-26clang-tools-extra/clang-tidy/tool/check_alphabetical_order_test.py
+4-2clang-tools-extra/clang-tidy/add_new_check.py
+56-282 files

LLVM/project 5d803a4clang-tools-extra/clang-tidy rename_check.py, clang-tools-extra/clang-tidy/tool check_alphabetical_order.py check_alphabetical_order_test.py

[docs] Fix MyST migration of clang-tools-extra/docs

Apply LLM-assisted cleanup on top of the mechanical rst2myst conversion:
- Add MyST frontmatter and Jinja2 substitution expressions to ReleaseNotes.md
  and ReleaseNotesTemplate.txt
- Convert {eval-rst}/.. option:: blocks to native :::{option} directives
- Fix garbled {program} role in clang-change-namespace.md
- Remove escaped hyphens (\-) from clang-doc.md bullet list
- Remove spurious 0\. escape in clang-include-fixer.md
- Remove trailing :: code-block introducers from pp-trace.md; add yaml
  language tag to all 31 YAML code fences in pp-trace.md
- Replace reference-style Markdown doxygen link in index.md with raw HTML
- Fix redirect_target angle brackets in clangd.md frontmatter
- Update Python tooling scripts to write Markdown-format release notes
- Convert ReleaseNotesTemplate.txt to MyST Markdown
DeltaFile
+98-135clang-tools-extra/clang-tidy/tool/check_alphabetical_order_test.py
+63-62clang-tools-extra/docs/pp-trace.md
+16-33clang-tools-extra/clang-tidy/tool/check_alphabetical_order.py
+18-19clang-tools-extra/clang-tidy/rename_check.py
+20-6clang-tools-extra/docs/ReleaseNotes.md
+16-7clang-tools-extra/docs/ReleaseNotesTemplate.txt
+231-2628 files not shown
+247-28614 files

LLVM/project 223afd9clang-tools-extra/docs clang-doc.md ReleaseNotes.md

[docs] Mechanically convert clang-tools-extra/docs to MyST using rst2myst

Run rst2myst on all 13 top-level .md files (renamed from .rst in the
prior change) and on ReleaseNotesTemplate.txt.
DeltaFile
+469-500clang-tools-extra/docs/pp-trace.md
+256-274clang-tools-extra/docs/clang-reorder-fields.md
+195-204clang-tools-extra/docs/clang-change-namespace.md
+149-137clang-tools-extra/docs/modularize.md
+67-98clang-tools-extra/docs/ReleaseNotes.md
+72-78clang-tools-extra/docs/clang-doc.md
+1,208-1,2918 files not shown
+1,441-1,54614 files

LLVM/project 606f7ddclang-tools-extra/docs clang-change-namespace.rst clang-change-namespace.md

[clang-tools-extra] Rename clang-tools-extra/docs/*.rst to *.md

Part of the migration of clang-tools-extra docs from reST to MyST Markdown.
Also update clang-tidy tooling scripts and tests that hard-code the
ReleaseNotes.rst path.

No content changes in this commit.
DeltaFile
+0-804clang-tools-extra/docs/pp-trace.rst
+804-0clang-tools-extra/docs/pp-trace.md
+0-423clang-tools-extra/docs/clang-reorder-fields.rst
+423-0clang-tools-extra/docs/clang-reorder-fields.md
+0-314clang-tools-extra/docs/clang-change-namespace.rst
+314-0clang-tools-extra/docs/clang-change-namespace.md
+1,541-1,54125 files not shown
+2,433-2,44331 files