LLVM/project 5b45596 — clang/test/CodeGenHLSL/builtins WaveMultiPrefixSum.hlsl, clang/test/SemaHLSL/BuiltIns WaveMultiPrefixSum-errors.hlsl

first attempt

Co-authored-by: Copilot <223556219+Copilot at users.noreply.github.com>
Copilot-Session: 40997c2f-5aaa-41c6-8d1f-3e2e9ada315f
DeltaFile
+147-0llvm/test/CodeGen/SPIRV/hlsl-intrinsics/WaveMultiPrefixSum.ll
+113-0clang/test/CodeGenHLSL/builtins/WaveMultiPrefixSum.hlsl
+81-0llvm/test/CodeGen/DirectX/WaveMultiPrefixSum.ll
+56-0clang/test/SemaHLSL/BuiltIns/WaveMultiPrefixSum-errors.hlsl
+15-0llvm/lib/Target/DirectX/DXIL.td
+14-0llvm/include/llvm/IR/IntrinsicsDirectX.td
+426-011 files not shown
+511-517 files

LLVM/project e5a2c7e — llvm/lib/Target/DirectX DXILFinalizeLinkage.h DXILTranslateMetadata.h

[𝘀𝗽𝗿] initial version

Created using spr 1.3.7
DeltaFile
+181-157llvm/lib/Target/DirectX/DXILPrepare.cpp
+138-99llvm/lib/Target/DirectX/DXContainerGlobals.cpp
+142-6llvm/lib/Target/DirectX/DirectX.h
+33-12llvm/lib/Target/DirectX/DXContainerPDB.cpp
+0-43llvm/lib/Target/DirectX/DXILTranslateMetadata.h
+0-38llvm/lib/Target/DirectX/DXILFinalizeLinkage.h
+494-35541 files not shown
+591-83947 files

LLVM/project ebc35db — llvm/lib/Target/DirectX DirectXPassRegistry.def DXILFinalizeLinkage.h

[𝘀𝗽𝗿] changes to main this commit is based on

Created using spr 1.3.7

[skip ci]
DeltaFile
+181-157llvm/lib/Target/DirectX/DXILPrepare.cpp
+138-99llvm/lib/Target/DirectX/DXContainerGlobals.cpp
+135-4llvm/lib/Target/DirectX/DirectX.h
+0-43llvm/lib/Target/DirectX/DXILTranslateMetadata.h
+0-38llvm/lib/Target/DirectX/DXILFinalizeLinkage.h
+19-17llvm/lib/Target/DirectX/DirectXPassRegistry.def
+473-35837 files not shown
+542-81743 files

FreeBSD/src a377d25 — lib/libexpat libbsdxml.3 expat_config.h

libexpat: cath up with import of expat 2.10.0

Update expat_config.h and the libbsdxml(3) manpage to reflect the most
recent import.

MFC after:      3 days
MFC with:       765f30b9f3af
DeltaFile
+3-3lib/libexpat/expat_config.h
+2-2lib/libexpat/libbsdxml.3
+5-52 files

LLVM/project 61bd0c9 — llvm/lib/Analysis ReplayInlineAdvisor.cpp, llvm/test/Transforms/SampleProfile inline-replay-indirect.ll

[ReplayInlineAdvisor] Don't crash on indirect calls (#237859)

getAdviceImpl uses CB.getCalledFunction() without a null check, so
-sample-profile-inline-replay crashes when a replayed function has an
indirect call. Remarks only name direct callees, so treat indirect calls
as having no replay decision.
DeltaFile
+45-0llvm/test/Transforms/SampleProfile/inline-replay-indirect.ll
+6-0llvm/test/Transforms/SampleProfile/Inputs/inline-replay-indirect.prof
+3-2llvm/lib/Analysis/ReplayInlineAdvisor.cpp
+1-0llvm/test/Transforms/SampleProfile/Inputs/inline-replay-indirect.txt
+55-24 files

LLVM/project 5a0ec23 — llvm/lib/Target/DirectX DirectXPassRegistry.def DXILFinalizeLinkage.h

