[MLIR] Move bitwise bounds into local arrays (NFC) (#221082)
Materialize bitwise-and and bitwise-or candidate bounds in fixed-size
arrays by moving local APInt values. This avoids initializer-list copies
before min/max inference.
Found by Coverity.
Assisted-by: Codex
[MLIR][SPIRV] Move deferred struct information into storage (NFC) (#221077)
Transfer the locally accumulated member and decoration information into
the deferred struct record when forward references require it.
Found by Coverity.
Assisted-by: Codex
[MLIR][XeGPU] Avoid copies in shape helpers (NFC) (#221080)
Pass shapes by reference to the read-only diagnostic formatter. Move
local shape vectors into the owning layout helper when they are no
longer needed.
Found by Coverity.
Assisted-by: Codex
[MLIR][linalg] Move transform options at their last use (NFC) (#221076)
Move locally assembled tiling and padding options into their owning
destinations at their last use. Remove a self-copy assignment around
setTileSizes while preserving its mutation.
Found by Coverity.
Assisted-by: Codex
[MLIR][GPU] Move XeVM pipeline options into passes (NFC) (#221074)
Move locally assembled pass options into pass constructors at their last
use. Keep the lane-layout options intact until the second propagation
pass, then move them as well.
Found by Coverity.
Assisted-by: Codex
[MLIR] Avoid copies in xor range inference (NFC) (#221083)
Borrow the input ranges and move local APInt values into bitwise
operations at their last use while computing varying-bit masks and
inferred xor bounds.
Found by Coverity.
Assisted-by: Codex
[MLIR][amdgpu] Pass descriptor adaptors by reference (NFC) (#221078)
Pass the descriptor adaptor (136-byte struct) by reference through the
tensor-dimension helper chain. These generated adaptors are read-only in
practice but expose non-const accessors, so use a non-const reference to
avoid copying them.
Found by Coverity.
Assisted-by: Codex
[lldb][debugserver] Don't overwrite the attach error with a hint (#220993)
When the attach fails with "unable to start the exception thread",
debugserver snprintf'd advice about checking Console.app over err_str,
destroying the real error before it reached both the packet sent to lldb
and the DNBLogError below it. That step can fail for reasons other than
a denied attach, so the hint replaced an authoritative error with a
guess.
[MLIR][IRDL] Move generated dialect strings into storage (NFC) (#221072)
Move locally assembled C++ names and namespace fragments into the
dialect string table. Their temporary strings are not used after the
table entry is built, so copying their allocations is unnecessary.
Found by Coverity.
Assisted-by: Codex
devstat: Fix a kernel stack disclosure
The 16-byte "device_name" field was not zero-filled, so could contain
uninitialized stack data. Zero the whole struct, as that's the
prevailing pattern for this kind of conversion code, and it's more
robust in the face of future revisions to struct devstat.
Approved by: re (cperciva)
Reviewed by: olce, kib
Reported by: Reo Shiseki
Fixes: a11d132f6c62 ("devstat: Provide 32-bit compatibility")
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D59309
(cherry picked from commit 7cb1a76f88158fb690418336b736e66c238cd4f7)
(cherry picked from commit 6e94e0734b9d3036df8c7d94d827f8eb1119905b)
[MLIR][OpenACC] Track compute region canonicalization updates (#221031)
The compute-region canonicalizations mutate block arguments, operands,
and the operand segment attribute. Route these updates through
modifyOpInPlace so pattern-rewriter listeners observe every mutation.
Assisted-by: Codex
[MLIR][GPU] Move ID-builder results into place (NFC) (#221071)
Move locally owned error strings, mapping IDs, and predicate operations
into IdBuilderResult at the end of each builder callback. These values
are not used after the return, so copying their storage is unnecessary.
Found by Coverity.
Assisted-by: Codex
[MLIR] Move affine range operands into inference helpers (NFC) (#221070)
Move recursively inferred ranges into fixed-size operand arrays before
calling arithmetic inference helpers. Initialize the affine modulo lower
bound directly instead of copying a local APInt.
Found by Coverity.
Assisted-by: Codex
[mlir][presburger] Move generating-function storage (NFC) (#221069)
Move by-value constructor parameters into the generating function and
move the locally accumulated term storage when returning a sum. Borrow
storage from lvalue getters, transfer it from mutable rvalue getters,
and preserve value semantics for const rvalues.
Found by Coverity.
Assisted-by: Codex
[MLIR][ODS] Default EnumAttr to angle-bracket assembly (#220608)
Make angle brackets the default assembly format for EnumAttr.
Use explicit enum directives where operations retain bare symbolic
syntax.
This is possible now because of the newly added `enum` directive in
#220412 ; which allows to use the raw enum value in the declarative
assembly format, preserving the ability for the enum to use `<` `>`
consistently in the generic form.
You can restore the previous behavior for a given enum attribute with:
```
let assemblyFormat = "$value";
```
Assisted-by: Codex
[Clang] Remove the old LLVM offloading driver entirely (#211924)
Summary:
The 'new' offloading driver is the unified set of steps to produce
merged host and device output. OpenMP offloading has used it by default
since Clang 13, CUDA since Clang 21, and HIP / SYCL since Clang 23. The
support has matured in the 23 release and should now cover the remaining
use-cases.
This PR completely removes the support so we stop needing to support
both when making updates to the driver.
[CIR] Widen memory effects for ABI-introduced argument memory
Both memory-effect sites in LowerToLLVM now check `arg_attrs` and add
argument memory, as classic does in `AddPotentialArgAccess`. Variadic
definitions widen too, since their parameters do not cover every
argument. CallConvLowering also carries `side_effect` across when it
rebuilds a call.
Assisted-by: Cursor / claude-opus-5
www/lycheeorg: Update to 7.8.3
* Add DIST_SUBDIR so that Lychee updates correctly when the distfile is
cached in ${DISTDIR}.
* Add missing intl dependency.
[PowerPC] Add PPC cost model support for partial reductions (#214760)
PPC has some multiply-add partial reduction instructions, for i8 and i16
elements. Provide cost info so the vectorizers can make use of them.