[CIR] Implement 'vtable initialization' lowering (#220946)
This showed up in a test suite, and is basically just ensuring that our
vtable pointers are properly cleaned up during destruction. The entirety
of the static functions (and the implementation) are near word-for-word
copies of what classic codegen does.
However, there ARE a few parts that are potentially untested(including
strict-vtable-pointers which aren't implemented yet), but the
implementation is put in place, as it is a mechanical copy/paste
implementation.
Note: Claude came up with additional test cases.
[Flang][OpenMP] Optimize target updates of derived-type scalars (#219488)
Pack AMDGPU derived-type scalar updates into a single transfer and
generated target region, avoiding one costly runtime transfer per
component. Preserve existing lowering for unsupported clauses, pointer
components, and non-AMDGPU targets.
[Comment] Fix @method/@methodgroup/@callback false positives (#220787)
76af74004e8b (#181769) refactored the DiagSelect computation in
checkFunctionDeclVerbatimLine to use named enum constants instead of
magic numbers. The checks for whether the comment was attached to an
Objective-C method, a method group, or a pointer to a function
declaration were removed for the @method, @methodgroup, and @callback
cases, which caused warn_doc_function_method_decl_mismatch to be emitted
even when the comments were attached to matching declarations.
Restore the dropped checks.
rdar://184264978
[RISCV] Add isel pattern for vdot4aus.vx (#221047)
The splat of i32 and bitcast is probably not realistic. I'm just trying
to cover the assymmetry in the patterns with this patch.
Assisted-by: Claude
[RegisterCoalescer] Do not commute def when a partial def implicitly reads it (#220979)
## Problem
Since f44079db22036d0ade2cf3d2e5a24bde5d378efd, instruction selection
can produce partial register writes (e.g. MOV8rm into sub_8bit) that
implicitly read the rest of the 64-bit register. When
removeCopyByCommutingDef commutes the feeding OR to remove a COPY, it
rewrites only explicit operands and then erases the old definition from
the live interval.
The partial write still implicitly reads that value, so
`JoinVals::analyzeValue` asserts on `Instruction is reading nonexistent
value`.
## Fix
Extend the existing reader check from `use_nodbg_operands` to
`reg_nodbg_operands`, and use `readsReg()` to identify operands that
read `AValNo`. Reject the commute when such a reader is also a def, just
[13 lines not shown]
[flang][FIRToMemRef] Look through zero-offset views to find fir.array_coor (#215402)
`getMemRefInfo` dispatched only on a FIR memref's immediate defining op,
so a fir.declare (or other zero-offset view) wrapping
`fir.array_coor`/indexing `fir.coordinate_of` was treated as an opaque
scalar reference, dropping bounds information and causing incorrect
runtime behavior (e.g. missing array dimensions) after inlining under an
OpenACC kernels loop.
This peeks through zero-offset FortranObjectViewOpInterface views
(fir.declare, ref/box fir.convert, fir.box_addr, fir.volatile_cast,
fir.create_box, unsliced fir.embox/fir.rebox) for a genuine
fir.array_coor/indexing fir.coordinate_of underneath and dispatches
bounds-aware lowering on it.
[flang-rt][NFC] Initialize OpenFile::nextId_ (#221187)
`OpenFile::nextId_` had no initializer and is assigned only in
`Predefine()`, which runs for the three preconnected units. A unit
created by `OPEN` therefore leaves it indeterminate. Added missing
initializer.
Assisted-by: AI
[lldb][Windows] Fix unused function GetModulePath warning with certain Python options (#221173)
If LLDB_PYTHON_DLL_RELATIVE_PATH is OFF, or it is ON and
LLDB_PYTHON_RUNTIME_LIBRARY_FILENAME is OFF, then GetModulePath is
unused.
```
<...>/lldb/source/Host/windows/PythonRuntimeLoaderWindows.cpp(32,13): warning: unused function 'GetModulePath' [-Wunused-function]
32 | std::string GetModulePath(HMODULE module) {
| ^~~~~~~~~~~~~
```
Rearrange the macros to define GetModulePath only if both options are
enabled.
mkimg: Restore offset support for the SIZE partition form
Commit 50c1240ebfaf moved the offset parsing into the PART_KIND_FILE case of
the switch, leaving PART_KIND_SIZE with no offset handling.
The offset was then silently ignored, so "-p efi::$size:$start" as used by
release/${ARCH}/mkisoimages.sh packed the ESP immediately after the preceding
partition.
Parse the offset outside the switch so both forms honour it.
Add tests covering absolute and relative offsets in both forms.
Reviewed by: jrtc27, bsdimp, jlduran
Approved by: jlduran, bsdimp
Sponsored by: Netflix
Assisted-by: Claude Code (Opus 5)
iuserboot: bump the interface to v6, add an accept_interpreter callback
If an explicit loader wasn't requested, then bhyveload(8) maintains a
/boot handle that it can use for swapping to a different flavor. This
means that we expose all of the host /boot to the sandbox for the
duration of script execution.
Add a callback to ack that we're OK with the interpreter so that
bhyveload(8) can release the bootfd. This is worth doing because it's
prior to guest script execution, so we're still running a reasonably
untainted process.
Reviewed by: imp, jhb
Differential Revision: https://reviews.freebsd.org/D58771
Merge tag 'probes-fixes-v7.3-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace
Pull probes fixes from Masami Hiramatsu:
- Protect kprobe_blacklist with RCU
RCU-protect kprobe_blacklist and use kfree_rcu() to prevent UAF races
during module unloading and enable safe atomic lookups.
- Fix multi-probe field use-after-free
Duplicate field and type strings on trace_probe_event to prevent UAF
when freeing primary probe
- Fix probe BTF member lookup:
Check the containing inner struct/union kflag when resolving
anonymous members to ensure correct bitfield offset calculation
[17 lines not shown]
net/xrdp: Use canonical spelling of USERS/GROUPS
When the _xrdp user and group were added, they were listed as
USER= _xrdp
GROUP= _xrdp
which did not result in the user and group being created when the
package is installed.
Reviewed by: meta
Fixes: ee46045d223a ("net/xrdp: Update to 0.10.2-rc.1")
Sponsored by: Amazon
Differential Revision: https://reviews.freebsd.org/D59324