[𝘀𝗽𝗿] initial version

Created using spr 1.3.7
DeltaFile
+181-157llvm/lib/Target/DirectX/DXILPrepare.cpp
+138-99llvm/lib/Target/DirectX/DXContainerGlobals.cpp
+135-4llvm/lib/Target/DirectX/DirectX.h
+0-43llvm/lib/Target/DirectX/DXILTranslateMetadata.h
+0-38llvm/lib/Target/DirectX/DXILFinalizeLinkage.h
+19-17llvm/lib/Target/DirectX/DirectXPassRegistry.def
+473-35837 files not shown
+542-81743 files

LLVM/project 938aefb — llvm/lib/Target/DirectX DXILPrettyPrinter.h DirectXPassRegistry.def

[𝘀𝗽𝗿] changes to main this commit is based on

Created using spr 1.3.7

[skip ci]
DeltaFile
+181-157llvm/lib/Target/DirectX/DXILPrepare.cpp
+127-2llvm/lib/Target/DirectX/DirectX.h
+0-43llvm/lib/Target/DirectX/DXILTranslateMetadata.h
+0-38llvm/lib/Target/DirectX/DXILFinalizeLinkage.h
+18-17llvm/lib/Target/DirectX/DirectXPassRegistry.def
+0-34llvm/lib/Target/DirectX/DXILPrettyPrinter.h
+326-29136 files not shown
+393-71442 files

LLVM/project 0c14e5a — lldb/include/lldb/Host/common NativeProcessProtocol.h, lldb/source/Plugins/Process/gdb-remote LLDBServerAcceleratorPlugin.h GDBRemoteCommunicationServerLLGS.h

