LLVM/project 9f2351cclang/lib/CodeGen CodeGenModule.cpp, clang/test/CodeGenCUDA constexpr-variables.cu const-var.cu

[HIP] Do not apply 'externally_initialized' to constant device variables (#182157)

Summary:
From the Language reference:
> By default, global initializers are optimized by assuming that global
variables defined within the module are not modified from their initial
values before the start of the global initializer. This is true even for
variables potentially accessible from outside the module, including
those with external linkage or appearing in @llvm.used or dllexported
variables. This assumption may be suppressed by marking the variable
with externally_initialized.

This is intended because device programs can be modified beyond the
normal lifetime expected by the optimization pipeline. However, for
constant variables we should be able to safely assume that these are
truly constant within the module. In the vast majority of cases these
will not get externally visible symbols, but even `extern const` uses we
should assert that the user should not be writing them if they are
marked const.
DeltaFile
+4-4clang/test/CodeGenCUDA/constexpr-variables.cu
+2-2clang/test/CodeGenCUDA/const-var.cu
+2-2clang/test/CodeGenCUDA/host-used-device-var.cu
+2-1clang/lib/CodeGen/CodeGenModule.cpp
+10-94 files

LLVM/project 600919aclang/lib/Driver/ToolChains Clang.cpp, clang/test/Driver spirv-openmp-toolchain.c

[Offload][clang-linker-wrapper][SPIRV] Tell spirv-link to not optimize out exported symbols (#182930)

`spirv-link` seems to internalize all symbols, which ends up causing the
OpenMP Device Environment global generated by the OMP FE to get
optimized out which causes `liboffload` to run in the wrong
parallelization mode which breaks at least one liboffload lit test.

Pass `--create-library` to tell it not to do that.

```
  --create-library
               Link the binaries into a library, keeping all exported symbols.
```

This fixes the test.

Closes: https://github.com/llvm/llvm-project/issues/182901

Signed-off-by: Nick Sarnie <nick.sarnie at intel.com>
DeltaFile
+9-4clang/lib/Driver/ToolChains/Clang.cpp
+2-1clang/test/Driver/spirv-openmp-toolchain.c
+0-1offload/test/offloading/info.c
+11-63 files

FreeNAS/freenas 4596da1src/middlewared/middlewared/plugins/container migrate.py

Fix MatchNotFound when virt.global table is empty during container migration
DeltaFile
+3-2src/middlewared/middlewared/plugins/container/migrate.py
+3-21 files

LLVM/project 1ecc153clang/test/CIR/CodeGenCXX global-refs.cpp

[CIR] Fix global-refs test that got committed in github 'race' (#183068)

Despite my best efforts, this crossed in the air with the attributes on
arguments patch, and thus had a problem with the test. This patch
updates the test to be tolerant of the attributes.
DeltaFile
+5-5clang/test/CIR/CodeGenCXX/global-refs.cpp
+5-51 files

FreeNAS/freenas 25919e1src/middlewared/middlewared/plugins ntp.py, src/middlewared/middlewared/plugins/ntp peers.py __init__.py

Move ntp namespace to be typesafe
DeltaFile
+0-246src/middlewared/middlewared/plugins/ntp.py
+138-0src/middlewared/middlewared/plugins/ntp/peers.py
+86-0src/middlewared/middlewared/plugins/ntp/__init__.py
+59-0src/middlewared/middlewared/plugins/ntp/enums.py
+0-59src/middlewared/middlewared/plugins/ntp_/enums.py
+58-0src/middlewared/middlewared/plugins/ntp/crud.py
+341-3058 files not shown
+409-36314 files

OPNSense/plugins 24c4f9asysutils/nextcloud-backup/src/opnsense/mvc/app/library/OPNsense/Backup Nextcloud.php, sysutils/nextcloud-backup/src/opnsense/mvc/app/models/OPNsense/Backup NextcloudSettings.xml

os-nextcloud-backup Add option to upload to one file each day instead of syncing the contents of /conf/backup/ (#5200)

DeltaFile
+39-1sysutils/nextcloud-backup/src/opnsense/mvc/app/library/OPNsense/Backup/Nextcloud.php
+5-1sysutils/nextcloud-backup/src/opnsense/mvc/app/models/OPNsense/Backup/NextcloudSettings.xml
+44-22 files

LLVM/project d71c80ellvm/lib/ProfileData/Coverage CoverageMapping.cpp

Fixup for #125407, suppress CounterExpr errors
DeltaFile
+5-2llvm/lib/ProfileData/Coverage/CoverageMapping.cpp
+5-21 files

LLVM/project 2f09fe7mlir/lib/Dialect/Linalg/Transforms BufferizableOpInterfaceImpl.cpp, mlir/test/Dialect/Linalg bufferize.mlir

[mlir][linalg] Implement bufferization for UnPackOp. (#182837)

Signed-off-by: hanhanW <hanhan0912 at gmail.com>
DeltaFile
+39-0mlir/lib/Dialect/Linalg/Transforms/BufferizableOpInterfaceImpl.cpp
+16-0mlir/test/Dialect/Linalg/bufferize.mlir
+55-02 files

LLVM/project 0b6e122llvm/lib/ProfileData/Coverage CoverageMapping.cpp, llvm/test/tools/llvm-cov mcdc-macro.test

[MC/DC] Make covmap tolerant of nested Decisions (#125407)

CoverageMappingWriter reorders `Region`s by `endLoc DESC` to prioritize
wider `Decision` with the same `startLoc`.

In `llvm-cov`, tweak seeking Decisions by reversal order to find smaller
Decision first.

llvmorg-23-init-2321-g8f690ec7ffd8
DeltaFile
+142-175llvm/lib/ProfileData/Coverage/CoverageMapping.cpp
+7-7llvm/test/tools/llvm-cov/mcdc-macro.test
+149-1822 files

OPNSense/plugins 63fc544security/netbird Makefile, security/netbird/src/opnsense/mvc/app/controllers/OPNsense/Netbird/forms settings.xml

security/netbird: Add SSH configuration options (#5113)

DeltaFile
+30-0security/netbird/src/opnsense/mvc/app/controllers/OPNsense/Netbird/forms/settings.xml
+21-1security/netbird/src/opnsense/mvc/app/models/OPNsense/Netbird/Settings.xml
+5-0security/netbird/src/opnsense/mvc/app/models/OPNsense/Netbird/Settings.php
+1-1security/netbird/Makefile
+57-24 files

FreeNAS/freenas 7e8d822src/middlewared/middlewared/plugins/service_/services base.py nfs.py

NAS-139958 / 26.0.0-BETA.1 / fix misleading svc logs and timeout values (#18286)

We've got various misleading log messages in middlewared.log with the
recent service framework changes. They were saying services were timing
out but, in reality, they were not. We had hard-coded a 5 second timeout
that ignored reality. For example, the docker service sets a 900 second
timeout. The default timeout for a service that does not specify an
explicit timeout is 90 seconds.

This changes it so that we query the service to see if they have
specified a start/stop timeout and use that as the threshold for how
long we wait. Otherwise, we fallback to using the default systemd
timeout OR we use the timeout passed in by the caller.
DeltaFile
+101-16src/middlewared/middlewared/plugins/service_/services/base.py
+0-1src/middlewared/middlewared/plugins/service_/services/nfs.py
+0-1src/middlewared/middlewared/plugins/service_/services/truesearch.py
+101-183 files

FreeNAS/freenas d93b14esrc/middlewared/middlewared/etc_files nfs.conf.mako, src/middlewared/middlewared/plugins etc.py

Fix nfs etc group spam on first boot

During first boot we're generating etc files before we have a
system global id causing needless log spam. This commit has
us silently refuse to generate the nfs config if the server
doesn't have this required info yet.
DeltaFile
+6-1src/middlewared/middlewared/etc_files/nfs.conf.mako
+0-1src/middlewared/middlewared/plugins/etc.py
+6-22 files

LLVM/project 170a99dllvm/tools/llvm-gpu-loader llvm-gpu-loader.cpp

[LLVM] Fix accidentally included POSIX header on Windows

Summary:
This used to only build on Linux, I forgot that these changes would
cause it to be built on Windows.
DeltaFile
+0-1llvm/tools/llvm-gpu-loader/llvm-gpu-loader.cpp
+0-11 files

OPNSense/plugins cb77c1esecurity/tailscale/src/opnsense/mvc/app/models/OPNsense/Tailscale Authentication.xml

security/tailscale: model changes, default validation message is enough
DeltaFile
+1-4security/tailscale/src/opnsense/mvc/app/models/OPNsense/Tailscale/Authentication.xml
+1-41 files

OPNSense/core e06d2dbsrc/opnsense/mvc/app/controllers/OPNsense/Firewall/Api FilterBaseController.php FilterController.php, src/opnsense/mvc/app/views/OPNsense/Firewall filter_rule.volt nat_rule.volt

Firewall: Rules [new]: Remove hardcoded colors where possible (#9848)

* Firewall: Rules [new]: Turn hardcoded badge colors into inherited label colors, use chip class for badges in tabulator rows

* Remove hardcoded fallback color from categories as well

* Add empty string as fallback for category color, and do not render the style in frontend if color is empty, that way fa-tag default style can be used here

* Remove hardcoded category colors in NAT templates as well

* Different label for "any" rules, remove font-size

* We do not need to set category_colors, the frontend checks if it exists already
DeltaFile
+26-31src/opnsense/mvc/app/views/OPNsense/Firewall/filter_rule.volt
+18-14src/opnsense/mvc/app/views/OPNsense/Firewall/nat_rule.volt
+1-1src/opnsense/mvc/app/controllers/OPNsense/Firewall/Api/FilterBaseController.php
+0-1src/opnsense/mvc/app/controllers/OPNsense/Firewall/Api/FilterController.php
+45-474 files

LLVM/project 1eb8ab7llvm/lib/Target/AMDGPU VOPCInstructions.td, llvm/test/MC/AMDGPU gfx12_asm_vopcx.s gfx12_asm_vopc.s

[AMDGPU] Add VOPC to gfx13 (#182293)

Co-authored-by: Ivan Kosarev <ivan.kosarev at amd.com>
DeltaFile
+1,246-1,232llvm/test/MC/AMDGPU/gfx12_asm_vopcx.s
+737-721llvm/test/MC/Disassembler/AMDGPU/gfx12_dasm_vopcx.txt
+186-181llvm/lib/Target/AMDGPU/VOPCInstructions.td
+78-50llvm/test/MC/AMDGPU/gfx12_asm_vopc.s
+68-28llvm/test/MC/Disassembler/AMDGPU/gfx12_dasm_vopc.txt
+4-0llvm/test/MC/Disassembler/AMDGPU/gfx12_dasm_vopc_dpp16.txt
+2,319-2,21223 files not shown
+2,391-2,21229 files

FreeBSD/ports 41529c3sysutils/cbsd distinfo Makefile

sysutils/cbsd: Update to 15.0.4
DeltaFile
+3-3sysutils/cbsd/distinfo
+3-1sysutils/cbsd/Makefile
+1-0sysutils/cbsd/pkg-plist
+7-43 files

LLVM/project 0781e65clang/test/CodeGen arm_acle.c builtins-arm64.c, clang/test/Sema/AArch64 pcdphint-atomic-store.c

fixup! Fix more PR comments
DeltaFile
+19-9clang/test/Sema/AArch64/pcdphint-atomic-store.c
+8-6llvm/test/CodeGen/AArch64/pcdphint-atomic-store.ll
+10-0clang/test/CodeGen/arm_acle.c
+0-9llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
+5-0clang/test/CodeGen/builtins-arm64.c
+0-4llvm/include/llvm/IR/IntrinsicsAArch64.td
+42-282 files not shown
+44-328 files

LLVM/project 4e7d8e2llvm/include/llvm/IR IntrinsicsAArch64.td, llvm/lib/Target/AArch64 AArch64InstrFormats.td

fixup! remove mayLoad/mayStore as suggested by Kerry
DeltaFile
+0-5llvm/lib/Target/AArch64/AArch64InstrFormats.td
+1-1llvm/include/llvm/IR/IntrinsicsAArch64.td
+1-62 files

LLVM/project 6bb16fcclang/include/clang/Basic DiagnosticSemaKinds.td, clang/lib/CodeGen/TargetBuiltins ARM.cpp

fixup! Fix issues Kerry raised in PR
DeltaFile
+10-23clang/lib/Sema/SemaARM.cpp
+16-11clang/test/Sema/AArch64/pcdphint-atomic-store.c
+5-12clang/lib/CodeGen/TargetBuiltins/ARM.cpp
+1-5clang/include/clang/Basic/DiagnosticSemaKinds.td
+32-514 files

LLVM/project 3d65e32clang/lib/CodeGen/TargetBuiltins ARM.cpp, clang/test/CodeGen/AArch64 pcdphint-atomic-store.c

fixup! Ensure stshh always immediately precedes a store instruction
DeltaFile
+82-0llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
+50-13clang/test/CodeGen/AArch64/pcdphint-atomic-store.c
+62-0llvm/lib/Target/AArch64/AArch64ExpandPseudoInsts.cpp
+20-26clang/lib/CodeGen/TargetBuiltins/ARM.cpp
+15-0llvm/lib/Target/AArch64/AArch64InstrInfo.td
+8-3llvm/lib/Target/AArch64/AArch64InstrFormats.td
+237-423 files not shown
+248-499 files

LLVM/project 1409926clang/include/clang/Basic BuiltinsAArch64.def, clang/lib/CodeGen/TargetBuiltins ARM.cpp

fixup!

More small issues tidied, and remove gating.
DeltaFile
+6-2clang/test/Sema/AArch64/pcdphint-atomic-store.c
+2-2clang/lib/CodeGen/TargetBuiltins/ARM.cpp
+0-2clang/lib/Headers/arm_acle.h
+1-1clang/lib/Sema/SemaARM.cpp
+1-1clang/test/CodeGen/AArch64/pcdphint-atomic-store.c
+1-1clang/include/clang/Basic/BuiltinsAArch64.def
+11-96 files

LLVM/project b986581clang/include/clang/Basic DiagnosticSemaKinds.td, clang/lib/CodeGen/TargetBuiltins ARM.cpp

fixup! Fix Kerry's CR comments and add negative test for "must be an integer type"
DeltaFile
+16-6llvm/test/CodeGen/AArch64/pcdphint-atomic-store.ll
+3-7clang/lib/CodeGen/TargetBuiltins/ARM.cpp
+3-3clang/lib/Sema/SemaARM.cpp
+5-0clang/test/Sema/AArch64/pcdphint-atomic-store.c
+3-0clang/include/clang/Basic/DiagnosticSemaKinds.td
+1-1clang/lib/Headers/arm_acle.h
+31-176 files

LLVM/project 29b38cfclang/include/clang/Basic DiagnosticSemaKinds.td, clang/lib/CodeGen/TargetBuiltins ARM.cpp

fixup! Improve error diagnostics, and other cleanups
DeltaFile
+12-0llvm/test/CodeGen/AArch64/pcdphint-atomic-store.ll
+4-2clang/lib/Sema/SemaARM.cpp
+2-1clang/lib/CodeGen/TargetBuiltins/ARM.cpp
+1-1clang/include/clang/Basic/DiagnosticSemaKinds.td
+2-0clang/lib/Headers/arm_acle.h
+1-1clang/test/Sema/AArch64/pcdphint-atomic-store.c
+22-56 files

LLVM/project cd6426dclang/lib/CodeGen/TargetBuiltins ARM.cpp, clang/test/Sema/AArch64 pcdphint-atomic-store.c

fixup!

A few small tidyups
DeltaFile
+7-6clang/lib/CodeGen/TargetBuiltins/ARM.cpp
+4-4llvm/lib/Target/AArch64/AArch64InstrFormats.td
+4-0clang/test/Sema/AArch64/pcdphint-atomic-store.c
+15-103 files

LLVM/project 28d3ae5clang/lib/CodeGen/TargetBuiltins ARM.cpp, clang/lib/Sema SemaARM.cpp

[AArch64][clang][llvm] Add ACLE `stshh` atomic store builtin

Add `__arm_atomic_store_with_stshh` implementation as defined
in the ACLE. Validate that the arguments passed are correct, and
lower it to the stshh intrinsic plus an atomic store with the
allowed orderings.

Gate this on FEAT_PCDPHINT so that availability matches
hardware support for the `STSHH` instruction. Use an i64
immediate and side-effect modeling to satisfy tablegen and decoding.
DeltaFile
+140-0clang/lib/Sema/SemaARM.cpp
+48-0clang/lib/CodeGen/TargetBuiltins/ARM.cpp
+31-0clang/test/CodeGen/AArch64/pcdphint-atomic-store.c
+29-0clang/test/Sema/AArch64/pcdphint-atomic-store.c
+13-0llvm/lib/Target/AArch64/Disassembler/AArch64Disassembler.cpp
+10-2llvm/lib/Target/AArch64/AArch64InstrFormats.td
+271-25 files not shown
+298-211 files

LLVM/project 6738c46llvm/tools/llvm-gpu-loader CMakeLists.txt

[LLVM] Add missing binary format dependency to llvm-gpu-loader
DeltaFile
+2-1llvm/tools/llvm-gpu-loader/CMakeLists.txt
+2-11 files

LLVM/project 3c20913llvm/lib/Analysis IVDescriptors.cpp, llvm/test/Transforms/LoopVectorize reduction-with-invariant-store.ll

[IVDesc] Reject invariant stores  in different blocks.

We cannot compare stores in different blocks.

Fixes https://github.com/llvm/llvm-project/issues/182879
DeltaFile
+55-0llvm/test/Transforms/LoopVectorize/reduction-with-invariant-store.ll
+6-2llvm/lib/Analysis/IVDescriptors.cpp
+61-22 files

FreeBSD/src f4f9054sbin/camcontrol camcontrol.c

camcontrol: Print 'transport revision'

As described in Serial ATA Revision 3.5a

Reviewed by:    mav
Pull Request:   https://github.com/freebsd/freebsd-src/pull/2044
DeltaFile
+29-0sbin/camcontrol/camcontrol.c
+29-01 files

LLVM/project 049cfdalibc/startup/gpu/amdgpu start.cpp, libc/startup/gpu/nvptx start.cpp

[LLVM] Port 'llvm-gpu-loader' to use LLVMOffload (#162739)

Summary:
This patch rewrites the `llvm-gpu-loader` utility to use the LLVMOffload
interface. This heavily simplifies it while re-using the already
existing support. Another benefit is that I can now easily do this
dynamically so we can always build this utility without needing to find
non-standard packages.

One issue is mentioned in
https://github.com/llvm/llvm-project/issues/159636 where this will now
take extra time if you have both installed on the same machine. This is
just slightly annoying since most people don't have both CUDA and ROCm
at the same time so I don't consider it a blocker. I will work later to
address it.

Slightly unfortunate environment variable usage, I will also expose that
better in the future.

Fixes: https://github.com/llvm/llvm-project/issues/132890
DeltaFile
+0-593llvm/tools/llvm-gpu-loader/amdhsa.cpp
+0-367llvm/tools/llvm-gpu-loader/nvptx.cpp
+221-78llvm/tools/llvm-gpu-loader/llvm-gpu-loader.cpp
+177-89llvm/tools/llvm-gpu-loader/llvm-gpu-loader.h
+0-78libc/startup/gpu/nvptx/start.cpp
+0-76libc/startup/gpu/amdgpu/start.cpp
+398-1,2818 files not shown
+457-1,41414 files