LLVM/project 8a7d3b8llvm/test/Transforms/InstCombine urem-via-cmp-select.ll

suppress fixpoint error
DeltaFile
+4-1llvm/test/Transforms/InstCombine/urem-via-cmp-select.ll
+4-11 files

FreeNAS/freenas a4bcdabsrc/middlewared/middlewared/apps webshell_app.py

NAS-140692 / 26.0.0-BETA.2 / remove LANG field in webshell app (by yocalebo) (#18750)

## Summary

Remove the hardcoded `LANG=en_US.UTF-8` from the web shell's exec
environment
so opening the web-based shell no longer prints bash locale warnings.
This is
an 8-year-old FreeNAS-era bug introduced in commit 45850b2871
(2017-06-28)
that survived the SCALE migration to Debian unexamined.

## Symptom

On every web shell session start, bash emits:

```
-bash: warning: setlocale: LC_CTYPE: cannot change locale (en_US.UTF-8): No such file or directory
-bash: warning: setlocale: LC_COLLATE: cannot change locale (en_US.UTF-8): No such file or directory

    [62 lines not shown]
DeltaFile
+0-1src/middlewared/middlewared/apps/webshell_app.py
+0-11 files

LLVM/project 09f6992clang/lib/AST/ByteCode Compiler.cpp, clang/test/AST/ByteCode unions.cpp

[clang][bytecode] Don't implicitly begin union member lifetime... (#192212)

... on assignment operator calls if the LHS type does not have a
non-deleted trivial default constructor.
DeltaFile
+35-0clang/test/AST/ByteCode/unions.cpp
+4-1clang/lib/AST/ByteCode/Compiler.cpp
+39-12 files

FreeNAS/freenas 2d72613src/middlewared/middlewared/pytest/unit/plugins test_libvirt_device_uniqueness.py, src/middlewared/middlewared/utils/libvirt utils.py nic.py

Prevent duplicate device attachment on VMs and containers
DeltaFile
+483-0src/middlewared/middlewared/pytest/unit/plugins/test_libvirt_device_uniqueness.py
+57-15src/middlewared/middlewared/utils/libvirt/utils.py
+9-0src/middlewared/middlewared/utils/libvirt/nic.py
+7-1src/middlewared/middlewared/utils/libvirt/pci.py
+8-0src/middlewared/middlewared/utils/libvirt/usb.py
+7-0src/middlewared/middlewared/utils/libvirt/gpu.py
+571-163 files not shown
+583-229 files

FreeNAS/freenas 8ec52c9src/middlewared/middlewared/apps webshell_app.py

remove LANG field in webshell app

(cherry picked from commit 839e669ccac773c87f0097f5de77ac86b3ff1263)
DeltaFile
+0-1src/middlewared/middlewared/apps/webshell_app.py
+0-11 files

FreeNAS/freenas 2b65faesrc/middlewared/middlewared/apps webshell_app.py

NAS-140692 / 27.0.0-BETA.1 / remove LANG field in webshell app (#18749)

## Summary

Remove the hardcoded `LANG=en_US.UTF-8` from the web shell's exec
environment
so opening the web-based shell no longer prints bash locale warnings.
This is
an 8-year-old FreeNAS-era bug introduced in commit 45850b2871
(2017-06-28)
that survived the SCALE migration to Debian unexamined.

## Symptom

On every web shell session start, bash emits:

```
-bash: warning: setlocale: LC_CTYPE: cannot change locale (en_US.UTF-8): No such file or directory
-bash: warning: setlocale: LC_COLLATE: cannot change locale (en_US.UTF-8): No such file or directory

    [58 lines not shown]
DeltaFile
+0-1src/middlewared/middlewared/apps/webshell_app.py
+0-11 files

FreeBSD/ports 1be546bsysutils/ocijail distinfo Makefile

sysutils/ocijail: Update to 0.5.1
DeltaFile
+3-3sysutils/ocijail/distinfo
+1-1sysutils/ocijail/Makefile
+4-42 files

LLVM/project 167e7e7flang/include/flang/Semantics openmp-utils.h, flang/lib/Semantics openmp-utils.cpp resolve-directives.cpp

[flang][OpenMP] Identify DO loops affected by loop-associated construct (#191719)

This is to identify iteration variables of DO loops affected by an
OpenMP loop construct. These variables are privatized as per
data-sharing rules.

Issue: https://github.com/llvm/llvm-project/issues/191249
DeltaFile
+96-0flang/lib/Semantics/openmp-utils.cpp
+33-36flang/lib/Semantics/resolve-directives.cpp
+27-0flang/test/Semantics/OpenMP/affected-loops.f90
+9-0flang/include/flang/Semantics/openmp-utils.h
+165-364 files

LLVM/project dd46e5flibsycl/src/detail device_kernel_info.hpp device_image_wrapper.hpp

fix comments

Signed-off-by: Tikhomirova, Kseniya <kseniya.tikhomirova at intel.com>
DeltaFile
+8-6libsycl/src/detail/device_kernel_info.hpp
+3-2libsycl/src/detail/device_image_wrapper.hpp
+1-1libsycl/src/detail/device_image_wrapper.cpp
+1-1libsycl/src/detail/program_manager.hpp
+13-104 files

LLVM/project 3865c61mlir/lib/Dialect/OpenMP/Utils Utils.cpp

simplify private clause check
DeltaFile
+10-13mlir/lib/Dialect/OpenMP/Utils/Utils.cpp
+10-131 files

LLVM/project 79b778fmlir/include/mlir/Dialect/OpenMP/Utils Utils.h, mlir/lib/Dialect/OpenMP/Transforms StackToShared.cpp CMakeLists.txt

[MLIR][OpenMP] Unify device shared memory logic

This patch creates a utils library for the OpenMP dialect with functions
used by MLIR to LLVM IR translation as well as the stack-to-shared pass
to determine which allocations must use local stack memory or device
shared memory.
DeltaFile
+104-0mlir/lib/Dialect/OpenMP/Utils/Utils.cpp
+10-93mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
+13-85mlir/lib/Dialect/OpenMP/Transforms/StackToShared.cpp
+53-0mlir/include/mlir/Dialect/OpenMP/Utils/Utils.h
+13-0mlir/lib/Dialect/OpenMP/Utils/CMakeLists.txt
+1-0mlir/lib/Dialect/OpenMP/Transforms/CMakeLists.txt
+194-1782 files not shown
+196-1788 files

LLVM/project 27de23fllvm/lib/DebugInfo/DWARF DWARFGdbIndex.cpp

[llvm][DebugInfo] Use formatv in DWARFGdbIndex (#191994)

This relates to #35980.

Co-authored-by: Sergei Barannikov <barannikov88 at gmail.com>
DeltaFile
+20-21llvm/lib/DebugInfo/DWARF/DWARFGdbIndex.cpp
+20-211 files

LLVM/project d9db30dflang/test/Integration/OpenMP threadprivate-target-device.f90

fix test after rebase
DeltaFile
+0-3flang/test/Integration/OpenMP/threadprivate-target-device.f90
+0-31 files

LLVM/project d3824c9flang/lib/Optimizer/OpenMP FunctionFiltering.cpp, flang/test/Lower/OpenMP declare-target-func-and-subr.f90 function-filtering-2.f90

add internal linkage to target device functions
DeltaFile
+23-23flang/test/Lower/OpenMP/declare-target-func-and-subr.f90
+26-19flang/test/Lower/OpenMP/function-filtering-2.f90
+22-22flang/test/Lower/OpenMP/declare-target-implicit-func-and-subr-cap.f90
+20-20flang/test/Lower/OpenMP/declare-target-implicit-func-and-subr-cap-enter.f90
+7-7flang/test/Lower/OpenMP/declare-target-implicit-tarop-cap.f90
+6-0flang/lib/Optimizer/OpenMP/FunctionFiltering.cpp
+104-916 files

LLVM/project d3a7802flang/lib/Optimizer/OpenMP FunctionFiltering.cpp, flang/test/Lower/OpenMP declare-target-func-and-subr.f90 function-filtering-2.f90

Revert "add internal linkage to target device functions"

This reverts commit 7dca66e67ed7f9309812790110543e07e5dde0e8.
DeltaFile
+23-23flang/test/Lower/OpenMP/declare-target-func-and-subr.f90
+19-26flang/test/Lower/OpenMP/function-filtering-2.f90
+22-22flang/test/Lower/OpenMP/declare-target-implicit-func-and-subr-cap.f90
+20-20flang/test/Lower/OpenMP/declare-target-implicit-func-and-subr-cap-enter.f90
+7-7flang/test/Lower/OpenMP/declare-target-implicit-tarop-cap.f90
+0-6flang/lib/Optimizer/OpenMP/FunctionFiltering.cpp
+91-1046 files

LLVM/project 39dcbccmlir/test/Target/LLVMIR openmp-target-private-shared-mem.mlir

update after rebase
DeltaFile
+2-2mlir/test/Target/LLVMIR/openmp-target-private-shared-mem.mlir
+2-21 files

LLVM/project 6c24024mlir/lib/Target/LLVMIR/Dialect/OpenMP OpenMPToLLVMIRTranslation.cpp

support other map-like clauses
DeltaFile
+13-3mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
+13-31 files

LLVM/project 25903e4llvm/include/llvm/Frontend/OpenMP OMPIRBuilder.h, llvm/lib/Frontend/OpenMP OMPIRBuilder.cpp

[MLIR][OpenMP][OMPIRBuilder] Improve shared memory checks

This patch refines checks to decide whether to use device shared memory or
regular stack allocations. In particular, it adds support for parallel regions
residing on standalone target device functions.

The changes are:
- Shared memory is introduced for `omp.target` implicit allocations, such as
those related to privatization and mapping, as long as they are shared across
threads in a nested parallel region.
- Standalone target device functions are interpreted as being part of a Generic
kernel, since the fact that they are present in the module after filtering
means they must be reachable from a target region.
- Prevent allocations whose only shared uses inside of an `omp.parallel` region
are as part of a `private` clause from being moved to device shared memory.
DeltaFile
+84-38mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
+109-0offload/test/offloading/fortran/target-generic-outlined-loops.f90
+22-16llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp
+4-4mlir/test/Target/LLVMIR/omptarget-parallel-llvm.mlir
+3-2llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
+2-2llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h
+224-626 files

LLVM/project f6188b3flang/test/Integration/OpenMP target-use-device-nested.f90 threadprivate-target-device.f90, mlir/lib/Target/LLVMIR/Dialect/OpenMP OpenMPToLLVMIRTranslation.cpp

add missing check
DeltaFile
+76-0mlir/test/Target/LLVMIR/openmp-target-private-shared-mem.mlir
+12-13flang/test/Integration/OpenMP/target-use-device-nested.f90
+6-5flang/test/Integration/OpenMP/threadprivate-target-device.f90
+6-1mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
+1-1mlir/test/Target/LLVMIR/omptarget-constant-alloca-raise.mlir
+101-205 files

LLVM/project 4d4214cflang/lib/Optimizer/OpenMP StackToShared.cpp, flang/test/Transforms/OpenMP stack-to-shared.mlir

move stack-to-shared pass to the omp dialect
DeltaFile
+0-215flang/test/Transforms/OpenMP/stack-to-shared.mlir
+188-0mlir/lib/Dialect/OpenMP/Transforms/StackToShared.cpp
+0-162flang/lib/Optimizer/OpenMP/StackToShared.cpp
+149-0mlir/test/Dialect/OpenMP/stack-to-shared.mlir
+1-22mlir/lib/Dialect/OpenMP/CMakeLists.txt
+21-0mlir/lib/Dialect/OpenMP/IR/CMakeLists.txt
+359-3999 files not shown
+408-42115 files

LLVM/project 53f0fadflang/include/flang/Optimizer/OpenMP Passes.td, flang/lib/Optimizer/OpenMP StackToShared.cpp CMakeLists.txt

[Flang][OpenMP] Add pass to replace allocas with device shared memory

This patch introduces a new Flang OpenMP MLIR pass, only ran for target device
modules, that identifies `fir.alloca` operations that should use device shared
memory and replaces them with pairs of `omp.alloc_shared_mem` and
`omp.free_shared_mem` operations.

This works in conjunction to the MLIR to LLVM IR translation pass' handling of
privatization, mapping and reductions in the OpenMP dialect to properly select
the right memory space for allocations based on where they are made and where
they are used.

This pass, in particular, handles explicit stack allocations in MLIR, whereas
the aforementioned translation pass takes care of implicit ones represented by
entry block arguments.
DeltaFile
+215-0flang/test/Transforms/OpenMP/stack-to-shared.mlir
+162-0flang/lib/Optimizer/OpenMP/StackToShared.cpp
+17-0flang/include/flang/Optimizer/OpenMP/Passes.td
+3-1flang/lib/Optimizer/Passes/Pipelines.cpp
+1-0flang/lib/Optimizer/OpenMP/CMakeLists.txt
+398-15 files

LLVM/project fb47438mlir/include/mlir/Dialect/OpenMP/Transforms Passes.td, mlir/lib/Dialect/OpenMP/Transforms StackToShared.cpp

update after rebase and address review comments
DeltaFile
+15-7mlir/lib/Dialect/OpenMP/Transforms/StackToShared.cpp
+7-7mlir/test/Dialect/OpenMP/stack-to-shared.mlir
+5-5mlir/include/mlir/Dialect/OpenMP/Transforms/Passes.td
+27-193 files

LLVM/project 7af0d4bmlir/include/mlir/Dialect/OpenMP OpenMPOps.td OpenMPClauses.td, mlir/lib/Target/LLVMIR/Dialect/OpenMP OpenMPToLLVMIRTranslation.cpp

address review comments: make omp.free_shared_mem self-contained, update alignment handling for shared memory allocations
DeltaFile
+25-26mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
+20-30mlir/include/mlir/Dialect/OpenMP/OpenMPOps.td
+37-0mlir/include/mlir/Dialect/OpenMP/OpenMPClauses.td
+15-8mlir/test/Dialect/OpenMP/invalid.mlir
+8-4mlir/test/Dialect/OpenMP/ops.mlir
+5-5mlir/test/Target/LLVMIR/omptarget-device-shared-mem.mlir
+110-731 files not shown
+112-787 files

LLVM/project 8fbeedeflang/lib/Optimizer/CodeGen CodeGenOpenMP.cpp, mlir/include/mlir/Dialect/OpenMP OpenMPOps.td

simplify omp.alloc_shared_mem
DeltaFile
+30-14mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
+42-0mlir/test/Target/LLVMIR/omptarget-device-shared-mem.mlir
+15-27flang/lib/Optimizer/CodeGen/CodeGenOpenMP.cpp
+28-9mlir/include/mlir/Dialect/OpenMP/OpenMPOps.td
+13-16mlir/test/Dialect/OpenMP/ops.mlir
+16-7mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp
+144-731 files not shown
+157-797 files

LLVM/project c417928flang/lib/Optimizer/CodeGen CodeGenOpenMP.cpp, llvm/include/llvm/Frontend/OpenMP OMPIRBuilder.h

[Flang][MLIR][OpenMP] Add explicit shared memory (de-)allocation ops

This patch introduces the `omp.alloc_shared_mem` and `omp.free_shared_mem`
operations to represent explicit allocations and deallocations of shared memory
across threads in a team, mirroring the existing `omp.target_allocmem` and
`omp.target_freemem`.

The `omp.alloc_shared_mem` op goes through the same Flang-specific
transformations as `omp.target_allocmem`, so that the size of the buffer can be
properly calculated when translating to LLVM IR.

The corresponding runtime functions produced for these new operations are
`__kmpc_alloc_shared` and `__kmpc_free_shared`, which previously could only be
created for implicit allocations (e.g. privatized and reduction variables).
DeltaFile
+56-8mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
+61-0mlir/include/mlir/Dialect/OpenMP/OpenMPOps.td
+27-15flang/lib/Optimizer/CodeGen/CodeGenOpenMP.cpp
+25-12llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
+29-2mlir/test/Dialect/OpenMP/ops.mlir
+23-0llvm/include/llvm/Frontend/OpenMP/OMPIRBuilder.h
+221-372 files not shown
+253-378 files

LLVM/project 56ed18dmlir/include/mlir/Dialect/OpenMP OpenMPOps.td OpenMPClauses.td, mlir/lib/Dialect/OpenMP/IR OpenMPDialect.cpp

[MLIR][OpenMP] Refactor omp.target_allocmem to allow reuse, NFC

This patch moves tablegen definitions that could be used for all kinds of heap
allocations out of `omp.target_allocmem` and into a new
`OpenMP_HeapAllocClause` that can be reused.

Descriptions are updated to follow the format of most other operations and the
custom verifier for `omp.target_allocmem` is removed as it only made a
redundant check on its result type.
DeltaFile
+52-101mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp
+30-44mlir/include/mlir/Dialect/OpenMP/OpenMPOps.td
+53-0mlir/include/mlir/Dialect/OpenMP/OpenMPClauses.td
+24-0mlir/test/Dialect/OpenMP/ops.mlir
+14-0mlir/test/Dialect/OpenMP/invalid.mlir
+173-1455 files

LLVM/project eb352cellvm/unittests/Frontend OpenMPIRBuilderTest.cpp

fix after rebase
DeltaFile
+7-6llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp
+7-61 files

LLVM/project 3d0d615llvm/lib/DebugInfo/LogicalView/Readers LVDWARFReader.cpp

[llvm][DebugInfo] Use formatv in LVDWARFReader (#192011)

This relates to #35980.
DeltaFile
+4-4llvm/lib/DebugInfo/LogicalView/Readers/LVDWARFReader.cpp
+4-41 files

HardenedBSD/src 60c80dalib/libc/gen sysctl.3, lib/libpmc pmclog.3

Merge remote-tracking branch 'origin/hardened/current/master' into hardened/current/cross-dso-cfi
DeltaFile
+21-28sys/x86/cpufreq/hwpstate_amd.c
+33-5sys/kern/kern_descrip.c
+27-2lib/libpmc/pmclog.3
+17-10lib/libc/gen/sysctl.3
+25-1usr.sbin/pmcstat/pmcstat.8
+21-3usr.bin/mkimg/mkimg.c
+144-4915 files not shown
+210-7821 files

HardenedBSD/src 2e0cba3lib/libc/gen sysctl.3, lib/libpmc pmclog.3

Merge branch 'freebsd/current/main' into hardened/current/master
DeltaFile
+21-28sys/x86/cpufreq/hwpstate_amd.c
+33-5sys/kern/kern_descrip.c
+27-2lib/libpmc/pmclog.3
+17-10lib/libc/gen/sysctl.3
+25-1usr.sbin/pmcstat/pmcstat.8
+21-3usr.bin/mkimg/mkimg.c
+144-4915 files not shown
+210-7821 files