[lldb] Add server support for jLLDBSettings (#237356)

This is a followup to  client side support landed in #229179. 
This adds the corresponding handlers and support on the  lldb-server.


Tests
- Added the tests with Mock plugin.
DeltaFile
+23-0lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp
+15-0lldb/test/API/accelerator/mock/TestMockAcceleratorActions.py
+13-0lldb/source/Plugins/Process/gdb-remote/LLDBServerAcceleratorPlugin.h
+13-0lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.h
+2-1lldb/include/lldb/Host/common/NativeProcessProtocol.h
+1-1lldb/tools/lldb-server/Plugins/Accelerator/Mock/ProcessMockAccelerator.h
+67-23 files not shown
+70-29 files

LLVM/project e9e50ea — llvm/test/CodeGen/PowerPC sink-down-more-instructions-1.mir, llvm/test/CodeGen/RISCV/rvv vmv.v.v-peephole.mir rvv-peephole-vmerge-to-vmv.mir

Join short wrapped RUN lines

Removing -verify-machineinstrs shortened these RUN lines enough to fit
on a single line of at most 100 columns.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply at anthropic.com>
DeltaFile
+1-2llvm/test/CodeGen/SystemZ/machinesink-dead-cc.mir
+1-2llvm/test/CodeGen/RISCV/rvv/vmv.v.v-peephole.mir
+1-2llvm/test/CodeGen/RISCV/rvv/rvv-peephole-vmerge-to-vmv.mir
+1-2llvm/test/CodeGen/PowerPC/sink-down-more-instructions-1.mir
+4-84 files

LLVM/project 0e2730f — llvm/test/CodeGen/RISCV/rvv vmv.v.v-peephole.mir rvv-peephole-vmerge-to-vmv.mir, llvm/test/CodeGen/SystemZ machinesink-dead-cc.mir

Restore indentation of wrapped RUN line continuations

Removing -verify-machineinstrs from the start of a continuation line
also dropped its indentation.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply at anthropic.com>
DeltaFile
+1-1llvm/test/CodeGen/SystemZ/machinesink-dead-cc.mir
+1-1llvm/test/CodeGen/RISCV/rvv/vmv.v.v-peephole.mir
+1-1llvm/test/CodeGen/RISCV/rvv/rvv-peephole-vmerge-to-vmv.mir
+3-33 files

LLVM/project 71c88ce — llvm/test/CodeGen/AArch64 misched-sort-resource-in-trace.mir, llvm/test/CodeGen/AMDGPU lower-term-opcodes.mir llvm.amdgcn.cvt.fp8.dpp.mir

CodeGen: Remove -verify-machineinstrs from llc -passes MIR tests

With the new pass manager, -verify-machineinstrs does not add a
verifier after each pass; only -verify-each does. Bizarrely, instead
it suppresses the verifier llc runs at the end of the pipeline, so
removing it enables verification of the output. This is probably a
bug, but I think the plan is to replace this flag in the new PM
anyway.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+3-3llvm/test/CodeGen/X86/apx/flags-copy-lowering.mir
+2-2llvm/test/CodeGen/X86/apx/ndd-false-deps.mir
+2-2llvm/test/CodeGen/RISCV/prefer-w-inst.mir
+2-2llvm/test/CodeGen/AMDGPU/lower-term-opcodes.mir
+2-2llvm/test/CodeGen/AMDGPU/llvm.amdgcn.cvt.fp8.dpp.mir
+2-2llvm/test/CodeGen/AArch64/misched-sort-resource-in-trace.mir
+13-1368 files not shown
+81-8174 files

LLVM/project ad76109 — llvm/test/CodeGen/AArch64 machine-outliner-2fixup-blr-terminator.mir madd-combine.mir, llvm/test/CodeGen/PowerPC DisableHoistingDueToBlockHotnessNoProfileData.mir

Restore indentation of wrapped RUN line continuations

Removing -verify-machineinstrs from the start of a continuation line
also dropped its indentation. Join the RUN line when it fits in 80
columns, otherwise restore the original indentation.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply at anthropic.com>
DeltaFile
+5-5llvm/test/CodeGen/AArch64/madd-combine.mir
+4-4llvm/test/CodeGen/PowerPC/DisableHoistingDueToBlockHotnessNoProfileData.mir
+2-4llvm/test/CodeGen/RISCV/tlsdesc-call-fallthrough.mir
+2-2llvm/test/CodeGen/RISCV/GlobalISel/instruction-select/trap.mir
+2-2llvm/test/CodeGen/RISCV/GlobalISel/instruction-select/rvv/anyext.mir
+1-2llvm/test/CodeGen/AArch64/machine-outliner-2fixup-blr-terminator.mir
+16-1942 files not shown
+58-6748 files

LLVM/project 892a668 — llvm/test/CodeGen/LoongArch merge-base-offset-fold-large-offset-debug.mir, llvm/test/CodeGen/RISCV stack-probing-frame-setup.mir

Join short wrapped RUN lines

Removing -verify-machineinstrs shortened these RUN lines enough to fit
on a single line of at most 100 columns.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply at anthropic.com>
DeltaFile
+2-6llvm/test/CodeGen/RISCV/GlobalISel/regbankselect/fp-ext-trunc.mir
+2-6llvm/test/CodeGen/RISCV/GlobalISel/regbankselect/fp-arith.mir
+2-4llvm/test/CodeGen/RISCV/stack-probing-frame-setup.mir
+2-4llvm/test/CodeGen/RISCV/GlobalISel/instruction-select/trap.mir
+1-3llvm/test/CodeGen/RISCV/GlobalISel/regbankselect/fcmp-rv32.mir
+1-3llvm/test/CodeGen/LoongArch/merge-base-offset-fold-large-offset-debug.mir
+10-2667 files not shown
+77-16573 files

LLVM/project 77a89e9 — llvm/test/CodeGen/AMDGPU neighboring-mfma-padding.mir, llvm/test/CodeGen/X86 expand-false-deps.mir compress-false-deps.mir

CodeGen: Remove -verify-machineinstrs from single -run-pass MIR tests

Since #228248 / 66366908, llc verifies MIR output by default. MIR
inputs were always verified so for an llc invocation running exactly
one pass with -run-pass, the -verify-machineinstrs flag does nothing
so these flags are pointless. We should more aggressively trim
-verify-machineinstrs uses in the future, but this covers the cases
that don't change behavior. This removal was performed by generated
script.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+17-17llvm/test/CodeGen/X86/bls-false-deps.mir
+16-16llvm/test/CodeGen/X86/bitcnt-false-deps.mir
+13-13llvm/test/CodeGen/X86/expand-false-deps.mir
+13-13llvm/test/CodeGen/X86/compress-false-deps.mir
+11-11llvm/test/CodeGen/AMDGPU/neighboring-mfma-padding.mir
+8-8llvm/test/MachineVerifier/AMDGPU/writelane_m0.mir
+78-782,168 files not shown
+3,268-3,2692,174 files

LLVM/project a5b10b1 — llvm/include/llvm/IR RuntimeLibcallsImpl.td

RuntimeLibcalls: Describe vector FuncArgTypes by element type and count (#237489)

Define the vector libcall argument types from an element type and
count. Derive the matching integer and mask vector types from them
instead of spelling each one out.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+18-12llvm/include/llvm/IR/RuntimeLibcallsImpl.td
+18-121 files

LLVM/project 4f7e135 — llvm/lib/IR RuntimeLibcalls.cpp, llvm/test/Transforms/Util/DeclareRuntimeLibcalls sleef-riscv.ll sleef.ll

RuntimeLibcalls: Use element alignment for vector libcall out pointers (#237486)

The pointer arguments of the vector modf, sincos and sincospi functions
are linear pointers to the scalar element type (e.g. the l4 in
_ZGVnN4vl4l4_sincosf), not pointers to the vector type. Only the element
alignment is guaranteed, so stop declaring them with the ABI alignment
of the vector.

---------

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+12-12llvm/test/Transforms/Util/DeclareRuntimeLibcalls/sleef.ll
+12-12llvm/test/Transforms/Util/DeclareRuntimeLibcalls/armpl.ll
+15-1llvm/lib/IR/RuntimeLibcalls.cpp
+6-6llvm/test/Transforms/Util/DeclareRuntimeLibcalls/sleef-riscv.ll
+45-314 files

LLVM/project cfd786d — llvm/test/Transforms/Util/DeclareRuntimeLibcalls arm.ll systemz.ll

RuntimeLibcalls: Add signatures for more runtime functions (#237483)

Add type missing signatures for assorted functions which were missing
type information.

---------

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+474-474llvm/test/Transforms/Util/DeclareRuntimeLibcalls/aarch64.ll
+305-305llvm/test/Transforms/Util/DeclareRuntimeLibcalls/ppc.ll
+279-279llvm/test/Transforms/Util/DeclareRuntimeLibcalls/bsd.ll
+276-276llvm/test/Transforms/Util/DeclareRuntimeLibcalls/windows.ll
+198-198llvm/test/Transforms/Util/DeclareRuntimeLibcalls/systemz.ll
+192-192llvm/test/Transforms/Util/DeclareRuntimeLibcalls/arm.ll
+1,724-1,72411 files not shown
+2,947-2,93317 files

LLVM/project 4e26cc1 — llvm/include/llvm/IR BundleAttributes.h, llvm/lib/Analysis ValueTracking.cpp

[ValueTracking] Make use of range bundle assumptions (#237761)

This is an initial patch to support the new `range` assume bundle.
Follow-up patches will add support in other parts of LLVM.
DeltaFile
+63-0llvm/test/Analysis/ValueTracking/assume.ll
+23-2llvm/lib/Analysis/ValueTracking.cpp
+12-0llvm/lib/IR/BundleAttributes.cpp
+8-0llvm/include/llvm/IR/BundleAttributes.h
+106-24 files

FreeBSD/ports 87fa8dc — editors/openoffice-4 Makefile, editors/openoffice-devel Makefile

editors/openoffice-*: system lucene cleanup

Delete the remaining remnants of the system lucene dependency.

Reported by:    Ronald Klop <ronald-lists at klop.ws>

(cherry picked from commit 117941ee407dec8c0b40a926a3cad2de45fa3029)
DeltaFile
+1-12editors/openoffice-devel/Makefile
+1-12editors/openoffice-4/Makefile
+2-242 files

LLVM/project 8b67ac3 — clang/test/CodeGenHLSL/builtins WaveMultiPrefixProduct.hlsl, clang/test/SemaHLSL/BuiltIns WaveMultiPrefixProduct-errors.hlsl

first attempt

Co-authored-by: Copilot <223556219+Copilot at users.noreply.github.com>
Copilot-Session: 40997c2f-5aaa-41c6-8d1f-3e2e9ada315f
DeltaFile
+147-0llvm/test/CodeGen/SPIRV/hlsl-intrinsics/WaveMultiPrefixProduct.ll
+113-0clang/test/CodeGenHLSL/builtins/WaveMultiPrefixProduct.hlsl
+81-0llvm/test/CodeGen/DirectX/WaveMultiPrefixProduct.ll
+56-0clang/test/SemaHLSL/BuiltIns/WaveMultiPrefixProduct-errors.hlsl
+18-1llvm/lib/Target/DirectX/DXIL.td
+14-0llvm/test/CodeGen/DirectX/WaveMultiPrefixProduct_errors.ll
+429-111 files not shown
+516-417 files

FreeBSD/ports e7b9094 — multimedia/dovi_tool Makefile Makefile.crates

multimedia/dovi_tool: Update to 2.3.4

Changelog: https://github.com/quietvoid/dovi_tool/releases/tag/2.3.4

PR:             300240
Reported by:    Michiel van Baak Jansen <michiel at vanbaak.eu> (maintainer)
DeltaFile
+101-145multimedia/dovi_tool/distinfo
+49-71multimedia/dovi_tool/Makefile.crates
+2-3multimedia/dovi_tool/Makefile
+152-2193 files

FreeBSD/src 765f30b — contrib/expat Changes, contrib/expat/lib entities.h xmlparse.c

contrib/expat: import expat 2.10.0

Changes: https://github.com/libexpat/libexpat/blob/R_2_10_0/expat/Changes

Security:       CVE-2026-115506
Security:       CVE-2026-117610
Security:       CVE-2026-118370
MFC after:      3 days
DeltaFile
+731-138contrib/expat/lib/xmlparse.c
+246-0contrib/expat/tests/entities_tests.c
+180-1contrib/expat/tests/misc_tests.c
+99-0contrib/expat/lib/entities.h
+89-0contrib/expat/Changes
+48-15contrib/expat/tests/basic_tests.c
+1,393-15428 files not shown
+1,641-19234 files

LLVM/project 1dbeaaf — lld/MachO SyntheticSections.cpp, lld/MachO/Arch ARM64.cpp

Address nocchijiang's feedback: use needsBinding for class stub loads
DeltaFile
+10-0lld/test/MachO/arm64-objc-class-stubs.s
+4-4lld/MachO/Arch/ARM64.cpp
+3-0lld/MachO/SyntheticSections.cpp
+17-43 files

LLVM/project eea46c1 — llvm/test/CodeGen/AArch64 misched-sort-resource-in-trace.mir, llvm/test/CodeGen/AMDGPU lower-term-opcodes.mir llvm.amdgcn.cvt.fp8.dpp.mir

CodeGen: Remove -verify-machineinstrs from llc -passes MIR tests

With the new pass manager, -verify-machineinstrs does not add a
verifier after each pass; only -verify-each does. Bizarrely, instead
it suppresses the verifier llc runs at the end of the pipeline, so
removing it enables verification of the output. This is probably a
bug, but I think the plan is to replace this flag in the new PM
anyway.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+3-3llvm/test/CodeGen/X86/apx/flags-copy-lowering.mir
+2-2llvm/test/CodeGen/X86/apx/ndd-false-deps.mir
+2-2llvm/test/CodeGen/RISCV/prefer-w-inst.mir
+2-2llvm/test/CodeGen/AMDGPU/lower-term-opcodes.mir
+2-2llvm/test/CodeGen/AMDGPU/llvm.amdgcn.cvt.fp8.dpp.mir
+2-2llvm/test/CodeGen/AArch64/misched-sort-resource-in-trace.mir
+13-1368 files not shown
+81-8174 files

LLVM/project 55cbac3 — llvm/test/CodeGen/AMDGPU neighboring-mfma-padding.mir, llvm/test/CodeGen/X86 expand-false-deps.mir compress-false-deps.mir

CodeGen: Remove -verify-machineinstrs from single -run-pass MIR tests

Since #228248 / 66366908, llc verifies MIR output by default. MIR
inputs were always verified so for an llc invocation running exactly
one pass with -run-pass, the -verify-machineinstrs flag does nothing
so these flags are pointless. We should more aggressively trim
-verify-machineinstrs uses in the future, but this covers the cases
that don't change behavior. This removal was performed by generated
script.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+17-17llvm/test/CodeGen/X86/bls-false-deps.mir
+16-16llvm/test/CodeGen/X86/bitcnt-false-deps.mir
+13-13llvm/test/CodeGen/X86/expand-false-deps.mir
+13-13llvm/test/CodeGen/X86/compress-false-deps.mir
+11-11llvm/test/CodeGen/AMDGPU/neighboring-mfma-padding.mir
+8-8llvm/test/MachineVerifier/AMDGPU/writelane_m0.mir
+78-782,168 files not shown
+3,268-3,2692,174 files

LLVM/project c55a5cf — llvm/lib/Target/AMDGPU SIInstrInfo.h SIShrinkInstructions.cpp, llvm/test/CodeGen/AMDGPU shrink-instructions-fold-imm-subreg.mir

AMDGPU: Fold global address into subregister use with lo/hi relocation

Split 64-bit relocations into the 32-bit halves when applying a
subregister extract, similar to how immediates are modified when
folding. The same split is applied when 64-bit mov pseudos are
expanded.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+64-42llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
+14-9llvm/lib/Target/AMDGPU/SIShrinkInstructions.cpp
+5-8llvm/test/CodeGen/AMDGPU/shrink-instructions-fold-imm-subreg.mir
+9-0llvm/lib/Target/AMDGPU/SIInstrInfo.h
+92-594 files

LLVM/project 37da773 — mlir/include/mlir/TableGen Format.h, mlir/lib/TableGen Format.cpp

[mlir][tblgen] Finish checked formatting migration through PDLL

Register parsed TableGen source buffers before processing imported
records. Format the predicate before wrapping it in the generated
success return, and propagate failure without appending an invalid
declaration.

Adapt shared formatting messages to PDLL diagnostics. Anchor the primary
at the import in the main document so LSP publishes it, and retain the
constraint definition, multiclass instantiations, and nested PDLL import
locations as notes. Formatting errors return through the parser and
leave the language server alive for subsequent edits.

Deprecate pointer-taking factories, lazy object types, PHKind shims, and
the unchecked summary helper while retaining compatibility behavior.
Migrate successful format tests and suppress warnings locally around
intentional legacy tests. Document recoverable import errors in the PDLL
reference.


    [10 lines not shown]
DeltaFile
+98-25mlir/lib/Tools/PDLL/Parser/Parser.cpp
+78-21mlir/unittests/TableGen/FormatTest.cpp
+79-0mlir/test/mlir-pdll-lsp-server/format-errors.test
+78-0mlir/test/mlir-pdll/Parser/format-errors.pdll
+18-5mlir/include/mlir/TableGen/Format.h
+7-0mlir/lib/TableGen/Format.cpp
+358-513 files not shown
+371-519 files

LLVM/project 93f77a2 — mlir/docs/DefiningDialects Operations.md, mlir/lib/TableGen CodeGenHelpers.cpp

[mlir][tblgen] Check substitutions throughout code generation

Migrate generator and shared-verifier emission to eager fatal formatting
with template-definition origins and operation use notes. Synthesized
properties without a record fall back to the operation location.
Speculative attribute and property uniquing now consumes checked errors
and falls back to inline verification. Keep value-specific bindings
local to their verifier.

Add checked summary-expression formatting that retains the escaped
segment and propagates its owned error to the source diagnostic
boundary. Expose reference-taking tgfmt and tgfmtv overloads returning
Expected, retain transition aliases, and document formatting semantics
and diagnostics in the existing ODS guide.

Escape literal dollars in a test builder comment, and keep the nested
matcher error test focused on its intended invalid DAG. Add regression
coverage for shared and inline constraints, summaries, attribute
templates, interface templates, and the reference-taking API.

    [7 lines not shown]
DeltaFile
+163-78mlir/tools/mlir-tblgen/OpDefinitionsGen.cpp
+196-0mlir/test/mlir-tblgen/format-substitution-errors.td
+104-67mlir/tools/mlir-tblgen/AttrOrTypeFormatGen.cpp
+109-57mlir/tools/mlir-tblgen/OpFormatGen.cpp
+107-30mlir/lib/TableGen/CodeGenHelpers.cpp
+90-0mlir/docs/DefiningDialects/Operations.md
+769-23212 files not shown
+1,014-29718 files

LLVM/project 4158f50 — mlir/include/mlir/TableGen CodeGenHelpers.h, mlir/lib/TableGen CodeGenHelpers.cpp Format.cpp

[mlir][tblgen] Diagnose substitution failures at their source

Render owned formatting errors as source-aware messages, preserving
inner definition origins, use sites, and multiclass location arrays.
Consume every error payload before printing and terminating so joined
errors and their notes are not lost.

Add eager fatal wrappers for generator boundaries and use them for trait
predicates. Missing substitutions now fail in TableGen with the
template, failed occurrences, and available bindings instead of
generating bad C++. Snapshot the trait context before value verifiers
add temporary bindings, so an inline attribute check cannot accidentally
bind $_self for a trait.

Share message construction between generic logging and source
diagnostics. Use portable death-test expressions and handle invalid
success payloads defensively at the fatal-reporting boundary.

Validation: 74 TableGen unit tests and all 69 mlir-tblgen lit tests

    [7 lines not shown]
DeltaFile
+128-2mlir/unittests/TableGen/FormatTest.cpp
+81-27mlir/lib/TableGen/Format.cpp
+60-0mlir/test/mlir-tblgen/op-error.td
+42-0mlir/lib/TableGen/CodeGenHelpers.cpp
+27-1mlir/include/mlir/TableGen/CodeGenHelpers.h
+10-4mlir/tools/mlir-tblgen/OpDefinitionsGen.cpp
+348-341 files not shown
+361-347 files

LLVM/project 8314c96 — mlir/include/mlir/TableGen Format.h, mlir/lib/TableGen Format.cpp

[mlir][tblgen] Add checked formatting with owned substitution errors

Add tgfmtChecked and tgfmtvChecked, validating all placeholders before
rendering and returning owned FmtError payloads on failure. Retain
failed occurrences, available substitutions, and provenance for
diagnostic users.

Unify builtin and custom binding storage: addSubst("_self", ...) now
aliases withSelf(), including consistent last-registration-wins
behavior. Parse positional indices as decimal, so $010 means 10 instead
of 8 and $08 means 8 instead of reaching an unreachable path.
Unrepresentable indices become checked errors or legacy markers instead
of assertions.

Keep the legacy API lazy, including observing later context mutations.
The compatibility PHKind entry points remain until caller migration.

Validation: 66 TableGen unit tests; unchecked Expected arguments
rejected by the compiler. Include snapshot logging and typed error

    [5 lines not shown]
DeltaFile
+226-2mlir/unittests/TableGen/FormatTest.cpp
+167-28mlir/lib/TableGen/Format.cpp
+128-26mlir/include/mlir/TableGen/Format.h
+521-563 files