LLVM/project 06488f6mlir/include/mlir/Bindings/Python IRCore.h

[mlir] Make the Python binding type casters well-formed under C++23 (#208093)

The nanobind type/attr/loc/value casters in IRCore.h return a by-value
PyType/PyAttribute/PyLocation/PyValue as their DerivedTy result.

Under pre-C++23 rules, this was a rvalue that would decay to a lvalue
when passed to the DerivedTy constructor.

Under C++23's P2266 (implicit move on return), that return operand is an
xvalue, which cannot bind the PyConcrete* constructors that take a
non-const lvalue reference.

This patch constructs the derived type explicitly (return
DerivedTy(arg);) using the lvalue constructor; this preserves the
pre-C++23 behavior on C++23 builds.
DeltaFile
+4-4mlir/include/mlir/Bindings/Python/IRCore.h
+4-41 files

FreeBSD/ports 13fda28cad/librnd distinfo Makefile

cad/librnd: Update 4.4.0 => 4.5.0, unbreak build WITH_MOTIF

* Add GTK4 and MOTIF to OPTIONS_DEFAULT as all builds successfully now.

Approved by:            db@, yuri@ (Mentors, implicit)
DeltaFile
+3-3cad/librnd/distinfo
+3-3cad/librnd/Makefile
+4-0cad/librnd/pkg-plist
+10-63 files

LLVM/project 1325d85llvm/lib/Transforms/Vectorize/SandboxVectorizer Scheduler.cpp

[SandboxVec][Scheduler][NFC] Cleanup: Use interval in loop and reset sched state (#205465)

Replace the for loop that iterates between TopI and LowestI with a range
loop over ResetIntvl and move the reset of the scheduling state to this
loop.
We iterate over the loop in the reverse order than before but the
functionality should not change.
DeltaFile
+10-12llvm/lib/Transforms/Vectorize/SandboxVectorizer/Scheduler.cpp
+10-121 files

LLVM/project d6e457ellvm/lib/Transforms/Vectorize/SandboxVectorizer VecUtils.cpp, llvm/lib/Transforms/Vectorize/SandboxVectorizer/Passes BottomUpVec.cpp

[SBVec] Implement topDown/botUp vectorizers in unison

This patch introduces the `top-down-vec` pass to the Sandbox Vectorizer,
adding the ability to traverse use-def chains top-down to discover and
collect vectorization opportunities. Furthermore, this patch unifies
the two vectorizers into a single implementation to minimize code
duplication.
* vectorize in the same direction as the scheduler direction
* use AuxArg to determine vectorizer direction
* move user collection to VecUtils and add unit tests
* handle legality results
* introduce getNextBundles to loop ovop over getNextBundle calls for each user
* introduce BundleTy and GetOpIdxVec
DeltaFile
+437-0llvm/test/Transforms/SandboxVectorizer/topdown_vec.ll
+233-0llvm/unittests/Transforms/Vectorize/SandboxVectorizer/VecUtilsTest.cpp
+93-28llvm/lib/Transforms/Vectorize/SandboxVectorizer/Passes/BottomUpVec.cpp
+69-10llvm/test/Transforms/SandboxVectorizer/pack.ll
+75-0llvm/lib/Transforms/Vectorize/SandboxVectorizer/VecUtils.cpp
+69-1llvm/test/Transforms/SandboxVectorizer/external_uses.ll
+976-393 files not shown
+1,025-519 files

LLVM/project 7f3d91dllvm/lib/Target/RISCV/MCA RISCVCustomBehaviour.cpp, llvm/test/tools/llvm-mca/RISCV/SiFiveX280 needs-sew-but-only-lmul.s

[RISCV][MCA] Avoid deriving EMUL without SEW (#207986)

When only an LMUL instrument is active, SEW is unavailable. Avoid
deriving EMUL for vector memory instructions in that case and fall back
to the base scheduling class.

Closes #170118.
DeltaFile
+21-0llvm/test/tools/llvm-mca/RISCV/SiFiveX280/needs-sew-but-only-lmul.s
+6-0llvm/lib/Target/RISCV/MCA/RISCVCustomBehaviour.cpp
+27-02 files

LLVM/project 1591b3cllvm/lib/Target/AMDGPU SMInstructions.td, llvm/lib/Target/AMDGPU/Utils AMDGPUBaseInfo.cpp

[AMDGPU][GFX1250] Add cpol support for some prefetch instructions
DeltaFile
+43-0llvm/test/MC/AMDGPU/gfx1250_asm_smem.s
+23-17llvm/lib/Target/AMDGPU/SMInstructions.td
+1-6llvm/test/MC/AMDGPU/gfx1250_asm_smem_err.s
+3-2llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp
+70-254 files

LLVM/project 34b0a6eclang/test/Interpreter lit.local.cfg cxx20-modules.cppm

[clang-repl] Avoid use `$LD_LIBRARY_PATH` in lit tests (#208170)

Strengthen clang-repl lit tests by Avoid use `$LD_LIBRARY_PATH`. The
lit's internal shell does not expand shell variables such as
`$LD_LIBRARY_PATH`, so provide the current value as a lit substitution.

This PR can fix the following failures when user build llvm with
non-system C++ standard library.
```
# executed command: env 'LD_LIBRARY_PATH=<build dir>/tools/clang/test/Interpreter/Output/cxx20-modules.cppm.tmp:$LD_LIBRARY_PATH' <build dir>/bin/clang-repl -Xcc=-std=c++20 -Xcc=-fmodule-file=M=<build dir>/tools/clang/test/Interpreter/Output/cxx20-modules.cppm.tmp/mod.pcm -Xcc=--target=x86_64-linux-gnu
# .---command stderr------------
# | <build dir>/bin/clang-repl: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by <build dir>/bin/clang-repl)
# | <build dir>/bin/clang-repl: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.29' not found (required by <build dir>/bin/clang-repl)
# | <build dir>/bin/clang-repl: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.30' not found (required by <build dir>/bin/clang-repl)
# | <build dir>/bin/clang-repl: /lib64/libstdc++.so.6: version `CXXABI_1.3.13' not found (required by <build dir>/bin/clang-repl)
# `-----------------------------
```

Signed-off-by: yronglin <yronglin777 at gmail.com>
DeltaFile
+8-0clang/test/Interpreter/lit.local.cfg
+1-1clang/test/Interpreter/cxx20-modules.cppm
+1-1clang/test/Interpreter/dynamic-library.cpp
+10-23 files

LLVM/project e7f9201llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer/Passes BottomUpVec.h, llvm/lib/Transforms/Vectorize/SandboxVectorizer/Passes BottomUpVec.cpp

[SBVec] Implement topDown/botUp vectorizers in unison

This patch introduces the `top-down-vec` pass to the Sandbox Vectorizer,
adding the ability to traverse use-def chains top-down to discover and
collect vectorization opportunities. Furthermore, this patch unifies
the two vectorizers into a single implementation to minimize code
duplication.
* vectorize in the same direction as the scheduler direction
* use AuxArg to determine vectorizer direction
* move user collection to VecUtils and add unit tests
* handle legality results
* introduce getNextBundles to loop ovop over getNextBundle calls for each user
* introduce BundleTy and GetOpIdxVec
DeltaFile
+8-7llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer/Passes/BottomUpVec.h
+5-4llvm/lib/Transforms/Vectorize/SandboxVectorizer/Passes/BottomUpVec.cpp
+13-112 files

FreeBSD/src cd7b650share/man/man4 fwisound.4, sys/conf files

fwisound: add Apple FireWire audio driver

Expose audio capture from Apple FireWire devices as a standard
pcm(4)/dsp(4) device via the newpcm framework.

(adrian: I've tested this on an isight camera and looped
it back to USB speakers via "sox -t oss /dev/dsp3 -t oss /dev/dsp4")

Reviewed by:    adrian
Differential Revision:  https://reviews.freebsd.org/D58109
DeltaFile
+609-0sys/dev/firewire/fwisound.c
+233-0sys/dev/firewire/fwisound_pcm.c
+112-0sys/dev/firewire/fwisound.h
+96-0share/man/man4/fwisound.4
+12-0sys/modules/firewire/fwisound/Makefile
+2-0sys/conf/files
+1,064-03 files not shown
+1,067-09 files

FreeBSD/src d128ddfsys/dev/firewire fwcam.c

fwcam: retry ISO enable after re-powering camera

Some IIDC cameras power down the sensor when inactive (e.g. lens
cover closed) and reject ISO enable with EIO. Re-power the camera
and retry once before failing.

Reviewed by:    adrian
Differential Revision:  https://reviews.freebsd.org/D58101
DeltaFile
+16-1sys/dev/firewire/fwcam.c
+16-11 files

FreeBSD/src 56d4deesys/dev/firewire fwcam.c

fwcam: defer ISO streaming to first read

Moved ISO start to first usage. Opening the device now
only validates state and increments the open count, allowing info
queries and mode changes without starting the camera. ISO streaming
begins on demand when userland first reads frame data.
This avoid the camera led to turn-on at attach.

Reviewed by:    adrian
Differential Revision:  https://reviews.freebsd.org/D58100
DeltaFile
+10-14sys/dev/firewire/fwcam.c
+10-141 files

LLVM/project 720d986llvm/include/llvm/ProfileData SampleProfReader.h, llvm/lib/Transforms/IPO SampleProfileMatcher.cpp

[SampleProfile] Introduce SampleProfileNameSet (NFC) (#208114)

This patch introduces a helper class SampleProfileNameSet to
encapsulate the construction of the name set and provide a contains
method.

I'm planning to speed up the membership queries into the name table.
With this patch, changes to the underlying data structure won't affect
use sites.

Assisted-by: Antigravity
DeltaFile
+18-0llvm/include/llvm/ProfileData/SampleProfReader.h
+2-4llvm/lib/Transforms/IPO/SampleProfileMatcher.cpp
+20-42 files

LLVM/project 78b56d9llvm/include/llvm/ProfileData SampleProf.h SampleProfWriter.h, llvm/lib/ProfileData SampleProfWriter.cpp SampleProfReader.cpp

[ProfileData] Support format version 104 for extensible binary sample profiles (#206297)

This patch adds initial support for format version 104 in extensible
binary sample profiles to support the upcoming on-disk hash table.
This patch sets up the versioning scheme in the reader and writer as a
preparation step without actually introducing the on-disk hash table.

The reader is updated to support format version 104.  The writer can
now write format version 104 profiles when requested via
-sample-profile-format-version, but continues to default to version
103 as version 104 is a work in progress.  We plan to promote the
default version to 104 once the on-disk hash table support is fully
integrated in a subsequent patch.

RFC:
https://discourse.llvm.org/t/rfc-faster-sample-profile-loading/90957/4

Assisted-by: Antigravity
DeltaFile
+99-0llvm/unittests/ProfileData/SampleProfTest.cpp
+17-0llvm/include/llvm/ProfileData/SampleProf.h
+11-1llvm/lib/ProfileData/SampleProfWriter.cpp
+10-0llvm/include/llvm/ProfileData/SampleProfWriter.h
+6-0llvm/include/llvm/ProfileData/SampleProfReader.h
+2-1llvm/lib/ProfileData/SampleProfReader.cpp
+145-26 files

FreeBSD/ports 5158bb2textproc/krep pkg-descr distinfo, textproc/krep/files patch-krep.c

textproc/krep: Update 2.4.0 => 3.0.0

Approved by:            db@, yuri@ (Mentors, implicit)
DeltaFile
+5-4textproc/krep/pkg-descr
+3-3textproc/krep/distinfo
+2-2textproc/krep/files/patch-krep.c
+1-1textproc/krep/Makefile
+11-104 files

LLVM/project 697bd97mlir/include/mlir/IR Block.h Region.h, mlir/lib/IR Region.cpp

Give each mlir::Block a stable ID within its parent region (#207617)

Assign each mlir::Block a stable ID within its parent region, mirroring
llvm::BasicBlock/llvm::Function (called ID, not number, since a block/op
number denotes position in MLIR): Block gains getBlockID() and reads -1u
while it has no parent region; Region gains nextBlockID with
getMaxBlockID() and getBlockIDEpoch(); the block ilist traits assign the
ID on add/transfer and invalidate it on removal; and
GraphTraits<mlir::Block*>/<mlir::Region*> expose
getNumber/getMaxNumber/getNumberEpoch. This makes
GraphHasNodeNumbers<mlir::Block*> true, moving MLIR's CFGLoopInfo and
dominator tree onto the number-indexed path. MLIR never renumbers
blocks,
so the epoch is a fixed 0.

Prerequisite for requiring GraphHasNodeNumbers in llvm::LoopInfoBase and
dropping its DenseMap fallback.

Aided by Claude Opus 4.8
DeltaFile
+19-0mlir/include/mlir/IR/Block.h
+18-0mlir/include/mlir/IR/Region.h
+10-3mlir/lib/IR/Region.cpp
+11-0mlir/include/mlir/IR/RegionGraphTraits.h
+58-34 files

LLVM/project 28711b8llvm/include/llvm/IR Instructions.h

Fix Typo
DeltaFile
+1-1llvm/include/llvm/IR/Instructions.h
+1-11 files

LLVM/project 3d6acefllvm/docs LangRef.md, llvm/include/llvm/IR Instructions.h

Update doc
DeltaFile
+11-4llvm/lib/IR/Instructions.cpp
+6-6llvm/unittests/IR/VerifierTest.cpp
+4-6llvm/docs/LangRef.md
+6-3llvm/include/llvm/IR/Instructions.h
+2-1llvm/lib/Bitcode/Reader/BitcodeReader.cpp
+2-1llvm/lib/AsmParser/LLParser.cpp
+31-216 files

LLVM/project e6ea217llvm/test/Assembler invalid-load-store-atomic-elementwise.ll

Add element non byte
DeltaFile
+8-0llvm/test/Assembler/invalid-load-store-atomic-elementwise.ll
+8-01 files

LLVM/project d775421llvm/docs LangRef.md, llvm/lib/Bitcode/Reader BitcodeReader.cpp

Update for comments
DeltaFile
+10-7llvm/docs/LangRef.md
+8-0llvm/test/Assembler/invalid-load-store-atomic-elementwise.ll
+1-3llvm/lib/Bitcode/Reader/BitcodeReader.cpp
+19-103 files

LLVM/project 6f28763llvm/docs LangRef.md, llvm/include/llvm/IR Instructions.h

Update for comments.
DeltaFile
+14-11llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
+3-9llvm/lib/IR/Instructions.cpp
+6-6llvm/docs/LangRef.md
+4-5llvm/include/llvm/IR/Instructions.h
+5-1llvm/lib/AsmParser/LLParser.cpp
+6-0llvm/test/Bitcode/compatibility.ll
+38-321 files not shown
+39-337 files

LLVM/project 6c30e60llvm/unittests/IR VerifierTest.cpp

Add verifier test
DeltaFile
+71-0llvm/unittests/IR/VerifierTest.cpp
+71-01 files

OpenBSD/src 6TBDzV9usr.bin/ssh monitor.c

   when signing hostkey proofs for a client UpdateHostKeys request,
   allow each hostkey to perform at most one signature operation.
   ok dtucker@
VersionDeltaFile
1.257+13-1usr.bin/ssh/monitor.c
+13-11 files

OpenBSD/src bY51At4usr.bin/ssh sshd-session.c

   setproctitle(3) to identify sshd-session when its acting as a post-
   authentication monitor; ok dtucker@
VersionDeltaFile
1.25+3-1usr.bin/ssh/sshd-session.c
+3-11 files

FreeBSD/ports 728220fmath/octave-forge-datatypes distinfo Makefile

math/octave-forge-datatypes: Update to 1.2.6.
DeltaFile
+3-3math/octave-forge-datatypes/distinfo
+1-1math/octave-forge-datatypes/Makefile
+4-42 files

LLVM/project 2592df6llvm/lib/Target/AMDGPU SIFoldOperands.cpp

[NFCI][AMDGPU] Change foldOperand to return changed (#208352)
DeltaFile
+29-24llvm/lib/Target/AMDGPU/SIFoldOperands.cpp
+29-241 files

LLVM/project 2df2a51clang/test/CodeGen/RISCV rvp-intrinsics.c, cross-project-tests/intrinsic-header-tests riscv_packed_simd.c

[RISCV][P-ext] Support Packed Saturating Absolute Value. (#207978)
DeltaFile
+84-0clang/test/CodeGen/RISCV/rvp-intrinsics.c
+23-7llvm/lib/Target/RISCV/RISCVISelLowering.cpp
+29-0llvm/test/CodeGen/RISCV/rvp-simd-64.ll
+19-0llvm/test/CodeGen/RISCV/rvp-simd-32.ll
+18-0llvm/lib/Target/RISCV/RISCVInstrInfoP.td
+18-0cross-project-tests/intrinsic-header-tests/riscv_packed_simd.c
+191-74 files not shown
+232-810 files

NetBSD/src Xe3vv8Ftests/kernel t_signal_and_fpu.c Makefile, tests/kernel/arch/x86 sig_fpu.c sig_fpu.h

   Verify signal delivery preserves various FPU state.

   Should also test AVX512 but I'm not sure I have hardware handy to do
   this right now and qemu doesn't emulate it, as far as I know!  TBD.
   (Plus: there's umpteen different cpuid feature bits to consider,
   annoyingly, and that means a lot of manual reading to sort through
   them.)

   PR kern/60426: Signal handler corrupts AVX (YMM) registers
VersionDeltaFile
1.1+556-0tests/kernel/arch/x86/sig_fpu.c
1.1+405-0tests/kernel/t_signal_and_fpu.c
1.1+49-0tests/kernel/arch/x86/sig_fpu.h
1.98+17-1tests/kernel/Makefile
+1,027-14 files

LLVM/project 4d62555llvm/docs LangRef.md, llvm/include/llvm/IR Instructions.h

[IR] Add elementwise modifier to atomic loads
DeltaFile
+33-0llvm/test/Assembler/invalid-load-store-atomic-elementwise.ll
+18-4llvm/lib/IR/Verifier.cpp
+15-6llvm/docs/LangRef.md
+14-3llvm/include/llvm/IR/Instructions.h
+14-2llvm/lib/AsmParser/LLParser.cpp
+16-0llvm/test/Bitcode/atomic-load-store-elementwise.ll
+110-156 files not shown
+140-2112 files

LLVM/project fc68a8bllvm/include/llvm/IR Instructions.h

Fix Typo
DeltaFile
+1-1llvm/include/llvm/IR/Instructions.h
+1-11 files

Illumos/gate 861094cusr/src/test/header-tests/tests/common cxx_symbols_test.c c_symbols_test.c

18192 header-tests programs could be improved
Reviewed by: Toomas Soome <tsoome at me.com>
Approved by: Dan McDonald <danmcd at edgecast.io>
DeltaFile
+0-1,210usr/src/test/header-tests/tests/common/cxx_symbols_test.c
+0-1,059usr/src/test/header-tests/tests/common/c_symbols_test.c
+952-0usr/src/test/header-tests/tests/common/symbol_test.py
+0-356usr/src/test/header-tests/tests/common/hdr_test_common.c
+163-0usr/src/test/header-tests/tests/common/test_gen_probe.py
+114-0usr/src/test/header-tests/tests/common/test_parse_env_cfg.py
+1,229-2,62510 files not shown
+1,469-2,82816 files