[ABI] Add IndirectAliased kind to abi::ArgInfo (#225005)
Changes:
- Mirror `clang::CodeGen::ABIArgInfo::IndirectAliased:` an indirect
argument whose pointer may alias an object referenced elsewhere and is
never byval.
- Add the kind, a `getIndirectAliased` factory, an `isIndirectAliased`
predicate, and widens the indirect align/addrspace/realign accessors to
both kinds.
- Add unit tests in FunctionInfoTest.
Relates to : https://github.com/llvm/llvm-project/issues/220471
Assisted by: claude opsu 4.8
[LTO] Add PassBuilderCallback to Config (#224896)
This allows LTO backend to register PassBuilder extension point
callbacks, mirroring the existing PreCodeGenPassesHook.
[ABI] Hoist isSingleElementStruct into TargetInfo and fix array reduction (#224994)
Changes:
- Move `isSingleElementStruct` from `X86_64TargetInfo` into the shared
`TargetInfo` base so other targets can reuse it, and restore the
`isAggregateTypeForABI` guard from classic CodeGen so a multi-element
array field no longer reduces (e.g. struct { short a[2]; } stays i32
instead of [2 x i16]).
- Add unit tests for the reduction in to new test file `TargetInfoTest`.
Relates to : https://github.com/llvm/llvm-project/issues/220471
Assisted by: claude opus 4.8
build: seed /etc/sudoers as mode 0440
sudo refuses a sudoers file that is not 0440 ("is mode 0644, should be
0440"), and git stores nextbsd-overlays' copy as 0644, so the image's
sudo from NextBSD-contrib could not load its policy. Same fix as
overlays' seed.sh and nextbsd-userland's assemble-image.sh.
Co-Authored-By: Claude Fable 5.1 <noreply at anthropic.com>
[RISCV][MC] Prioritize features in MultiMismatchFallback (#215737)
Add the `PrioritizeFeatureInMultipleNearMisses` AsmParser option and
enable it for RISCV.
When an instruction has both missing features and multiple invalid
operands, prioritize the feature entry when populating `MultiMismatchFallback` so
that diagnostics identify the missing extension.
Keep the existing `MultiMismatchFallback` behavior unchanged for targets
that do not enable the option.
This change was assisted by AI.
[Option] Remove OPTTABLE_STR_TABLE_CODE (#224822)
Its two users read OptionStrTable to spell an option. The unittest now
compares option IDs. lldb prepends '-' to the name it reads, which has
been the prefixed name since 501f92d34382 (2023), so it passes
"--mmacos-version-min=<ver>", which the driver rejects and drops; spell
it with the driver option table instead.
Aided by Opus 5
drm/amdkfd: Properly acquire queue buffers in CRIU restore
From David Francis
c6c290e408fe328e091f0bf7502a42b0deea82e9 in linux-6.18.y/6.18.53
20a5e7ffdfecddc34c60a6b4483f42acf3d8731d in mainline linux
Move record content to TLSv1.2 record layer.
This allows us to simplify the opening of records and will enable
further development that makes the record layer self-contained,
matching the TLSv1.3 record layer.
For now, provide an accessor that allows the record content to be
accessed from outside of the record layer - we'll remove this in
the future.
ok joshua@ tb@
drm/amdgpu: Use system unbound workqueue for soft IH ring
From Timur Kristof
34c20c79e2a4dc906d2f74d102ff5066ff1cadaf in linux-6.18.y/6.18.53
ba2977dcce72127986fbad76c4c67f134e2f69ae in mainline linux
drm/amdkfd: check find_first_zero_bit before __set_bit on kfd->doorbell_bitmap
From Xiaogang Chen
a7a2333f45b15e57ddbd14edd56e367fdcb9b163 in linux-6.18.y/6.18.53
516bf737a5602875f6c28d1028967837c8edf2c0 in mainline linux
drm/amdkfd: Let driver decide buffer size at AMDKFD_IOC_GET_DMABUF_INFO ioctl
From Xiaogang Chen
2d9fd0f01550aab4a0a1984b4379e50545906248 in linux-6.18.y/6.18.53
8242a8d9d7194d5ef8a8b38a5621ca0966a3ec15 in mainline linux
drm/amdkfd: Unwind debug trap enable on copy_to_user failure
From Yongqiang Sun
1b39f46eec2f907417d4955bb88434170f94a8d8 in linux-6.18.y/6.18.53
01112e241e37f9ac98b6f418d93ce2e0b87b7ee0 in mainline linux
drm/amdkfd: fix SMI event cross-process information leak
From Yongqiang Sun
5bb2dfa65d8da83e87b2a31c270bc567df69a5ca in linux-6.18.y/6.18.53
92a8dba246d371fe268280e5fd74b0955688e6df in mainline linux
drm/amdgpu/ras: add ras_suspend callback and use it for cp_ecc_error_irq
From Yunxiang Li
001824103f2fe6ffd2380afddf81f43b446035b2 in linux-6.18.y/6.18.53
e3829992dd9fa0a82511af4f01733fc854cd15a5 in mainline linux
Rename handshakes and handshake_count.
Rename handshakes to tls13_handshakes and handshake_count to
tls13_handshake_count, so that we can add equivalent for tls12.
ok joshua@ tb@
[Transforms] Maintain uniformity profile hints across CFG changes
Preserve uniformity hints only for equivalent decisions and execution
populations. Drop stale hints when CFG rewrites change their meaning.
drm/amdgpu: validate RAS EEPROM tbl_size before record count
From Candice Li
805f11fb10ddbb7cef48d0c9b6009dee7891f0e5 in linux-6.18.y/6.18.53
c83e4a45ff9a0b7aa1c48246102009a99ccef11b in mainline linux
drm/amdgpu: fix buffer overflow during vBIOS update
From Shiwu Zhang
29fef371331e87311822000535f491ffc3d7a64f in linux-6.18.y/6.18.53
6229898d46c0cbc238a6fe9f11c1ea12cf8bb9c5 in mainline linux
avoid race between multiple processes attempting to establish
multiplexing control socket by moving socket creation earlier in
ssh(1)'s life. Patch from Jens Rosenboom via bz3971
ok naddy dtucker
drm/amdgpu/pm: fix SmartShift bias sysfs store PM refcount on parse error
From Candice Li
95e13b25196295654563028861e6802807006ad4 in linux-6.18.y/6.18.53
a4b0c3f5d2287997876d8f711a40d3c0418458d8 in mainline linux
drm/amd/pm: bound pp_dpm_set_pp_table() memcpy
From Asad Kamal
3334985f8b4c7c637a829744c81518ad9a671bcb in linux-6.18.y/6.18.53
f193e71fa9fab2e68ef85201b106e8f580d3a25b in mainline linux
[libc++] Implement P3450R1: Extend `std::is_within_lifetime` (#201053)
The implementing approach only requires the initial form of
`__builtin_is_within_lifetime` taking one pointer to the object
(necessary for P2641R4), along with `__builtin_constant_p` which is used
for the changes in this paper.
In the future, `__builtin_is_within_lifetime` is possibly enhanced to
additionally take a type, but the library implementation does not need
to be blocked on such improvement.
drm/amdgpu: harden FRU PIA parsing with bounded helpers
From Stanley Yang
4396d74b0c7304946ee343a6611ac6dbc0bfbf78 in linux-6.18.y/6.18.53
c990c05eb6c74c98d1ff3acf67a19015312820b7 in mainline linux
drm/amdkfd: fix UAF race in destroy_queue_cpsch
From Alysa Liu
d98c8032c29944e1e572e1f49a0613d364fece0f in linux-6.18.y/6.18.53
ac081deaf16a639ea7dff2f285fe421a33c1ade0 in mainline linux
drm/amd/display: Check for sharpening case when calculating max vtaps for scaler
From Samson Tam
9bde188793a728a5db2f7a96a814f471c08521bb in linux-6.18.y/6.18.53
4d8cfd570386eb0b6cb8aa0ca9e9db60a0404337 in mainline linux