LLVM/project 3ac05ff — llvm/lib/Target/AVR AVRRegisterInfo.td, llvm/lib/Target/AVR/AsmParser AVRAsmParser.cpp

[nspr] initial commit
DeltaFile
+67-72llvm/lib/Target/AVR/AsmParser/AVRAsmParser.cpp
+10-0llvm/test/MC/AVR/error.s
+5-1llvm/lib/Target/AVR/AVRRegisterInfo.td
+82-733 files

LLVM/project bdb9a0c — llvm/lib/Target/AMDGPU/AsmParser AMDGPUAsmParser.cpp, llvm/lib/Target/CSKY/AsmParser CSKYAsmParser.cpp

[nspr] initial commit
DeltaFile
+22-21llvm/lib/Target/CSKY/AsmParser/CSKYAsmParser.cpp
+12-12llvm/lib/Target/VE/AsmParser/VEAsmParser.cpp
+12-12llvm/lib/Target/Lanai/AsmParser/LanaiAsmParser.cpp
+5-4llvm/utils/TableGen/AsmMatcherEmitter.cpp
+5-4llvm/lib/Target/Hexagon/AsmParser/HexagonAsmParser.cpp
+5-4llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
+61-5712 files not shown
+89-8918 files

LLVM/project 9fde4d9 — llvm/lib/Target/VE VERegisterInfo.td, llvm/lib/Target/VE/MCTargetDesc VEInstPrinter.h VEInstPrinter.cpp

[nspr] initial commit
DeltaFile
+28-30llvm/lib/Target/VE/VERegisterInfo.td
+1-6llvm/lib/Target/VE/MCTargetDesc/VEInstPrinter.cpp
+1-2llvm/lib/Target/VE/MCTargetDesc/VEInstPrinter.h
+30-383 files

LLVM/project e80cf08 — llvm/lib/Target/VE VERegisterInfo.td, llvm/lib/Target/VE/AsmParser VEAsmParser.cpp

[nspr] initial commit
DeltaFile
+18-105llvm/lib/Target/VE/AsmParser/VEAsmParser.cpp
+18-8llvm/lib/Target/VE/VERegisterInfo.td
+36-1132 files

LLVM/project a692973 — llvm/lib/Target/Sparc SparcRegisterInfo.td, llvm/lib/Target/Sparc/AsmParser SparcAsmParser.cpp

[nspr] initial commit
DeltaFile
+10-174llvm/lib/Target/Sparc/AsmParser/SparcAsmParser.cpp
+26-6llvm/lib/Target/Sparc/SparcRegisterInfo.td
+18-0llvm/test/MC/Sparc/sparc-mem-instructions.s
+54-1803 files

LLVM/project d17380e — llvm/lib/Target/LoongArch LoongArchRegisterInfo.td, llvm/lib/Target/LoongArch/AsmParser LoongArchAsmParser.cpp

[nspr] initial commit
DeltaFile
+0-14llvm/lib/Target/LoongArch/AsmParser/LoongArchAsmParser.cpp
+3-1llvm/lib/Target/LoongArch/LoongArchRegisterInfo.td
+3-152 files

LLVM/project 950baab — llvm/lib/Target/CSKY CSKYRegisterInfo.td, llvm/lib/Target/CSKY/AsmParser CSKYAsmParser.cpp

