LLVM/project 47c919aclang/lib/Driver Driver.cpp, clang/test/Driver cl-outputs.c

[clang][Driver] Ensure intermediate bitcode files are written according to `/Fo` (#189977)

With the following compilation process:

```
$ mkdir -p src/ tmp/
$ cat << 'EOF' > src/main.c
int main() { return 0; }
EOF
$ clang-cl /c /Fo:tmp/ /clang:-fembed-bitcode src/main.c
```

the object file `main.obj` is generated in the `tmp/` directory but the
intermediate `main.bc` is placed in the current working directory.

This PR ensures that intermediate `.bc` files are written to the same
directory specified by `/Fo`.
DeltaFile
+16-0clang/test/Driver/cl-outputs.c
+4-2clang/lib/Driver/Driver.cpp
+20-22 files

LLVM/project fa7f5cflibc/shared rpc.h

[libc] Fix 'finish()' being called by the client instead of the server (#191226)

Summary:
This function is supposed to manage the doorbell interrupts. The flow
that was intended was that the client notified work to wake the server
and the server finished the work so it didn't go back to sleep until
everything was done. This was reversed and we had the client finishing
work and then stalling on it.
DeltaFile
+1-1libc/shared/rpc.h
+1-11 files

LLVM/project cacd862libc/config/linux/aarch64 headers.txt, libc/config/linux/riscv headers.txt

[libc] Add a redirecting <syscall.h> header. (#191069)

The amount of legacy code including `<syscall.h>` header instead of
`<sys/syscall.h>` (which is the regular header location on Linux
systems) out there is large.

Add a simple one-liner redirecting header to fix this compatibility
issues. In this PR I omit the regular licensing blurb at the top, given
the transient nature of this file, but I'm happy to add this if needed.
Also, given that it's effectively a compatibility shim, YAML generation
is not used.
DeltaFile
+5-0libc/include/CMakeLists.txt
+1-0libc/config/linux/riscv/headers.txt
+1-0libc/include/syscall.h
+1-0libc/config/linux/aarch64/headers.txt
+1-0libc/config/linux/x86_64/headers.txt
+9-05 files

FreeBSD/src f86ba3esys/dev/hwpmc hwpmc_ibs.c

hwpmc: prevent IBS fetch from getting stuck

Both fetch and op IBS sampling have the same problem where we need to
rewrite the control MSR to ensure sampling continues at the correct
rate.  I also like this because it resets the counter reducing the
chances that we collect a sample inside the NMI handler.

Reported by:    Aalok Agarwal
Reviewed by:    mhorne
Sponsored by:   Netflix
Fixes:  e51ef8ae490f ("hwpmc: Initial support for AMD IBS")
Pull Request:   https://github.com/freebsd/freebsd-src/pull/2130
DeltaFile
+2-0sys/dev/hwpmc/hwpmc_ibs.c
+2-01 files

FreeBSD/src 7a1aacasys/dev/hwpmc hwpmc_ibs.c hwpmc_ibs.h

hwpmc: Fix bug when stopping ibs-op

In ibs_stop_pmc I accidently cleared the fetch max count value rather
than the op max count value, when stopping the op counter.  This
mitigates a bug in early pre-zen processors, but breaks using both
counters simultaneously.  I also found that the max op count mask needs
to be extended for recent zen processors.

Reported by:    Andre Fernando da Silva
Reviewed by:    mhorne
Sponsored by:   Netflix
Fixes:  e51ef8ae490f ("hwpmc: Initial support for AMD IBS")
Pull Request:   https://github.com/freebsd/freebsd-src/pull/2120
DeltaFile
+2-2sys/dev/hwpmc/hwpmc_ibs.c
+1-1sys/dev/hwpmc/hwpmc_ibs.h
+3-32 files

FreeNAS/freenas 6c53a53src/middlewared/middlewared/utils/lio config.py

flake8
DeltaFile
+4-4src/middlewared/middlewared/utils/lio/config.py
+4-41 files

LLVM/project e3adaf0clang/lib/Serialization ModuleCache.cpp

[clang][modules] Close module file descriptors (#191227)

This was missed in the original PR and was causing "too many files open"
errors on real workloads.
DeltaFile
+2-0clang/lib/Serialization/ModuleCache.cpp
+2-01 files

LLVM/project e468e0allvm/lib/Analysis DependenceAnalysis.cpp, llvm/test/Analysis/DependenceAnalysis gcd-miv-overflow.ll

[DA] Fix overflow of findBoundsALL in BanerjeeTest

Fix signed overflow handling in `findBoundsALL` for the Banerjee test.
The previous implementation computed bounds using `getMinusSCEV` and
`getMulExpr` without checking for signed overflow, which could produce
incorrect bounds when coefficients have extreme values.

- Add `mulSCEVNoSignedOverflow` helper function that checks for
multiplication overflow before computing the result
- Use `minusSCEVNoSignedOverflow` and `mulSCEVNoSignedOverflow` in
`findBoundsALL` to safely compute bounds, returning `nullptr`
when overflow would occur
DeltaFile
+7-19llvm/test/Analysis/DependenceAnalysis/gcd-miv-overflow.ll
+19-4llvm/lib/Analysis/DependenceAnalysis.cpp
+26-232 files

LLVM/project 20b6ec6clang/test CMakeLists.txt

[clang][ssaf] Fix CLANG_PLUGIN_SUPPORT=OFF SSAFExamplePlugin cmake errors (#191229)

Such builds would fail with:

```
...
CMake Error at cmake/modules/AddLLVM.cmake:2245 (add_dependencies):
  The dependency target "SSAFExamplePlugin" of target
  "check-clang-utils-update_cc_test_checks" does not exist.
...
```

This fixes it by using the same condition for the test dependency as is
used for deciding to build the plugin in
clang/lib/ScalableStaticAnalysisFramework/Plugins/CMakeLists.txt
DeltaFile
+1-1clang/test/CMakeLists.txt
+1-11 files

LLVM/project 22a250dllvm/include/llvm/ADT PostOrderIterator.h

docs

Created using spr 1.3.8-wip
DeltaFile
+38-1llvm/include/llvm/ADT/PostOrderIterator.h
+38-11 files

LLVM/project e9c78bellvm/include/llvm/MC MCAssembler.h, llvm/lib/MC MCAssembler.cpp

Reland [MC] Fuse relaxation and layout into a single forward pass (#190318)

This relands debb2514ea7f, which was reverted by #189548 due to ARM
spurious `cbz` out of range error (Chromium, Android).

---

Replace the two-pass inner loop in relaxOnce (relaxFragment +
layoutSection) with a single forward pass that sets each fragment's
offset before processing it.

- Extract relaxAlign from layoutSection's FT_Align handling and call
  it from relaxFragment. FT_Align padding is computed inline with the
  tracked Offset, so alignment fragments always see fresh upstream
  offsets. This structurally eliminates the O(N) convergence pitfall
  where stale offsets caused each iteration to fix only one more
  alignment fragment.

- The new MCAssembler::Stretch field tracks the cumulative upstream size

    [55 lines not shown]
DeltaFile
+52-37llvm/lib/MC/MCAssembler.cpp
+14-5llvm/lib/Target/ARM/MCTargetDesc/ARMAsmBackend.cpp
+6-8llvm/test/MC/ELF/relax-branch-align.s
+7-4llvm/lib/Target/CSKY/MCTargetDesc/CSKYAsmBackend.cpp
+7-1llvm/include/llvm/MC/MCAssembler.h
+4-4llvm/test/MC/ARM/thumb-ldr-stretch.s
+90-592 files not shown
+99-658 files

FreeBSD/src 2f3dcbbsys/dev/hwpmc hwpmc_mod.c

hwpmc: Fix compile warning

.../sys/dev/hwpmc/hwpmc_mod.c:4640:1: warning: unused function 'pmc_is_multipart' [-Wunused-function]
 4640 | pmc_is_multipart(struct pmc_sample *ps)
      | ^~~~~~~~~~~~~~~~
1 warning generated.

Reviewed by:    mhorne
Fixes:          e51ef8ae490f - main - hwpmc: Initial support for AMD IBS
Sponsored by:   Chelsio Communications
Differential Revision:  https://reviews.freebsd.org/D56296
DeltaFile
+0-7sys/dev/hwpmc/hwpmc_mod.c
+0-71 files

OPNSense/core df34601. plist, src/opnsense/mvc/app/models/OPNsense/Base/Menu MenuSystem.php MenuContainer.php

MVC: add support for pluggable dynamic menu items and move some existing parts out of the MenuSystem class

In most cases we use static menu registartions, but there are exceptions which depend on interfaces for example.
While looking at https://github.com/opnsense/core/pull/10033, a longer standing wish came up again, which is the reason to add this support right now. It also helps in removing some legacy components for good via plugins.

To register new menu items, the following pattern may be used:

* In your model, derive a Menu class from MenuContainer
* implement a method collect() which should add new menu items via the appendItem() {bound to appendItem in MenuSystem}

Always try to minimize the amount of code inside these plugins as this code will be executed on each page load.
DeltaFile
+59-163src/opnsense/mvc/app/models/OPNsense/Base/Menu/MenuSystem.php
+129-0src/opnsense/mvc/app/models/OPNsense/Interfaces/Menu/Menu.php
+98-0src/opnsense/mvc/app/models/OPNsense/Firewall/Menu/Menu.php
+49-0src/opnsense/mvc/app/models/OPNsense/Base/Menu/MenuContainer.php
+3-0plist
+338-1635 files

LLVM/project e77ac80clang/test/CodeGen/AArch64/sve-intrinsics acle_sve_ldff1.c, clang/test/CodeGen/AArch64/sve2p1-intrinsics acle_sve2p1_store_struct.c acle_sve2p1_load_struct.c

[LLVM][AArch64] Remove addrspace(0) restriction from all SVE/SME memory intrinsics. (#189992)

This requirement was not intentional, just the result of convenience.

Fixes: https://github.com/llvm/llvm-project/issues/183265

---------

Co-authored-by: nikhil-m-k <nikhil_mk at yahoo.com>
DeltaFile
+156-156clang/test/CodeGen/AArch64/sve2p1-intrinsics/acle_sve2p1_store_struct.c
+154-154clang/test/CodeGen/AArch64/sve2p1-intrinsics/acle_sve2p1_load_struct.c
+100-100clang/test/CodeGen/AArch64/sve-intrinsics/acle_sve_ldff1.c
+96-96clang/test/CodeGen/AArch64/sve2p1-intrinsics/acle_sve2p1_ld1.c
+96-96clang/test/CodeGen/AArch64/sve2p1-intrinsics/acle_sve2p1_stnt1.c
+96-96clang/test/CodeGen/AArch64/sve2p1-intrinsics/acle_sve2p1_ldnt1.c
+698-69879 files not shown
+2,952-2,82485 files

NetBSD/src I4u9YtNshare/man/man3 makedev.3

   PR/60136: Yamamoto Takashi: Document major/minor to reflect reality.
VersionDeltaFile
1.3+10-6share/man/man3/makedev.3
+10-61 files

LLVM/project 070d708libcxx/utils/ci/lnt run-benchbot

[libc++] Minor tweaks to run-benchbot (#191233)

- Support multiple runs of run-benchbot on the same commit
- Add support for passing a path to SPEC
DeltaFile
+24-1libcxx/utils/ci/lnt/run-benchbot
+24-11 files

FreeBSD/ports 65b43c6ports-mgmt/appstream-generator Makefile pkg-plist, ports-mgmt/appstream-generator/files patch-contrib_setup_build__js.sh

ports-mgmt/appstream-generator: Install JavaScript assets
DeltaFile
+18-2ports-mgmt/appstream-generator/Makefile
+19-0ports-mgmt/appstream-generator/pkg-plist
+16-0ports-mgmt/appstream-generator/files/patch-contrib_setup_build__js.sh
+3-1ports-mgmt/appstream-generator/distinfo
+56-34 files

LLVM/project 857a98ecompiler-rt/lib/sanitizer_common sanitizer_mac.cpp sanitizer_mac.h

[compiler-rt] [Darwin] Move macOS ASAN reservation above 512G (#191039)

On macOS, the first 512G may contain platform-specific reservations. To
ensure compatibility with these reservations, this changes ASAN to
always map shadow memory above 512G on macOS.

rdar://174252720
DeltaFile
+29-0compiler-rt/lib/sanitizer_common/sanitizer_mac.cpp
+5-0compiler-rt/lib/sanitizer_common/sanitizer_mac.h
+34-02 files

LLVM/project 9d38eballvm/lib/Transforms/InstCombine InstCombineAddSub.cpp, llvm/test/Transforms/InstCombine sub-xor-cmp.ll

[InstCombine][ProfCheck] Mark unknown select profiles in sub xor fold (#191192)

Mark the weights as explicitly unknown given we cannot statically infer
the weights without value profiling due to the select being synthesized
from a binary operation.
DeltaFile
+12-6llvm/test/Transforms/InstCombine/sub-xor-cmp.ll
+2-2llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp
+14-82 files

LLVM/project 091bd3fflang/include/flang/Semantics openmp-utils.h, flang/lib/Semantics openmp-utils.cpp

[flang][OpenMP] Add optional SemanticsContext parameter to loop utilities

Some of the utilities may be used in symbol resolution which is before
the expression analysis is done. In such situations, the typedExpr's
normally stored in parser::Expr may not be available.
To be able to obtain numeric values of expressions, using the analyzer
directly may be necessary, which requires SemanticsContext to be provided.
DeltaFile
+46-28flang/lib/Semantics/openmp-utils.cpp
+28-11flang/include/flang/Semantics/openmp-utils.h
+74-392 files

FreeNAS/freenas 9d41683src/freenas/usr/local/bin truenas-initrd.py

Fix some more incorrect usage
DeltaFile
+3-4src/freenas/usr/local/bin/truenas-initrd.py
+3-41 files

LLVM/project e21759fllvm/lib/Analysis BasicAliasAnalysis.cpp, llvm/test/Analysis/BasicAA gep-decompose-bitcast-vector-type-mismatch.ll

[BasicAA] Fix assertion failure in alias() caused by non-pointer base in DecomposeGEPExpression (#191180)

When stripping a bitcast in DecomposeGEPExpression, the resulting
operand may have a non-scalar-pointer type (e.g. <1 x ptr>). Proceeding
with such a type as the decomposition base violates the AA assumption
that all pointers are scalar pointer types, triggering an assertion
failure on alias() call.

Add a type check in the bitcast/addrspacecast handling path to return
not stripped V as base when the stripped operand is not a scalar pointer
type.

Add a lit test verifying no crash on valid IR containing such a bitcast,
and checking that the alias query conservatively returns MayAlias.

Fixes #191157
DeltaFile
+14-0llvm/test/Analysis/BasicAA/gep-decompose-bitcast-vector-type-mismatch.ll
+5-3llvm/lib/Analysis/BasicAliasAnalysis.cpp
+19-32 files

LLVM/project 163aa0ellvm/lib/Analysis DependenceAnalysis.cpp, llvm/test/Analysis/DependenceAnalysis gcd-miv-overflow.ll

[DA] Fix overflow of findBoundsALL in BanerjeeTest

Fix signed overflow handling in `findBoundsALL` for the Banerjee test.
The previous implementation computed bounds using `getMinusSCEV` and
`getMulExpr` without checking for signed overflow, which could produce
incorrect bounds when coefficients have extreme values.

- Add `mulSCEVNoSignedOverflow` helper function that checks for
multiplication overflow before computing the result
- Use `minusSCEVNoSignedOverflow` and `mulSCEVNoSignedOverflow` in
`findBoundsALL` to safely compute bounds, returning `nullptr`
when overflow would occur
DeltaFile
+7-19llvm/test/Analysis/DependenceAnalysis/gcd-miv-overflow.ll
+19-4llvm/lib/Analysis/DependenceAnalysis.cpp
+26-232 files

NetBSD/src USmnYarexternal/bsd/blocklist/diff named.diff

   updare for bind-9.20.22
VersionDeltaFile
1.3+137-192external/bsd/blocklist/diff/named.diff
+137-1921 files

FreeNAS/freenas 6698b8csrc/middlewared/middlewared/plugins/zfs_ validation_utils.py

Fix
DeltaFile
+3-3src/middlewared/middlewared/plugins/zfs_/validation_utils.py
+3-31 files

FreeBSD/src f916091share/man/man7 tuning.7

tuning.7: Fix suds typo in manual pages

MFC after:              3 days
Fixes:                  fc32c802158f Add two new manual pages
Differential Revision:  https://reviews.freebsd.org/D55814
DeltaFile
+2-2share/man/man7/tuning.7
+2-21 files

LLVM/project 6a12adbllvm/test/CodeGen/BPF struct_ret1.ll struct_ret2.ll

[bpf] make tests endian agnostic (#191206)

fix s390 failures:
https://lab.llvm.org/buildbot/#/builders/42/builds/8534

Signed-off-by: Alexei Starovoitov <ast at kernel.org>
Co-authored-by: Alexei Starovoitov <ast at kernel.org>
DeltaFile
+1-1llvm/test/CodeGen/BPF/struct_ret1.ll
+1-1llvm/test/CodeGen/BPF/struct_ret2.ll
+2-22 files

LLVM/project 212a216llvm/lib/Target/AMDGPU AMDGPURegBankLegalizeRules.cpp, llvm/test/CodeGen/AMDGPU llvm.amdgcn.fdot2.f16.f16.ll

AMDGPU/GlobalISel: RegBankLegalize rules for fdot2 (#191066)
DeltaFile
+28-4llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.fdot2.ll
+7-3llvm/test/CodeGen/AMDGPU/llvm.amdgcn.fdot2.f16.f16.ll
+5-1llvm/lib/Target/AMDGPU/AMDGPURegBankLegalizeRules.cpp
+40-83 files

LLVM/project 260f014clang/lib/Headers/hlsl hlsl_alias_intrinsics.h, llvm/test/tools/llvm-mca/RISCV/SiFiveX390 vector-fp.s

rebase

Created using spr 1.3.7
DeltaFile
+0-4,851llvm/test/tools/llvm-mca/RISCV/SiFiveX390/vector-fp.s
+4,526-0llvm/test/tools/llvm-mca/RISCV/SiFiveX390/rvv/arithmetic.test
+4-3,875clang/lib/Headers/hlsl/hlsl_alias_intrinsics.h
+3,706-0llvm/test/tools/llvm-mca/RISCV/SiFiveX390/rvv/fp.test
+3,126-0llvm/test/tools/llvm-mca/RISCV/SiFiveX390/rvv/vlseg-vsseg.test
+2,878-0llvm/test/tools/llvm-mca/RISCV/SiFiveX390/rvv/bitwise.test
+14,240-8,7261,459 files not shown
+74,870-34,7251,465 files

LLVM/project 275e204llvm/include/llvm/ADT SmallVector.h

drop old comment

Created using spr 1.3.8-wip
DeltaFile
+0-3llvm/include/llvm/ADT/SmallVector.h
+0-31 files