[SandboxVec][LoadStoreVec] Support mixed-type load vectorization
Remove the restriction that every load in a top-level load chain must have the vector's element type. A chain of mixed types such as {i32, float} or {double, i32, i32} is loaded as a vector of integers (as chosen by VecUtils::getCombinedVectorTypeFor()), each original load is unpacked from the lanes it occupies, and then reinterpreted back to its own type with SameSizeReinterpret::reinterpretValue().
Chains involving a non-integral pointer are left alone, since such a pointer cannot be recovered from an integer lane.
SameSizeReinterpret is also used by createConstantVector() to pack constants of mixed types into a constant vector.
Co-authored-by: Cursor <cursoragent at cursor.com>
[SandboxVec][LoadStoreVec] Address review on mixed-type loads
Rename getLanesTypeFor to getSameBitWidthType and document that a wider
scalar spans several lanes. Drop the unused LoadInst cast, explain the
test data layout, and cover a reversed vector/scalar chain plus loads
with multiple uses.
Co-authored-by: Cursor <cursoragent at cursor.com>
[UniformityAnalysis] Fix missed temporal divergence when a cycle exits into another cycle (#243181)
In the current implementation of `propagateCycleExitDivergence`, the
outer-most cycle (from which temporal divergence is propagated) is found
by starting from the inner cycle, walking up its parent while the depth
of the cycle is greater than that of the exit block’s cycle.
This is only correct when every cycle (if any) that contains the exit
block also contains the branch. When the exit block is in a separate
loop, this is not correct, and can lead to mislabeling divergent
instructions as uniform - see the following example (corresponding IR in
the lit-test):
```c
void exit_into_next_loop(int n, bool c) {
int tid = workitem_id_x();
int o, i;
for (o = 0;; o++) { // outer (the actual outer-most cycle)
[19 lines not shown]
[TableGen] Start with default type set when inserting into new HwMode (#244367)
If inserting types from a new `HwMode` into a `TypeSetByHwMode`, the
type set corresponding to this new mode should contain the default
types.
This mirrors the implementation for `TypeSetByHwMode::constrain` just
below.
Pass the dataset of an SMB share to zfs_core
zfs_core:share_dataset lets smbd refuse a share whose dataset is not
mounted and keeps dataset auto-creation inside that dataset. It cannot
be set as an auxiliary parameter.
(cherry picked from commit 7ec0d2a0650c132ac23d574943c3df99f1df5428)
Pass the dataset of an SMB share to zfs_core
zfs_core:share_dataset lets smbd refuse a share whose dataset is not
mounted and keeps dataset auto-creation inside that dataset. It cannot
be set as an auxiliary parameter.
(cherry picked from commit 7ec0d2a0650c132ac23d574943c3df99f1df5428)
NAS-145377 / 28.0.0-BETA.1 / Pass the dataset of an SMB share to zfs_core (#20284)
zfs_core:share_dataset lets smbd refuse a share whose dataset is not
mounted and keeps dataset auto-creation inside that dataset. It cannot
be set as an auxiliary parameter.
kern: pwd_hold_proc() might dereference the NULL p_pd
pdunshare() calls pdescfree(), which stores NULL into p->p_pd, and only
then stores the new pwddesc. pwd_hold_proc() running in that window gets
NULL from pdhold() and dereferences it. pwd_hold_proc() assumed p_pd is
never NULL for a held process. Similarly, fork_norfproc() calls
pdescfree() before installing a new pwddesc for the current process
(rfork(RFCFDG) without RFPROC).
Close the gap with pdswap(), which publishes the new pwddesc before
releasing the old one.
Reported by: llm-postcr, markj
Reviewed by: markj
Fixes: 85c855d31b18 ("fd: add pwd_hold_proc")
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D61934
kern/kern_descrip.c: add pdswap() helper
It stores the new pwddesc into the target process's p_pd, then runs the
tail of pdescfree() on the old one.
Reviewed by: markj
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D61934
[AsmPrinter] Emit the data layout null value for null pointers
Currently `emitGlobalConstantImpl` emits a null pointer with `emitIntValue(0,
Size)`. This ignores the null value that the data layout can give an address
space (even though we have not reached the point where the ConstantPointerNull
can represent a real null pointer in certain address spaces), and `emitIntValue`
can only emit up to 8 bytes, so `llc` hits an assertion in `MCAsmStreamer` for a
null pointer of a wider address space in a global initializer, such as `ptr
addrspace(8) null` on AMDGPU. To be a little bit future proof, this PR emits the
null value of the data layout in the same way as an integer of the pointer size.
This PR was assisted by AI but I reviewed all the changes.
Emit wide constant expressions that lower to a constant
Fix the FIXMEs for `addrspacecast (ptr null ...)` to address spaces 8 and 9,
which hit the same assertion in the streamer, and test plain null in the other
address spaces. The fix makes `nullptr-long-address-spaces.ll` pass, so remove
it. Address space 7 has no test, because globals cannot contain buffer fat
pointers.
This PR was assisted by AI but I reviewed all the changes.
security/gnome-keyring: Restore HAVE_CMSGCRED lost in meson conversion
gnome-keyring 48.0 switched from autotools to meson and dropped the
setting of HAVE_CMSGCRED, which meant an unintended code-path was chosen
that broke communication in specific setups (i.e. mine, with using
pam_gnome_keyring.so and being in more than 1 group breaks the
LOCAL_CREDS fallback as it supplies a too small buffer).
Fix this, which also obsoletes the existing patch for that file.
This allows me to only enter my password once, instead of twice to
unlock the keyring for Firefox or Chromium when logging in via LightDM.
PR: 279669
Approved by: gnome (maintainer timeout)
Pull Request: https://github.com/freebsd/freebsd-ports/pull/671
[LifetimeSafety] Model an explicit `a.operator=(b)` call as an assignment (#244607)
`a.operator=(b)` is a member call rather than an operator call, so the
analysis treated it as an ordinary call and lost the stored borrow.
Share the operator= handling between the two spellings.
Assisted-by: Claude Opus 5.5
---------
Co-authored-by: Gabor Horvath <gaborh at apple.com>
Pass the dataset of an SMB share to zfs_core
zfs_core:share_dataset lets smbd refuse a share whose dataset is not
mounted and keeps dataset auto-creation inside that dataset. It cannot
be set as an auxiliary parameter.
[mlir][openacc] Anchor ACCComputeLowering to FunctionOpInterface (#245333)
In preparation to use the pass in the CIR/OpenACC pipeline, CIR uses
cir.func that implement the FunctionOpInterface so the pass is better
anchored on it than func.func.
[VectorCombine] Preserve access metadata when scalarizing extracted loads (#244123)
scalarizeLoadExtract replaces a vector load whose users are all
extractelement instructions with one scalar load per extracted lane. The
new loads get the alignment and the adjusted AA metadata of the original
load (see #153714 for the alias scope part), but !mmra, !nontemporal and
!mem.cache_hint were dropped.
These kinds describe the memory access itself rather than the loaded
type, and each scalar load accesses a part of the original memory, so
they apply to the new loads unchanged. The patch copies exactly these
three kinds; a full copyMetadata would also carry type-dependent
metadata such as !tbaa.struct over to variable-index lanes. The sibling
scalarizeLoadBitcast already copies all metadata.
The tests cover constant and variable extract indices.
A possible follow-up is to use copyMetadataForLoad here (with the AA
metadata recomputed per lane afterwards), so this fold picks up the
[6 lines not shown]