[GVN] Bail out on atomic loads in select availability checks (#249333)
An atomic load through a select cannot be replaced with values from
other loads, as atomic loads can only be forwarded from stores in this
case.
As a result, we bail out on atomic loads in the select availability
checker to prevent miscompilation.
Assisted-by: Claude # Test
[VPlan] Don't record uses by ephemeral recipes in register usage. (#249512)
calculateRegisterUsageForPlan skips ephemeral recipes, but still records
their operands as uses, keeping values live until the assume. Skip them
entirely.
[VPlan] Keep multiplier type when unrolling WideActiveLaneMask. (#249513)
unrollBlock replaces the multiplier of WideActiveLaneMask with UF as a
constant of the canonical IV type. The lane mask blending reductions
used on uncountable early exits uses the type of FirstActiveLane (i64)
for its multiplier, which crashed with "scalar type of new operand must
match the old operand" for narrower canonical IVs, e.g. i32.
Create the UF constant with the type of the existing multiplier.
[CIR][OpenMP] Add support for OpenMP reduction clause
This patch adds support for the OpenMP reduction clause on the teams and for
directives for reductions with built-in identifiers on local scalar integer and
floating-point variables. Other cases, such as user-defined reductions,
modifiers, arrays and globals, are reported as not yet implemented.
Assisted-by: Cursor / Claude Opus 5.5 Medium
[CIR][OpenMP] Add support for 'distribute parallel for' with 'target teams'
Adds support for handling the full '[target] teams distribute parallel for'.
Introduces setting the omp.composite attibute for the 'distribute parallel for'
composite construct.
Assisted-by: Cursor / Claude Sonnet 5 High
[CIR][OpenMP] Add initial support for distribute
This patch adds initial support for the OpenMP 'distribute' directive. Basic
code generation for the standalone and combined cases is introduced. Support
for clauses will be added in the future. The composite 'teams distribute
parallel for' form will be added in a subsequent patch.
Assisted-by: Cursor / Claude Sonnet 5 High
[CIR][OpenMP] Add support for omp teams (#231982)
[CIR][OpenMP] Add support for omp teams
This patch adds support for the OpenMP 'teams' directive, both
standalone
and as the combined `target teams` construct. isCombinableLeaf now also
recognizes teams, so an explicitly-nested `target` + `teams` pair gets
the same omp.combined marking as the combined case.
Assisted-by: Cursor / Claude Sonnet 5 High
{devel/lib,multimedia/}aravis: Update 0.8.36 => 0.8.37
Changelog:
- gigevision: validate pending acknowledgements, use the loopback
interface for local cameras, more cameras on the legacy endianness
lists.
- usb3vision: check libusb return values.
- arv-tool: new force-ip command.
- viewer: 14 bit packed Bayer formats.
- use monotonic time throughout.
- several fixes in the GStreamer plugin (not built by these ports).
- the documentation has a new page for the GStreamer plugin, added to
the DOCS part of the libaravis pkg-plist.
https://github.com/AravisProject/aravis/blob/0.8.37/NEWS.md
PR: 301567
[mlir][CAPI][Python] Switch fallback models to CallbackModelRegistry
Second part of #249519. Switches the C API fallback models
(`ConditionallySpeculatableOpInterfaceFallbackModel`,
`MemoryEffectOpInterfaceFallbackModel`,
`TransformOpInterfaceFallbackModel` and
`PatternDescriptorOpInterfaceFallbackModel`) to use the
`CallbackModelRegistry` dialect interface, and renames them to
`*CallbackModel`. The models are now stateless and trivially
destructible.
The callbacks' `destruct` now runs when the context is destroyed, so
destroying the context in Python releases the Python classes attached
to its operations. The Python bindings now increases the reference
count in `construct`, which runs only if the attach succeeds.
Assisted-by: Claude Code
[NFC][InstSimplify] Add a test for ptrtoint of a GEP on a cast of null
`ConstantFoldCastOperand` folds `ptrtoint (gep (addrspacecast null), x)` to `x`,
although the value of a cast of null depends on the target.
[ConstantFolding] Do not fold ptrtoint of a GEP on a cast of null
`ConstantFoldCastOperand` folds `ptrtoint (gep null, x)` to `x`. It finds the
GEP base with `stripAndAccumulateConstantOffsets`, which also looks through
`addrspacecast`, so the fold assumes that a cast of null to another address
space is null too (with the current meaning of null, both are zero). But
`addrspacecast (ptr null to ptr addrspace(N))` is not necessarily `ptr
addrspace(N) null`: on AMDGPU, `addrspacecast (ptr null to ptr addrspace(3))` is
the LDS null pointer, 0xFFFFFFFF, so `ptrtoint (gep (addrspacecast null), x)` is
`x - 1`, not `x`. This PR only folds when the null base is in the address space
of the GEP. The fold still assumes that null is the zero address, which holds
for all in-tree data layouts.
This PR was assisted by AI but I reviewed all the changes.