[CSKY][MC] Use CoerceFromRegClass for FPR64 and GPRPair operands (#241449)

The 64-bit FP registers share assembly names with the 32-bit ones, and
`GPRPair` registers are named after their first `GPR`, so the parser
always produces an `FPR32` or `GPR` register and
`validateTargetOperandClass` rewrote it in-place, even when the
instruction being tried did not end up being selected.

We can set `CoerceFromRegClass` to have tablegen emit the coercion
automatically to stop mutating operands in `validateTargetOperandClass`,
which now only keeps the out-of-range diagnostic for `fr16`-`fr31`.

Assisted-by: AI tooling
DeltaFile
+5-30llvm/lib/Target/CSKY/AsmParser/CSKYAsmParser.cpp
+5-2llvm/lib/Target/CSKY/CSKYRegisterInfo.td
+10-322 files

LLVM/project b22d847 — llvm/include/llvm/Target Target.td, llvm/test/TableGen RegClassByHwMode.td AsmMatcherCoerceFromRegClass.td

[TableGen][AsmMatcher] Support custom RenderMethod on RegisterClass (#242126)

Allow `RegisterClass` definitions to specify a custom `RenderMethod`
(defaulting to `addRegOperands`, including per-`HwMode` dispatch for
`RegClassByHwMode`).

This is need for the final few targets to make the arguments to
`validateTargetOperandClass` const.

Assisted-by: AI tooling
DeltaFile
+46-16llvm/utils/TableGen/AsmMatcherEmitter.cpp
+37-0llvm/test/TableGen/AsmMatcherCoerceFromRegClass.td
+26-2llvm/test/TableGen/RegClassByHwMode.td
+6-1llvm/include/llvm/Target/Target.td
+115-194 files

LLVM/project a785f90 — llvm/lib/Target/RISCV RISCVRegisterInfo.td, llvm/test/TableGen AsmMatcherCoerceFromRegClass.td

[RISC-V] Group vector register groups by LMUL in the register enum. NFC (#242124)

The `V*M2`/`V*M4`/`V*M8` registers were interleaved in the register enum
(`V0M2`, `V0M4`, `V0M8`, `V10M2`, ...) since registers are sorted by
name.
Set `PositionOrder` per LMUL so that each group is contiguous. This
allows
the generated `CoerceFromRegClass` conversions for `VRM2` and `VRM4` to
use simple arithmetic instead of a switch.

This doesn't have a huge impact since Clang already lowered the switches
to a lookup table, so the resulting code only shrinks by a few bytes.
It does make the generated code a bit more readable though.

Also update the TableGen test to use the same approach for its
`VRM2`/`VRM4` classes so the generated strides are easier to follow.
Since this removes the accidental coverage of the switch fallback and
of differing source and destination strides, add dedicated register
classes for both.

Assisted-by: AI tooling
DeltaFile
+105-15llvm/test/TableGen/AsmMatcherCoerceFromRegClass.td
+6-0llvm/lib/Target/RISCV/RISCVRegisterInfo.td
+111-152 files

LLVM/project cf02094 — llvm/include/llvm/Target Target.td, llvm/test/TableGen AsmMatcherCoerceFromRegClass.td

[TableGen][AsmMatcher] Diagnose invalid CoerceFromRegClass (#242123)

With `AllowDuplicateRegisterNames`, `MatchRegisterName` returns the
first
register in enum order for each assembly name, so registers that share a
name with an earlier register are never produced by the parser. Coercing
from such a register silently never fires, so report an error instead.
RISC-V already has a similar static_assert in `matchRegisterNameHelper`.

Change motivated by Craig's comment here:
https://github.com/llvm/llvm-project/pull/241023#discussion_r4556363273

Assisted-by: AI tooling
DeltaFile
+22-4llvm/utils/TableGen/AsmMatcherEmitter.cpp
+10-0llvm/test/TableGen/AsmMatcherCoerceFromRegClass.td
+4-5llvm/include/llvm/Target/Target.td
+36-93 files

FreeBSD/src a4a353f — sys/vm vm_page.c

vm_page_unwire_unmanaged(): fix a double free of the page

The function decided to free the page when vm_page_unwire_noq() reported
that the last wiring was released and a separate load of ref_count then
returned zero. For a page that belongs to an object, the object can drop
its VPRC_OBJREF reference between the decrement and the load. The load
then sees zero, and both threads free the page, which ends up on the
free lists twice and is later handed out to two owners.

Decide from the value returned by our own atomic decrement instead.

Reported by:    alc
Reviewed by:    alc
Fixes:  fee2a2fa3983 ("Change synchonization rules for vm_page reference counting.")
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D61860
DeltaFile
+21-5sys/vm/vm_page.c
+21-51 files

FreeBSD/src 916ecca — sys/vm vm_page.h vm_page.c

vm_page_alloc_noobj_domainset(9): noobj page allocator honoring domainset

Reviewed by:    alc
Sponsored by:   Nvidia networking
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D61860
DeltaFile
+20-0sys/vm/vm_page.c
+2-0sys/vm/vm_page.h
+22-02 files

FreeBSD/src 79f12b5 — sys/vm vm_page.h

vm/vm_page.c: improve vm_page_alloc_noobj_domain() prototype

Put it alphabetically ordered.
Add argument names.

Reviewed by:    alc
Sponsored by:   Nvidia networking
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D61860
DeltaFile
+1-1sys/vm/vm_page.h
+1-11 files

FreeBSD/src 75dce37 — sys/vm vm_page.h vm_page.c

vm/vm_page.c: extract vm_page_unwire_unmanaged()

Refactored function returns indicator when the page was actually freed.

Reviewed by:    alc
Sponsored by:   Nvidia networking
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D61860
DeltaFile
+17-2sys/vm/vm_page.c
+1-0sys/vm/vm_page.h
+18-22 files

FreeBSD/src a69e183 — share/man/man9 Makefile vm_page_alloc.9

vm_page_alloc.9: document vm_page_alloc_noobj_domainset(9)

Reviewed by:    alc
Sponsored by:   Nvidia networking
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D61860
DeltaFile
+17-1share/man/man9/vm_page_alloc.9
+2-1share/man/man9/Makefile
+19-22 files

GhostBSD/ports 35db1d8 — graphics/blender/files patch-source_blender_modifiers_intern_MOD__grease__pencil__build.cc

graphics/blender: fix build with onetbb 2023.2

onetbb 2023.2 calls the parallel_sort comparator with const values,
so the non-const lambda in MOD_grease_pencil_build.cc no longer
compiles. Make it take const references.
DeltaFile
+11-0graphics/blender/files/patch-source_blender_modifiers_intern_MOD__grease__pencil__build.cc
+11-01 files

LLVM/project 1e23b98 — lldb/tools/lldb-dap EventHelper.cpp

[lldb-dap] Remove debug type from startDebugging reverse request (#244816)

According to [DAP
specification](https://microsoft.github.io/debug-adapter-protocol/specification#Reverse_Requests_StartDebugging):
```
interface StartDebuggingRequestArguments {
  /**
   * Arguments passed to the new debug session. The arguments must only contain
   * properties understood by the `launch` or `attach` requests of the debug
   * adapter and they must not contain any client-specific properties (e.g.
   * `type`) or client-specific features (e.g. substitutable 'variables').
   */
  configuration: { [key: string]: any; };
```

The adapter shouldn't send the debug type. Also VSCode platform will
ignore the type sent and set it to parent's:
```
const config = {

    [5 lines not shown]
DeltaFile
+7-1lldb/tools/lldb-dap/EventHelper.cpp
+7-11 files

OpenBSD/ports SvQSZmY — devel/zizmor Makefile crates.inc

   Update to zizmor 1.33.1

   https://github.com/zizmorcore/zizmor/releases/tag/v1.33.0
   https://github.com/zizmorcore/zizmor/releases/tag/v1.33.1
VersionDeltaFile
1.14+30-30devel/zizmor/distinfo
1.12+14-14devel/zizmor/crates.inc
1.17+1-1devel/zizmor/Makefile
+45-453 files

FreeBSD/src ddc7069 — sys/kern kern_descrip.c

kern/kern_descrip.c: do not leak ctty/textvp/tracevp use counts

If the export of one of the special process vnodes failed, the
references on the remaining ones leaked, since export_vnode_to_sb() was
not called for them.

Each reference is now taken just before its export, with the process
held in between.

Read the session's ctty vnode and take its reference under the session lock.

Reviewed by:    markj
Fixes:  36bd49ac4db8 ("fd: Avoid truncating output buffers for KERN_PROC_{CWD,FILEDESC}")
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D61859
DeltaFile
+29-16sys/kern/kern_descrip.c
+29-161 files

FreeBSD/src a559977 — sys/kern vfs_syscalls.c, sys/security/audit audit_bsm.c

fchaltroot(2): fix auditing

Audit fd and vnode.
Move the AUE_FCHALTROOT into the FD_VNODE1_TOKENS group.

Reported by:    llm-postcr
Reviewed by:    markj
Fixes:  9757c0cf98e4 ("chaltroot(2) and fchaltroot(2): new syscalls")
Fixes:  3dac77482537 ("sys: add AUE_CHALTROOT and AUE_FCHALTROOT")
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D61862
DeltaFile
+3-0sys/kern/vfs_syscalls.c
+1-1sys/security/audit/audit_bsm.c
+4-12 files

FreeBSD/src 7755246 — sys/kern kern_exec.c

execve(): unshare pwd

Ensure that pwd is not shared when execing into any ABI, so rforked
siblings are not affected.  The altroot changes made during exec, by
linux_on_exec() and by the setuid altroot clear, affected rforked
siblings sharing the pwd.

Remove now always no-op pdunshare() call next to fdunshare().

Reviewed by:    markj
Fixes:  fd745e1db6b5 ("linux(4): Use pwd_altroot() to tell namei() about ABI root path")
Fixes:  2137bad49a6f ("exec_new_vmspace(): drop altroot for native processes if setuid")
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D61858
DeltaFile
+10-3sys/kern/kern_exec.c
+10-31 files

FreeBSD/src 8b25c9e — sys/kern kern_descrip.c

kern/kern_descrip.c: avoid leaking vnode use count hold when vnode export fails

export_vnode_to_sb() returns on remainder == 0 without calling
export_vnode_to_kinfo(), which vrele()s it.

Reviewed by:    markj
Fixes:  fe52cf547580 ("Re-factor the code to provide kern_proc_filedesc_out(), kern_proc_out(), and kern_proc_vmmap_out() functions ...")
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D61859
DeltaFile
+3-1sys/kern/kern_descrip.c
+3-11 files

FreeBSD/src 7396c23 — sys/compat/linux linux_util.c

linux: harden the linux_pwd_onexec() altroot entry

Do not take the native altroot into account when looking up
linux_emul_path.

Reported by:    llm-postcr
Reviewed by:    markj
Fixes:  9757c0cf98e4 ("chaltroot(2) and fchaltroot(2): new syscalls")
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D61858
DeltaFile
+9-7sys/compat/linux/linux_util.c
+9-71 files

FreeBSD/src ef7c9c8 — sys/compat/linux linux_util.c, sys/kern kern_exec.c vfs_syscalls.c

kern: add pwd_altroot_clear() helper

Suggested and reviewed by:      markj
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D61858
DeltaFile
+9-0sys/kern/kern_descrip.c
+3-3sys/compat/linux/linux_util.c
+1-3sys/kern/sys_capability.c
+2-1sys/kern/vfs_syscalls.c
+1-1sys/kern/kern_exec.c
+1-0sys/sys/filedesc.h
+17-86 files

FreeBSD/src 16e5fec — sys/kern kern_descrip.c

kern/kern_descrip.c: avoid leaking pwd hold when vnode export fails

kern_proc_filedesc_out() gotos around the pwd_drop() call on errors from
export_vnode_to_sb(), leaking the hold.

Reported by:    llm-postcr
Reviewed by:    markj
Fixes:  36bd49ac4db8 ("fd: Avoid truncating output buffers for KERN_PROC_{CWD,FILEDESC}")
Sponsored by:   The FreeBSD Foundation
MFC after:      1 week
Differential revision:  https://reviews.freebsd.org/D61859
DeltaFile
+2-2sys/kern/kern_descrip.c
+2-21 files

NetBSD/src mrVTSaH — sys/arch/arm/nxp imx6_ccm.c

   imx6ccm: fix panic in set_parent on muxes with a busy bit

   The KASSERTs in imxccm_clk_mux_wait() were inverted, so with DIAGNOSTIC
   set_parent on periph/periph2 (i.MX6Q, i.MX6SX) panicked.

   Tested on QEMU sabrelite with assigned-clock-parents on periph.
VersionDeltaFile
1.6+4-4sys/arch/arm/nxp/imx6_ccm.c
+4-41 files

LLVM/project aaba6df — llvm/lib/Target/Hexagon HexagonDepIICHVX.td HexagonDepIICScalar.td, llvm/test/CodeGen/AArch64/Atomics aarch64_be-atomicrmw-lscp.ll aarch64-atomicrmw-lscp.ll

Rebase, address comments, improvements

Created using spr 2.0.0-beta.1
DeltaFile
+18,437-18,198llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.1024bit.ll
+15,374-15,524llvm/lib/Target/Hexagon/HexagonDepIICScalar.td
+7,442-8,018llvm/lib/Target/Hexagon/HexagonDepIICHVX.td
+9,174-0llvm/test/CodeGen/AArch64/Atomics/aarch64-atomicrmw-lscp.ll
+4,455-4,505llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.512bit.ll
+8,819-0llvm/test/CodeGen/AArch64/Atomics/aarch64_be-atomicrmw-lscp.ll
+63,701-46,2457,239 files not shown
+414,435-241,0517,245 files

LLVM/project d7ce140 — llvm/test/Transforms/SLPVectorizer/AArch64 fast-two-sum-operand-order.ll, llvm/test/Transforms/SLPVectorizer/X86 fast-two-sum-operand-order-second-pass.ll

[SLP][NFC]Add extra tests for reordering in two-sum operands, NFC

Pull-request: https://github.com/llvm/llvm-project/pull/245097
DeltaFile
+357-0llvm/test/Transforms/SLPVectorizer/AArch64/fast-two-sum-operand-order.ll
+84-0llvm/test/Transforms/SLPVectorizer/X86/fast-two-sum-operand-order-second-pass.ll
+441-02 files

NetBSD/src 0dEeJ0R — sys/arch/arm/nxp imx_ccm_div.c

   imx_ccm: fix infinite loop in div set_rate with IMX_DIV_SET_RATE_PARENT

   imx_ccm_div_set_rate() passed the clock itself to clk_set_rate() instead
   of its parent, so the call came back into the same function and looped
   forever, hanging the kernel.

   This only affects dividers with IMX_DIV_SET_RATE_PARENT set.  Reproduced
   and verified the fix on QEMU mcimx7d-sabre with a DT that sets
   assigned-clock-rates.
VersionDeltaFile
1.2+3-3sys/arch/arm/nxp/imx_ccm_div.c
+3-31 files

NetBSD/pkgsrc-wip 6ccc298 — dma Makefile TODO

dma: Ask for c99 and add TODO items from review
DeltaFile
+23-0dma/TODO
+3-1dma/Makefile
+26-12 files