LLVM/project ff60a84llvm/include/llvm/CodeGen MachinePassManager.h

Convert copy to r-value reference. (#85606)

That seems to be the intention based on calling code.
DeltaFile
+1-1llvm/include/llvm/CodeGen/MachinePassManager.h
+1-11 files

LLVM/project 924a1dcllvm/include/llvm/IR DebugInfoMetadata.h, llvm/lib/AsmParser LLParser.cpp

[Dwarf] Support `__ptrauth` qualifier in metadata nodes (#83862)

Reland #82363 after fixing build failure
https://lab.llvm.org/buildbot/#/builders/5/builds/41428.

Memory sanitizer detects usage of `RawData` union member which is not
filled directly. Instead, the code relies on filling `Data` union
member, which is a struct consisting of signing schema parameters.

According to https://en.cppreference.com/w/cpp/language/union, this is
UB:
"It is undefined behavior to read from the member of the union that
wasn't most recently written".

Instead of relying on compiler allowing us to do dirty things, do not
use union and only store `RawData`. Particular ptrauth parameters are
obtained on demand via bit operations.

Original PR description below.

    [12 lines not shown]
DeltaFile
+75-23llvm/include/llvm/IR/DebugInfoMetadata.h
+59-26llvm/unittests/IR/MetadataTest.cpp
+70-0llvm/test/DebugInfo/AArch64/ptrauth.ll
+37-21llvm/lib/IR/DIBuilder.cpp
+21-11llvm/lib/IR/DebugInfoMetadata.cpp
+19-4llvm/lib/AsmParser/LLParser.cpp
+281-8510 files not shown
+358-10016 files

LLVM/project aea9884llvm/docs LangRef.rst, llvm/include/llvm/IR Constants.h

[IR][AArch64] Add "ptrauth(...)" Constant to represent signed pointers.

This defines a new kind of IR Constant that represents a ptrauth
signed pointer, as used in AArch64 PAuth.

It allows representing most kinds of signed pointer constants
used thus far in the llvm ptrauth implementations, notably those
used in the Darwin and ELF ABIs being implemented for c/c++.
These signed pointer constants are then lowered to ELF/MachO
relocations.

These can be simply thought of as a constant `llvm.ptrauth.sign`,
with the interesting addition of discriminator computation:
the `ptrauth` constant can also represent a combined blend,
when both address and integer discriminator operands are used.

Co-Authored-by: Tim Northover <tnorthover at apple.com>
DeltaFile
+115-0llvm/lib/IR/Constants.cpp
+63-0llvm/include/llvm/IR/Constants.h
+47-0llvm/lib/IR/ConstantsContext.h
+42-0llvm/lib/AsmParser/LLParser.cpp
+29-1llvm/lib/Bitcode/Reader/BitcodeReader.cpp
+27-0llvm/docs/LangRef.rst
+323-120 files not shown
+438-126 files

LLVM/project de7afdallvm/lib/Target/AArch64 AArch64AsmPrinter.cpp, llvm/test/CodeGen/AArch64 ptrauth-fpac.ll

[AArch64][PAC] Don't emit auth/resign checks when targeting FPAC.

When the FPAC feature is present, we can rely on its faulting
behavior to avoid emitting the expensive authentication failure
check sequence ourvelves.  In which case we emit the same
sequence as a plain unchecked auth/resign.
DeltaFile
+374-0llvm/test/CodeGen/AArch64/ptrauth-fpac.ll
+5-0llvm/lib/Target/AArch64/AArch64AsmPrinter.cpp
+379-02 files

LLVM/project 5d7cd2cllvm/lib/Target/AArch64 AArch64.td AArch64InstrInfo.td

[AArch64] Add FPAC feature.
DeltaFile
+3-0llvm/lib/Target/AArch64/AArch64.td
+2-0llvm/lib/Target/AArch64/AArch64InstrInfo.td
+5-02 files

LLVM/project 735111dllvm/lib/Target/AArch64 AArch64AsmPrinter.cpp AArch64ISelDAGToDAG.cpp, llvm/lib/Target/AArch64/GISel AArch64InstructionSelector.cpp

[AArch64][PAC] Lower auth/resign into checked sequence.

This introduces 3 hardening modes in the authentication step of
auth/resign lowering:
- unchecked, which uses the AUT instructions as-is
- poison, which detects authentication failure (using an XPAC+CMP
  sequence), explicitly yielding the XPAC result rather than the
  AUT result, to avoid leaking
- trap, which additionally traps on authentication failure,
  using BRK #0xC470 + key (IA C470, IB C471, DA C472, DB C473.)

Not all modes are necessarily useful in all contexts, and there
are more performant alternative lowerings in specific contexts
(e.g., when I/D TBI enablement is a target ABI guarantee.)

This is controlled by the `ptrauth-auth-traps` function attributes,
and can be overridden using `-aarch64-ptrauth-auth-checks=`.
DeltaFile
+764-0llvm/test/CodeGen/AArch64/ptrauth-intrinsic-auth-resign.ll
+265-0llvm/lib/Target/AArch64/AArch64AsmPrinter.cpp
+261-0llvm/test/CodeGen/AArch64/ptrauth-intrinsic-auth-resign-with-blend.ll
+102-0llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp
+58-0llvm/lib/Target/AArch64/GISel/AArch64InstructionSelector.cpp
+30-0llvm/lib/Target/AArch64/AArch64InstrInfo.td
+1,480-02 files not shown
+1,515-08 files

OpenBSD/src DopUcO1usr.sbin/rpki-client validate.c filemode.c

   Rename parent to issuer in struct auth

   Parent is confusing and issuer is the appropriate terminology. This is
   a mechanical diff. The only remaining uses of 'parent' in this code
   base now mean 'parent process'.

   discussed with beck and job
   ok job
VersionDeltaFile
1.73+5-5usr.sbin/rpki-client/validate.c
1.39+5-5usr.sbin/rpki-client/filemode.c
1.212+4-4usr.sbin/rpki-client/extern.h
1.128+3-3usr.sbin/rpki-client/cert.c
1.33+2-2usr.sbin/rpki-client/ip.c
1.131+2-2usr.sbin/rpki-client/parser.c
+21-211 files not shown
+23-237 files

NetBSD/pkgsrc-wip 892f1a1. Makefile, iamb-dev distinfo cargo-depends.mk

iamb-dev: add git package for iamb

Got tired of missing on the new features.
So, here's a git package for it.
DeltaFile
+1,511-0iamb-dev/distinfo
+504-0iamb-dev/cargo-depends.mk
+16-0iamb-dev/Makefile
+4-0iamb-dev/DESCR
+2-0iamb-dev/PLIST
+1-0Makefile
+2,038-06 files

LLVM/project e04dd68llvm/lib/CodeGen GlobalMerge.cpp

[GlobalMerge] Use vector::assign in place of fill+resize. NFC (#85723)

Noticed while reviewing the code.

If the resize causes a new allocation, this will fill the new allocation
with zeroes directly. Previously, we would fill the old allocation with
zeroes, then copy them to the new allocation before filling the
additional space with zeros.
DeltaFile
+3-4llvm/lib/CodeGen/GlobalMerge.cpp
+3-41 files

OpenBSD/src hpbGTXZsys/net if_sec.c

   count if_enqueue/ifq_enqueue errors as oqdrops.

   this helps narrow down where some "output failures" on sec interfaces
   occur.

   based on discussion with jason tubnor
VersionDeltaFile
1.11+2-2sys/net/if_sec.c
+2-21 files

LLVM/project bda0514libc/src/math/generic inv_trigf_utils.h

[libc] Remove constexpr from atan_eval and asin_eval. (#85725)

Fix aarch64 and gcc full build bots:
https://lab.llvm.org/buildbot/#/builders/223/builds/38235/steps/4/logs/stdio
DeltaFile
+2-2libc/src/math/generic/inv_trigf_utils.h
+2-21 files

FreeBSD/ports dd8ebb4audio/ncpamixer distinfo Makefile

audio/ncpamixer: update 1.3.3.5 → 1.3.7

Reported by:    portscout
DeltaFile
+3-3audio/ncpamixer/distinfo
+3-2audio/ncpamixer/Makefile
+6-52 files

FreeBSD/ports 2f5789eaudio/qxgedit distinfo Makefile

audio/qxgedit: update 0.9.11 → 0.9.12

Reported by:    portscout
DeltaFile
+3-3audio/qxgedit/distinfo
+1-1audio/qxgedit/Makefile
+4-42 files

FreeBSD/ports 183dfedaudio/qmidinet distinfo Makefile

audio/qmidinet: update 0.9.11 → 0.9.12

Reported by:    portscout
DeltaFile
+3-3audio/qmidinet/distinfo
+1-1audio/qmidinet/Makefile
+4-42 files

FreeBSD/ports 424607bmisc/py-torch-geometric distinfo Makefile

misc/py-torch-geometric: update 2.4.0 → 2.5.1

Reported by:    portscout
DeltaFile
+3-3misc/py-torch-geometric/distinfo
+1-1misc/py-torch-geometric/Makefile
+4-42 files

FreeBSD/ports a5f28b6audio/qsynth distinfo Makefile

audio/qsynth: update 0.9.12 → 0.9.13

Reported by:    portscout
DeltaFile
+3-3audio/qsynth/distinfo
+1-1audio/qsynth/Makefile
+4-42 files

LLVM/project a2527e0clang/unittests/Format FormatTest.cpp

[clang-format] Put erroneously removed braces back into a unit test

See https://github.com/llvm/llvm-project/pull/85470#discussion_r1528904789
DeltaFile
+4-4clang/unittests/Format/FormatTest.cpp
+4-41 files

LLVM/project a6eb196mlir/test/Integration/Dialect/SparseTensor/CPU sparse_pack.mlir reshape_dot.mlir

[mlir][sparse] Fix memory leaks (part 4)

This commit fixes memory leaks in sparse tensor integration tests by
adding `bufferization.dealloc_tensor` ops.

Note: Buffer deallocation will be automated in the future with the
ownership-based buffer deallocation pass, making `dealloc_tensor`
obsolete (only codegen path, not when using the runtime library).

This commit fixes the remaining memory leaks in the MLIR test suite.
`check-mlir` now passes when built with ASAN.
DeltaFile
+25-0mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_pack.mlir
+18-2mlir/test/Integration/Dialect/SparseTensor/CPU/reshape_dot.mlir
+8-0mlir/test/Integration/Dialect/SparseTensor/CPU/sparse_block_matmul.mlir
+51-23 files

FreeBSD/src 6561c0eusr.bin/diff diff.1

diff: Improve history section.

Reviewed by:    gbe
Differential Revision:  https://reviews.freebsd.org/D44409
DeltaFile
+8-6usr.bin/diff/diff.1
+8-61 files

LLVM/project f6a2a55flang/include/flang/Optimizer/Dialect FIROps.td, flang/lib/Lower Bridge.cpp

[flang][cuda] Handle lowering of stars in cuf kernel launch parameters (#85695)

Parsing of the cuf kernel loop directive has been updated to handle
variants with the * syntax. This patch updates the lowering to make use
of them.

- If the grid or block syntax uses only stars then the operation
variadic operand remains empty.
- If there is values and stars, then stars are represented as a zero
constant value.
DeltaFile
+32-13flang/lib/Lower/Bridge.cpp
+16-3flang/test/Lower/CUDA/cuda-kernel-loop-directive.cuf
+10-0flang/include/flang/Optimizer/Dialect/FIROps.td
+58-163 files

LLVM/project aec50cdllvm/test/tools/llvm-objdump/MachO/AArch64 macho-relative-method-lists.test

[NFC] Disable llvm-objdump test on AIX

After commit 9d5edfde5c3dbc4eb559d316e82e664f291fc2bf the test is failing on the AIX bot. XFAIL for now to unblock the bot and give time to investigate.
DeltaFile
+1-0llvm/test/tools/llvm-objdump/MachO/AArch64/macho-relative-method-lists.test
+1-01 files

OpenBSD/ports 29Y4C3Adevel/py-nbconvert Makefile distinfo, devel/py-nbconvert/pkg PLIST DESCR

   update nbconvert to 7.16.2 and mistune to 2.0.5
VersionDeltaFile
1.11+25-229devel/py-nbconvert/pkg/PLIST
1.6+63-4textproc/py-mistune/pkg/PLIST
1.23+11-16devel/py-nbconvert/Makefile
1.2+13-2devel/py-nbconvert/pkg/DESCR
1.18+1-4textproc/py-mistune/Makefile
1.9+2-2devel/py-nbconvert/distinfo
+115-2571 files not shown
+117-2597 files

NetBSD/pkgsrc yhj9rkwdevel/memcached Makefile

   memcached: Do not hardcode COMPILER_RPATH_FLAG
VersionDeltaFile
1.91+12-1devel/memcached/Makefile
+12-11 files

FreeNAS/freenas a76b48ftests/api2 test_425_smb_protocol.py

Fix
DeltaFile
+1-1tests/api2/test_425_smb_protocol.py
+1-11 files

FreeBSD/ports 1a86930net/dhcp6 pkg-plist Makefile

net/dhcp6: Move man pages to share/man

Approved by:    portmgr (blanket)
DeltaFile
+6-6net/dhcp6/pkg-plist
+2-1net/dhcp6/Makefile
+8-72 files

FreeBSD/ports fd78f1bdevel/subversion-lts pkg-plist Makefile

devel/subversion-lts: Move man pages to share/man

Approved by:    portmgr (blanket)
DeltaFile
+10-10devel/subversion-lts/pkg-plist
+2-1devel/subversion-lts/Makefile
+12-112 files

FreeBSD/ports 8143c93games/xnethack pkg-plist Makefile, games/xnethack/files patch-sys-unix-Makefile.doc

games/xnethack: Move man pages to share/man

Approved by:    portmgr (blanket)
DeltaFile
+4-4games/xnethack/pkg-plist
+1-1games/xnethack/files/patch-sys-unix-Makefile.doc
+1-0games/xnethack/Makefile
+6-53 files

FreeBSD/ports ad14f0bnet/cvsync pkg-plist Makefile, net/cvsync/files patch-mk-base.mk

net/cvsync: Move man pages to share/man

Approved by:    portmgr (blanket)
DeltaFile
+7-7net/cvsync/pkg-plist
+1-1net/cvsync/files/patch-mk-base.mk
+1-0net/cvsync/Makefile
+9-83 files

FreeBSD/ports 28601d8net/xrdp pkg-plist Makefile, net/xrdp-devel pkg-plist Makefile

net/xrdp*: Move man pages to share/man

Approved by:    portmgr (blanket)
DeltaFile
+11-11net/xrdp-devel/pkg-plist
+10-10net/xrdp/pkg-plist
+2-1net/xrdp-devel/Makefile
+2-0net/xrdp/Makefile
+25-224 files

FreeBSD/ports 12dae37net/freeradius3 pkg-plist Makefile

net/freeradius3: Move man pages to share/man

Approved by:    portmgr (blanket)
DeltaFile
+41-40net/freeradius3/pkg-plist
+2-0net/freeradius3/Makefile
+43-402 files