LLVM/project f955db5 — clang/docs ReleaseNotes.md ClangFormatStyleOptions.md, clang/include/clang/Format Format.h

[clang-format] Add anonymous namespace indentation option (#244933)

Add IndentAnonymousNamespaces to control whether clang-format indents
the contents of anonymous namespaces.

When disabled, anonymous namespaces do not add an indentation level,
while named namespaces continue to follow NamespaceIndentation.

Fixes #221584

---------

Signed-off-by: Arnab Sarkar <arnab at 28arnab.com>
DeltaFile
+22-0clang/unittests/Format/FormatTest.cpp
+11-1clang/include/clang/Format/Format.h
+12-0clang/docs/ClangFormatStyleOptions.md
+6-1clang/lib/Format/UnwrappedLineParser.cpp
+2-0clang/unittests/Format/ConfigParseTest.cpp
+2-0clang/docs/ReleaseNotes.md
+55-21 files not shown
+56-27 files

LLVM/project 47865dd — llvm/lib/Target/AArch64 AArch64PrologueEpilogue.cpp, llvm/test/CodeGen/AArch64 chkstk.ll

[aarch64][win] Fix large-model stack probe unwind info (#247376)

Account for every instruction emitted by `MOVaddrEXT` when describing a
large-code-model `__chkstk` call. Set the page and page-offset
relocation modifiers so the generated assembly also assembles. Cover
direct object emission and the assembly round trip.

Assisted-by: GPT-6.2 Sol
DeltaFile
+12-8llvm/lib/Target/AArch64/AArch64PrologueEpilogue.cpp
+10-5llvm/test/CodeGen/AArch64/chkstk.ll
+22-132 files

LLVM/project da52104 — llvm/lib/Target/AArch64 AArch64PrologueEpilogue.cpp, llvm/test/CodeGen/AArch64 trampoline.ll

[aarch64][win] Describe x15 preservation around stack probes (#247378)

Preserving a live x15 around `__chkstk` emits two instructions that do
not change the unwind state. Add a `.seh_nop` for each so the prologue
length matches its unwind recipe.

Assisted-by: GPT-6.2 Sol
DeltaFile
+8-2llvm/lib/Target/AArch64/AArch64PrologueEpilogue.cpp
+3-0llvm/test/CodeGen/AArch64/trampoline.ll
+11-22 files

FreeBSD/doc 767d063 — documentation/static/pgpkeys rlibby.key

pgpkeys: update key expiry for rlibby@
DeltaFile
+105-77documentation/static/pgpkeys/rlibby.key
+105-771 files

OpenZFS/src 6a38552 — module/os/freebsd/zfs zfs_vfsops.c, module/os/linux/zfs zfs_dir.c zfs_vnops_os.c

Allow unmounting after zfs_resume_fs() fails

If zfs_resume_fs() fails after a rollback or receive, the filesystem
is meant to stay mounted but unusable until it's unmounted. Instead:

- On Linux, it can't be unmounted, so its pool can't be exported:
  - Reading /proc/self/mounts fails with EIO, for every process,
    since zpl_show_devname() can't enter the filesystem. umount(8),
    "zfs unmount" and "zpool export" all read it.
  - Unmounting waits forever for z_all_znodes to drain.
    zfs_suspend_fs() took an extra reference on every inode, and
    only the success path of zfs_resume_fs() drops it.
  - Writing back a dirty page leaves it locked, as zfs_putpage()
    returns without unlocking it when it can't enter the filesystem.
    Unmounting then hangs when it locks the page.
  - On debug builds, unmounting fails an assertion in
    zfs_unlinked_drain_stop_wait() that the filesystem isn't
    unmounted yet.
- On FreeBSD, the rollback or receive hangs. zfs_resume_fs() calls

    [16 lines not shown]
DeltaFile
+21-2module/os/linux/zfs/zfs_vfsops.c
+12-10module/os/freebsd/zfs/zfs_vfsops.c
+8-4module/os/linux/zfs/zpl_super.c
+3-1module/os/linux/zfs/zfs_vnops_os.c
+2-1module/os/linux/zfs/zfs_dir.c
+46-185 files

FreeBSD/src f801db3 — share/man/man4 Makefile

share/man/man4: do not install if_vte.4 symlink

Fixes:      2a625956abb1 ("vte: Remove the vte(4) driver")
Sponsored by:   The FreeBSD Foundation
DeltaFile
+0-1share/man/man4/Makefile
+0-11 files

OpenZFS/src c11564a — tests/unit test_namecheck.c

unit/namecheck: cover the anymirror and anyraid pool names

Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Reviewed-by: Tony Hutter <hutter2 at llnl.gov>
Signed-off-by: Christos Longros <longros at FreeBSD.org>
Closes #19897
DeltaFile
+2-0tests/unit/test_namecheck.c
+2-01 files

LLVM/project 450a8d0 — llvm/include/llvm/DebugInfo/MSF MSFBuilder.h, llvm/lib/DebugInfo/MSF MSFBuilder.cpp

[MSF] Consolidate checks for IsGrowable in the MSFBuilder into growFreeBlocks (#247308)

Follow-up to #233563, now that we have a single function that grows the
builder, this is the correct place to check and enforce `IsGrowable`.

Assisted-by: GPT-6.2 Sol
DeltaFile
+11-16llvm/lib/DebugInfo/MSF/MSFBuilder.cpp
+21-1llvm/unittests/DebugInfo/MSF/MSFBuilderTest.cpp
+8-11llvm/include/llvm/DebugInfo/MSF/MSFBuilder.h
+40-283 files

OpenZFS/src 6eea9e9 — module/zfs dmu_send.c

dmu_send: free the resume nvlist when setup_resume_points() fails

dmu_send_impl() allocates the nvl that carries the resume points
early, but the error path after setup_resume_points() jumps to out
without freeing it.  The raw-send error path right below frees nvl
before taking the same goto, so this path is just missing the same
call.  The leak is reached whenever a resumed or book-resumed send
fails there, e.g. from an invalid resume token.

Reviewed-by: Matthew Ahrens <matt at mahrens.org>
Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Signed-off-by: HeonJe Lee <lhjnano at gmail.com>
Closes #19941
DeltaFile
+3-1module/zfs/dmu_send.c
+3-11 files

OpenZFS/src 5ec313a — lib/libzfs libzfs_sendrecv.c

libzfs: free the deleted nvlist on error paths in recv_incremental

recv_incremental_replication() allocates the deleted nvlist before
gathering the local dataset list, but two error paths leave it behind:
the gather_nvlist() failure path returns immediately and the recursive
destroy/rename case -1 path frees the other two structures and
returns without it.  Normal completion frees it at the end of the
function, so add the same free to both paths.

Reviewed-by: Matthew Ahrens <matt at mahrens.org>
Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Signed-off-by: HeonJe Lee <lhjnano at gmail.com>
Closes #19950
DeltaFile
+4-1lib/libzfs/libzfs_sendrecv.c
+4-11 files

LLVM/project e0ef8fb — clang/lib/CIR/Lowering/DirectToLLVM LowerToLLVM.cpp, llvm/lib/Target/Hexagon HexagonGlobalSchedulerV2.cpp

Merge branch 'main' into nvptx-targetparser-comdat
DeltaFile
+5,269-0llvm/lib/Target/Hexagon/HexagonGlobalSchedulerV2.cpp
+1,922-0mlir/test/Dialect/X86/vector-contract-16bit-fp-to-fma.mlir
+0-1,425mlir/test/Dialect/X86/vector-contract-bf16-to-fma.mlir
+722-262llvm/test/Transforms/LoopUnroll/RISCV/outer-loop-unroll-threshold.ll
+953-0llvm/test/Transforms/LoopVectorize/any-of-non-cmp-cond.ll
+850-66clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.cpp
+9,716-1,7531,973 files not shown
+82,792-19,4601,979 files

LLVM/project ca838f4 — llvm/lib/Transforms/Scalar GVN.cpp, llvm/test/Transforms/GVN cond_br.ll

fixup! [GVN] Extend processFoldableCondBr to support switch
DeltaFile
+1-5llvm/test/Transforms/GVN/cond_br.ll
+1-4llvm/lib/Transforms/Scalar/GVN.cpp
+2-92 files

OpenZFS/src c421048 — tests/zfs-tests/tests/functional/deadman deadman_sync.ksh

ZTS: make deadman_sync wait for the deadman events

deadman_sync delays every write by 10s, sleeps 10s after writing the
file, clears the delay, and expects at least 3 deadman events.  The
deadman starts checking 5s into the txg sync, once a second, and posts
an event when a write has been outstanding for more than 5s, so the
sleep leaves about 4 or 5 checks that can post.

c979ead156 ("ZTS: avoid rate limiting consecutive deadman checks", by
ooonea) stopped the rate limiter dropping checks that land just under
a second apart, the cause of the FreeBSD "2 found" failures.  A stalled
VM can still miss the checks inside the fixed window: a Linux CI runner
counted 0 after its "sleep 10" took 16s.

Keep the delay in place until at least 3 deadman events for the pool
have been posted, for up to 30s: while it is in place every write the
sync issues takes 10s, so the txg stays hung for as long as the test
waits.  Three events normally take about 13s, so the bound still fails
a deadman that checks far less often than once a second.  Then clear

    [4 lines not shown]
DeltaFile
+25-8tests/zfs-tests/tests/functional/deadman/deadman_sync.ksh
+25-81 files

OpenZFS/src 1f6eb68 — tests/zfs-tests/tests/functional/redundancy redundancy_draid_spare1.ksh

ZTS: wait for dRAID unspare after clearing a device

wait_resilvered can accept the previous sequential rebuild after
clearing the original device. The verification scrub can then start
before the pending healing resilver and compare the restored device with
its spare.

Wait for the first distributed spare to become available before running
the verification scrub. Keep the existing 300-second bound and checks.

Assisted-by: OpenAI Codex
Reviewed-by: Matthew Ahrens <matt at mahrens.org>
Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Reviewed-by: Tony Hutter <hutter2 at llnl.gov>
Signed-off-by: Giuseppe Piscitelli <ooonea at gmail.com>
Closes #19888
DeltaFile
+1-1tests/zfs-tests/tests/functional/redundancy/redundancy_draid_spare1.ksh
+1-11 files

OpenZFS/src e89ecf4 — tests/zfs-tests/tests/functional/cli_root/zpool_add zpool_add.cfg, tests/zfs-tests/tests/functional/cli_root/zpool_destroy zpool_destroy.cfg

Fix some integration tests with more than 3 disks in DISKS

If the DISKS variable contains more than 3 elements, the
zpool_remove_003_pos and zpool_add_002_pos test will both fail because
they will assign the DISK2 variable a value like "vtbd3 vtbd4 vtbd5",
complete with spaces, leading to an invalid "zpool remove" or "zpool
add" command line.  Fix the tests by correctly assigning the variable.
Apply the same fix to the zpool_destroy directory too, even though it
doesn't currently cause any failures there.

Reviewed-by: Matthew Ahrens <matt at mahrens.org>
Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Signed-off-by: Alan Somers <asomers at gmail.com>
Sponsored-by: ConnectWise
Closes #19880
DeltaFile
+1-1tests/zfs-tests/tests/functional/cli_root/zpool_remove/zpool_remove.cfg
+1-1tests/zfs-tests/tests/functional/cli_root/zpool_destroy/zpool_destroy.cfg
+1-1tests/zfs-tests/tests/functional/cli_root/zpool_add/zpool_add.cfg
+3-33 files

LLVM/project 5b0365d — clang/test/OpenMP num_threads_num_teams_thread_limit_implicit_conversion.cpp

Make tests more specific
DeltaFile
+15-9clang/test/OpenMP/num_threads_num_teams_thread_limit_implicit_conversion.cpp
+15-91 files

LLVM/project 77ec70f — lldb/source/Target SectionLoadList.cpp, lldb/unittests/Target CMakeLists.txt SectionLoadListTest.cpp

[lldb] Don't erase another section's entry in SetSectionLoadAddress (#245829)

SetSectionLoadAddress removes a moved section's entry at its old load
address from m_addr_to_sect. Since #193560 it erases whatever entry is
at that address. If another section was loaded at that address after the
moved section, the entry is that other section's, and erasing it leaves
that section with no entry: addresses in its range no longer resolve,
although GetSectionLoadAddress still returns its load address. The
linear scan that #193560 replaced only ever erased an entry of the moved
section.

Erase the old entry only if it still maps to the moved section.

Add unit tests for SectionLoadList, which had none: moving a section,
moving it onto an address another section holds, a section taking over
another's address, and unloading. SectionTakesOverAddress fails without
this change.

Assisted-by: Claude Code
DeltaFile
+165-0lldb/unittests/Target/SectionLoadListTest.cpp
+8-3lldb/source/Target/SectionLoadList.cpp
+1-0lldb/unittests/Target/CMakeLists.txt
+174-33 files

LLVM/project b3a6bf6 — llvm/lib/Target/AMDGPU AMDGPULowerIntrinsics.cpp, llvm/test/CodeGen/AMDGPU async-lds-offset-split-gfx1250.ll promote-constOffset-to-imm-gfx12.ll

[AMDGPU] Flush LDS before async strore from LDS

Fixes: ROCM-33926
DeltaFile
+255-1llvm/test/CodeGen/AMDGPU/llvm.amdgcn.global.store.async.from.lds.ll
+162-65llvm/test/CodeGen/AMDGPU/asyncmark-stage.ll
+128-0llvm/test/CodeGen/AMDGPU/llvm.amdgcn.tensor.load.store.ll
+60-13llvm/test/CodeGen/AMDGPU/promote-constOffset-to-imm-gfx12.ll
+68-0llvm/test/CodeGen/AMDGPU/async-lds-offset-split-gfx1250.ll
+47-0llvm/lib/Target/AMDGPU/AMDGPULowerIntrinsics.cpp
+720-792 files not shown
+754-798 files

LLVM/project 6bf642f — flang/test/Lower/OpenMP declare-variant-metadirective-context.f90 declare-variant-spec-expr.f90

Strengthen the construct context tests

The METADIRECTIVE checks in declare-variant-metadirective-context.f90
bounded the construct depth only from above. Add a second METADIRECTIVE
to bare_do, combined and target_depth that selects TASKYIELD unless the
context holds the DO, PARALLEL followed by DO, or three constructs,
respectively. Use kind(host) instead of kind(cpu), which is not set for
every host architecture.

declare-variant-spec-expr.f90 had no call that selects the PARALLEL
variant, so removing that variant did not fail the test. Add one inside
PARALLEL, and check for the variant only in the procedures that must not
call it.
DeltaFile
+20-8flang/test/Lower/OpenMP/declare-variant-spec-expr.f90
+18-7flang/test/Lower/OpenMP/declare-variant-metadirective-context.f90
+38-152 files

LLVM/project af2024e — clang/lib/Sema SemaDecl.cpp SemaDeclAttr.cpp, clang/test/CodeGen pragma-weak.c

Revert "[Clang][Sema] Accept weak reference after declaration (#228809)"

This reverts commit 6573dd3f1ae96ae2a40475bfba235c041ad812d1.
DeltaFile
+0-47clang/test/Sema/pragma-weak.c
+0-37clang/test/CodeGen/pragma-weak.c
+6-29clang/lib/Sema/SemaDeclAttr.cpp
+2-19clang/test/SemaCXX/pragma-weak.cpp
+0-13clang/lib/Sema/SemaDecl.cpp
+0-12clang/test/CodeGenCXX/pragma-weak.cpp
+8-1572 files not shown
+8-1668 files

LLVM/project 2b0e2fb — llvm/include/llvm/Analysis LoopAccessAnalysis.h, llvm/lib/Analysis LoopAccessAnalysis.cpp

[LAA] Check for any scalable access type, not just scalable vectors (#247805)

getStrideFromAddRec and tryToCreateDiffCheck only rejected scalable
vector access types. Other types with a scalable size, like
target("aarch64.svcount") or aggregates of scalable vectors, then had
their size converted to a fixed value, which crashes.

Use isScalableTy() instead.
DeltaFile
+138-0llvm/test/Analysis/LoopAccessAnalysis/scalable-sized-access-type.ll
+2-2llvm/lib/Analysis/LoopAccessAnalysis.cpp
+2-2llvm/include/llvm/Analysis/LoopAccessAnalysis.h
+142-43 files

LLVM/project 33d0a7a — clang/docs ClangFormatStyleOptions.md, clang/include/clang/Format Format.h

[clang-format] Restore InsertBraces around interior preprocessor directives (#239459)

Restore brace insertion when a body's closing-brace position is safe in
every preprocessor branch, without moving it past `#endif`.

Follow-up to #224947.
DeltaFile
+150-1clang/unittests/Format/BracesInserterTest.cpp
+100-19clang/lib/Format/UnwrappedLineParser.cpp
+3-1clang/include/clang/Format/Format.h
+3-1clang/docs/ClangFormatStyleOptions.md
+2-0clang/lib/Format/UnwrappedLineParser.h
+258-225 files

LLVM/project b9bf446 — mlir/lib/Dialect/Linalg/Transforms DecomposeLinalgOps.cpp, mlir/test/Dialect/Linalg decompose-ops.mlir

[mlir][Linalg] Fix output block arg remapping in DecomposeLinalgOp (#238168)

`DecomposeLinalgOp` splits a `linalg.generic` into a peeled op for the
first statement and a residual op for the rest. The residual op takes
the results of the peeled op as extra inputs, placed between the
original inputs and outputs, but uses of the original block arguments
are remapped by position. An output block argument used in the residual
body therefore ends up on one of the extra inputs.

For an f32 body like `%0 = arith.mulf %in, %in` followed by `%1 =
arith.addf %0, %out`, the residual op computes `addf(%0, %0)` instead of
`addf(%0, %out)`. The IR verifies and silently computes wrong values.
When the types differ the IR becomes invalid instead, e.g. the fold
assertion in #237535. The existing `destination_passing_style` test
encoded the same wrong mapping: its residual `mulf` read the first
output instead of the second one.

Shift the output block argument indices by the number of extra inputs,
correct the `destination_passing_style` checks, and add a regression

    [2 lines not shown]
DeltaFile
+53-10mlir/test/Dialect/Linalg/decompose-ops.mlir
+8-1mlir/lib/Dialect/Linalg/Transforms/DecomposeLinalgOps.cpp
+61-112 files

LLVM/project e593ecd — llvm/include/llvm/Frontend/OpenMP OMPContext.h, llvm/lib/Frontend/OpenMP OMPContext.cpp

Skip non-construct directives in getConstructTraits

getConstructTraits returned an invalid placeholder, which counts as an
enclosing construct for scoring, for every leaf that was neither
informational nor listed explicitly. That included stand-alone
directives such as BARRIER, declarative directives such as DECLARE
TARGET, and SCAN, ERROR and BEGIN METADIRECTIVE. Only executable
directives with an associated block or loop are constructs, so skip all
other leaves. This also covers the cases that were listed explicitly.

OMPContext::addTrait with an invalid property set an active trait
instead of recording a construct, which would let variants with unknown
traits apply. Assert that callers use addUnknownConstruct instead.

Flang drops the placeholders before building a context, so neither
change affects variant selection yet.
DeltaFile
+4-7llvm/lib/Frontend/OpenMP/OMPContext.cpp
+7-2llvm/unittests/Frontend/OpenMPContextTest.cpp
+5-2llvm/include/llvm/Frontend/OpenMP/OMPContext.h
+16-113 files

LLVM/project 7814099 — clang/docs ReleaseNotes.md, clang/include/clang/Lex PPEmbedParameters.h

Fix __has_embed with a limit larger than the file (#247349)

`__STDC_EMBED_FOUND__`, not `__STDC_EMBED_EMPTY__` when using
`__has_embed`. Also factor the calculation so that it is shared between
`#embed` (which was already correct) and `__has_embed` (which was
broken).

Fixes #247344
DeltaFile
+1-22clang/lib/Lex/PPMacroExpansion.cpp
+6-17clang/lib/Lex/PPDirectives.cpp
+17-0clang/include/clang/Lex/PPEmbedParameters.h
+6-0clang/test/Preprocessor/embed___has_embed.c
+1-0clang/docs/ReleaseNotes.md
+31-395 files

LLVM/project 1db8856 — llvm/test/CodeGen/AArch64/Atomics aarch64-atomic-store-v8a.ll aarch64-atomic-store-v8_1a.ll

[AArch64] Update test generator script for atomics

Update the test generator script to generate tests for atomic fp stores
where the value being stored is a constant positive zero. This case
differs from rest of the fp stores because of the fact that positive
zero is same as integer zero which can benefit from use of zero register
from GPR bank.
DeltaFile
+160-3llvm/test/CodeGen/AArch64/Atomics/aarch64-atomic-store-lse2_lse128.ll
+160-3llvm/test/CodeGen/AArch64/Atomics/aarch64-atomic-store-lse2.ll
+160-0llvm/test/CodeGen/AArch64/Atomics/aarch64-atomic-store-v8a.ll
+160-0llvm/test/CodeGen/AArch64/Atomics/aarch64-atomic-store-v8_1a.ll
+160-0llvm/test/CodeGen/AArch64/Atomics/aarch64-atomic-store-rcpc3.ll
+160-0llvm/test/CodeGen/AArch64/Atomics/aarch64-atomic-store-rcpc.ll
+960-69 files not shown
+2,087-1515 files

LLVM/project e846897 — llvm/docs/CommandGuide llvm-strings.md, llvm/tools/llvm-strings llvm-strings.cpp

Apply review feedback
DeltaFile
+2-2llvm/tools/llvm-strings/llvm-strings.cpp
+1-1llvm/docs/CommandGuide/llvm-strings.md
+3-32 files

OpenZFS/src 2e2de2f — tests/runfiles common.run, tests/zfs-tests/tests Makefile.am

ZTS: test txg cost and atomicity of batch snapshot destroy

lzc_destroy_snaps() promises that a batch is all-or-nothing and that
every failing snapshot is reported, and a batch has historically cost
one txg sync.  Nothing in ZTS checks either, so the per-snapshot
sync-task loop added by 1cec121afb broke both without a test failing.

zfs_destroy_batch_txg destroys 50 snapshots in one call and requires
at most 5 txg syncs; the per-snapshot loop costs 50.

zfs_destroy_batch_errlist holds two of five snapshots, destroys all
five in one batch, and requires that none is destroyed and both held
snapshots are reported.  It also checks that a missing name in a batch
is ignored.

Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Signed-off-by: Prakash Surya <prakash.surya at perforce.com>
Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
Closes #19865
DeltaFile
+103-0tests/zfs-tests/tests/functional/cli_root/zfs_destroy/zfs_destroy_batch_errlist.ksh
+85-0tests/zfs-tests/tests/functional/cli_root/zfs_destroy/zfs_destroy_batch_txg.ksh
+2-1tests/runfiles/common.run
+2-0tests/zfs-tests/tests/Makefile.am
+192-14 files

OpenZFS/src 8175350 — contrib/pyzfs/libzfs_core/test test_libzfs_core.py, module/zfs dsl_destroy.c

dsl: preserve atomic batch snapshot destruction

dsl_destroy_snapshots_nvl() promises that a failed batch destroys no
snapshots, but it runs and waits for one sync task per member.  A later
failure can therefore leave earlier snapshots destroyed, and only the
first failure is reported.

Use one sync task for the complete batch.  Check every admitted snapshot
and collect its error before applying any destruction under the same
config-writer lock.  Preserve absent snapshots, deferred destruction,
and task-level errors.

Add order-sensitive coverage for held snapshots, complete error
reporting, absent members, and adjacent snapshot chains.

Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Reviewed-by: Prakash Surya <prakash.surya at perforce.com>
Signed-off-by: Kamil Monicz <kamil at monicz.dev>
Closes #19865
DeltaFile
+67-19module/zfs/dsl_destroy.c
+69-0contrib/pyzfs/libzfs_core/test/test_libzfs_core.py
+136-192 files

LLVM/project e942bef — mlir/include/mlir/TableGen CodeGenHelpers.h, mlir/lib/TableGen CodeGenHelpers.cpp

[mlir][tblgen] Fix attr constraints that use $_op (#244902)

[mlir][tblgen] Fix attr constraints that use $_op

Uniqued attribute constraints referencing `$_op` fail to compile:
mlir-tblgen expands the predicate inside the `emitError`
overload (introduced in 5e118f933b65), which has no `op` parameter.

Since `verifyInherentAttrs` already skips these constraints, emit only
the `Operation *` overload for them and share the `$_op` check through
`constraintReferencesOp`.

Property constraints have the same bug (left for a follow-up).

Fixes #69789.
DeltaFile
+36-5mlir/lib/TableGen/CodeGenHelpers.cpp
+24-7mlir/test/mlir-tblgen/constraint-unique.td
+21-0mlir/test/IR/attribute.mlir
+11-0mlir/test/lib/Dialect/Test/TestOps.td
+2-3mlir/tools/mlir-tblgen/OpDefinitionsGen.cpp
+2-0mlir/include/mlir/TableGen/CodeGenHelpers.h
+96-156 files