sysutils/legion: Update to 0.3.0
Install the PostgreSQL replication plugin, new in this release, as
libexec/legion/replication/postgres, and the new replication
documentation.
Changes: https://github.com/grepjava/legion/releases/tag/v0.3.0
PR: 301441
Sponsored by: Netzkommune GmbH
[LoongArch] Support memcmp expansion for vectors and combine for i128/i256 setcc (#167828)
This commit enables memcmp expansion for lsx/lasx. After doing
this, i128 and i256 loads which are illegal types on LoongArch
will be generated. Without process, they will be splited to
legal scalar type.
So this commit also enable combination for `setcc` to bitcast
i128/i256 types to vector types before type legalization and
generate vector instructions.
Inspired by x86 and riscv.
[RISCV] Add Gaisler GR765 scheduling model (#247610)
Add an instruction scheduling model for the Gaisler GR765. Based on
information in the GRLIB IP Core User's Manual, Version 2026, October
2026, and from measurements on the GR765 FPGA prototype.
https://download.gaisler.com/products/GRLIB/doc/grip.pdf
Assisted-by: Claude
[mlir][LLVM] Add an inherent strictfp attribute to FP intrinsic ops
In a function with strict floating-point semantics, LLVM requires every
call to carry the strictfp attribute. The floating-point intrinsic ops
had no way to express it, so a strictfp function could not mark their calls.
The FP intrinsic ops get an optional strictfp UnitAttr. LLVM_IntrOpBase
gets two empty strings, extraLlvmBuilder and extraMlirBuilder, that its
builders always include. The new class LLVM_IntrStrictfp fills them: the
export sets strictfp on the created call, and the import reads it back
from the call site. The constrained intrinsics do not get the attribute,
since their calls are always marked.
Assisted-by: Claude Code (Opus 5.5).
Fix test_directoryservices_idmap_cache disable tests on stable/27
Backport 8abba50b4f (NAS-144017) copied the unit test from master
unchanged. On master, directoryservices.update restarts idmap through
call_sync2, which the MagicMock middleware accepts. On stable/27, the
same step uses middleware.call_sync("service.control", ...). The fake
call_sync in the test rejects that method, so both tests that disable
an enabled service failed since the backport.
The product code is correct for stable/27. The fake call_sync now
returns a job mock for service.control.
Fix test_http_service_tnc after_reload and after_restart tests
Commit 94e1f5e766 (NAS-145415) made HttpService.after_restart and
after_reload reload the discovery service. They call
middleware.call("service.control", "RELOAD", "discovery", ...) and
await wait() on the returned job. The test mock returned None for
service.control, so both tests failed with "'NoneType' object has no
attribute 'wait'".
The product code is correct. It uses the same call shape as other
service.control callers on stable/27. The mock now returns a job for
service.control. The tests also assert the call and the wait.
The master fix (#20362) does not apply. Master calls service.control
through call2 with ServiceOptions, and stable/27 uses the legacy
middleware.call with a dict.
[MachineCSE] Keep instructions after an INLINEASM_BR in a block-local scope
Rejecting a subexpression after an INLINEASM_BR only when it was found
had several problems. Finding it could leave a commutable instruction
commuted without reporting a change, the rejected instruction then
shadowed an equivalent one in a dominating block, and checking for an
INLINEASM_BR before each candidate scanned its block again.
Put the instructions after the first INLINEASM_BR in a scope that ends
with the block instead, so the blocks it dominates never see them and
the rest of the block can still reuse them.
Assisted-by: Claude Opus 5.5
[clang][Sema] Fix access checking in nested concept-id substitution (#246811)
fixes #246008
Access-control failures during concept satisfaction are diagnosed as
SFINAE and recorded on the active `SFINAETrap`, but
`Sema::SubstTemplateArgumentsInParameterMapping` can still return
success. In
`ConstraintSatisfactionChecker::SubstitutionInTemplateArguments`, the
trap was only checked when substitution returned failure. As a result, a
private-member access used in a nested concept-id argument could be
ignored, and the enclosing concept could be incorrectly satisfied.
Check `Trap.hasErrorOccurred()` after parameter-mapping substitution and
consume the SFINAE diagnostic, matching the existing atomic-constraint
handling.
Signed-off-by: Shashwat Agrawal <shashwatagrawal473 at gmail.com>
[mlir][LLVM] Add an inherent strictfp attribute to FP intrinsic ops
In a function with strict floating-point semantics, LLVM requires every
call to carry the strictfp attribute. The floating-point intrinsic ops
had no way to express it, so a strictfp function could not mark their calls.
The FP intrinsic ops get an optional strictfp UnitAttr. LLVM_IntrOpBase
gets two empty strings, extraLlvmBuilder and extraMlirBuilder, that its
builders always include. The new class LLVM_IntrStrictfp fills them: the
export sets strictfp on the created call, and the import reads it back
from the call site. The constrained intrinsics do not get the attribute,
since their calls are always marked.
Assisted-by: Claude Code (Opus 5.5).
[ValueTracking] Infer signed comparisons through bitwise OR and AND operations (#219132)
Fixes #212382
Teach ValueTracking that
- `X | Y s> -1 -> X s> -1 && Y s> -1`
- `X & Y s< 0 -> X s< 0 && Y s< 0`
Resolves the missed optimization where the division can be converted to
a logical right shift.
[CMake] Propagate generated headers through link dependencies
llvm_add_library made each object library depend on every PUBLIC entry
of LINK_LIBS as a whole target so that their generated headers existed
before it compiled. That missed PRIVATE and transitive dependencies and
made compilation wait for unrelated archives.
TableGen targets are now marked LLVM_GENERATED_HEADER_TARGET, and a
library publishes the marked targets in its DEPENDS through the
transitive compile property LLVM_GENERATED_HEADERS. Every library with
an object library gets a <name>.headers utility target that depends on
the evaluated closure, and obj.<name> depends on it. The
add_dependencies loop is removed for all subprojects.
"$<COMPILE_ONLY:Lib>" in LINK_LIBS uses Lib's headers without linking
it; llvm_add_library keeps such items out of exports. A directly
compiled library gets a .headers target only when LINK_LIBS has such an
item; llvm_add_generated_header_bridge() covers items added later.
[12 lines not shown]
[CMake] Migrate CIR and Flang generated-header dependencies
Replace CIR's mlir-headers dependencies and Flang's global MLIR library
lists with their actual library dependencies. Let owners provide
generated headers through the link graph, and remove duplicate ordering
dependencies on foreign IncGen targets.
Declare CIR interface and header ownership explicitly. Keep source
shards, bytecode tables and lowering tables private to their consumers.
Scope accumulated TableGen variables and keep implementation-only
lowering tables out of Clang's global TableGen aggregate.
Include only the dialects and conversion passes registered by Flang.
Preserve the supported registrations and retain MLIR_DEPS for downstream
compatibility. Use compile-only owner links for header-only
dependencies.
Assisted-by: Codex
[MLIR][CMake] Stop depending on mlir-generic-headers by default
Remove the default mlir-generic-headers dependency from ordinary and
example libraries, and migrate their generated-interface requirements to
library owners. Keep the compatibility aggregate and registrations.
MLIRIR now owns MLIRInferIntRangeInterfaceIncGen, which Matchers.h
includes. Add the Transform/Interfaces generator-to-generator
dependency. MLIRDialectUtils switches from MLIRArithOpsIncGen to
COMPILE_ONLY:MLIRArithDialect because ReshapeOpsUtils.h includes
Arith.h.
Extend the release note and aggregate regression test.
Assisted-by: Codex
[MLIR][CMake] Stop depending on mlir-headers by default
Remove the default mlir-headers dependency from the dialect, conversion,
extension, and translation library helpers. Keep the aggregate target,
its registrations, and explicit compatibility dependencies available.
Replace redundant foreign generator edges with actual library links or
compile-only header owners. Add generator-to-generator add_dependencies
edges when one generated header includes another. Add regression
coverage that rejects an implicit dependency on the aggregate.
Add a release note explaining downstream migration, the temporary
DEPENDS mlir-headers fallback, and clean generated-file dependency
audits.
Assisted-by: Codex