LLVM/project 7e667c3lldb/include/lldb/Target StackFrameList.h, lldb/source/Target StackFrameList.cpp

[lldb] Use llvm::sys::RWMutex instead of std::shared_mutex (NFC) (#197847)

On Darwin, pthread_rwlock is faster than std::shared_mutex, which is why
the implementation of llvm::sys::RWMutex used that on our platform.
Everywhere else, it uses std::shared_mutex under the hood.

Also see #70151

rdar://177113951
DeltaFile
+11-11lldb/source/Target/StackFrameList.cpp
+4-5lldb/include/lldb/Target/StackFrameList.h
+15-162 files

LLVM/project 81e41bdllvm/lib/MC DXContainerInfo.cpp, utils/bazel/llvm-project-overlay/llvm BUILD.bazel

[Bazel] Port ca6e386cbf5b3e75a2a62e6c4d29b24109727a52 (#197841)

obj2yaml now depends on MC (although probably not for much), and remove
an unnecessary header creating a layering violation.
DeltaFile
+1-0utils/bazel/llvm-project-overlay/llvm/BUILD.bazel
+0-1llvm/lib/MC/DXContainerInfo.cpp
+1-12 files

LLVM/project 42b563bflang/lib/Optimizer/OpenMP MapInfoFinalization.cpp, flang/test/Integration/OpenMP map-types-and-sizes.f90

[Flang][OpenMP][Offload] Modify MapInfoFinalization to handle attach mapping and 6.1's ref_* and attach map keywords (#177715)

This PR is one of four required to implement the attach mapping
semantics in Flang, alongside the ref_ptr/ref_ptee/ref_ptr_ptee map
modifiers and the attach(always/never/auto) modifiers.

This PR is the MapInfoFinalization changes required to support these
features, it mainly deals with applying the correct attach map type and
manipulating the descriptor types maps for base address and descriptor
so that when we specify ref_ptr/ref_ptee we emit one of the two maps and
when we emit ref_ptr_ptee we emit our usual default maps. In all cases
we add the "glue" of an new attach map except in cases where a user has
provided attach never. In cases where we are provided an always, we
apply the always map type to our attach maps.

It's important to note the runtime has a toggle for the auto map
behavior, which will flip the attach behavior to the newer semantics or
the older semantics for backwards compatibility (outside the purview of
this PR but good to mention).
DeltaFile
+715-332flang/lib/Optimizer/OpenMP/MapInfoFinalization.cpp
+388-284mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
+273-0mlir/test/Target/LLVMIR/omptarget-host-ref-semantics.mlir
+101-165flang/test/Integration/OpenMP/map-types-and-sizes.f90
+107-0flang/test/Lower/OpenMP/attach-and-ref-modifier.f90
+30-61mlir/test/Target/LLVMIR/omptarget-record-type-with-ptr-member-host.mlir
+1,614-84264 files not shown
+2,300-1,21470 files

LLVM/project 21e436fclang/lib/Analysis/LifetimeSafety LifetimeAnnotations.cpp, clang/test/Sema warn-lifetime-safety-lifetimebound.cpp

[LifetimeSafety] Recognize declarations nested under std namespace (#197604)

Previously `isInStlNamespace()` only checked the immediate declaration
context. This missed declarations nested below `std` through records or
intermediate namespaces, such as `std::basic_string_view` constructors.

This commit fixes the problem by walking the `DeclContext` chain in
`isInStlNamespace`.

Closes #197454
DeltaFile
+12-11clang/lib/Analysis/LifetimeSafety/LifetimeAnnotations.cpp
+4-0clang/test/Sema/warn-lifetime-safety-lifetimebound.cpp
+3-0clang/test/Sema/Inputs/lifetime-analysis.h
+19-113 files

FreeBSD/src 73ec43arelease/tools ec2-small.conf basic-cloudinit.conf

Cloud releases: More firstboot_pkg_upgrade

Update a couple more cloudware images which I forgot about earlier.

Approved by:    re (cperciva)
Reviewed by:    ziaee
Fixes: 464a351267dc ("Cloud releases: Switch to firstboot_pkg_upgrade")
Differential Revision:  https://reviews.freebsd.org/D57006

(cherry picked from commit 4080419d9a2d88d44d20baaf3ea01934561819c1)
(cherry picked from commit 1ae97c95d025277fb542936b0a2686180dd4a7b7)
DeltaFile
+6-3release/tools/ec2-small.conf
+4-3release/tools/basic-cloudinit.conf
+10-62 files

FreeBSD/src 10c4498release/tools ec2-base.conf azure.conf

Cloud releases: Switch to firstboot_pkg_upgrade

Cloud images are deployed with base system packages. Introduce a
firstboot package auto updater to patch the base system on first boot.

Approved by:    re (cperciva)
MFC after:              1 hour
MFC to:                 stable/15
Reviewed by:            cperciva
Sponsored by:           Google Cloud
Differential Revision:  https://reviews.freebsd.org/D56890

(cherry picked from commit 464a351267dc0d1843b919dd72ad1c70c24815ce)
(cherry picked from commit 0bb2b2a45f3c0c147d7c55e010be45e55af8df87)
DeltaFile
+6-3release/tools/ec2-base.conf
+3-2release/tools/azure.conf
+3-2release/tools/gce.conf
+12-73 files

OpenBSD/ports jnWnq4qdevel/ruby-prof distinfo Makefile, devel/ruby-prof/pkg PLIST

   Update to ruby-prof 2.0.4
VersionDeltaFile
1.9+39-4devel/ruby-prof/pkg/PLIST
1.8+2-2devel/ruby-prof/distinfo
1.22+1-1devel/ruby-prof/Makefile
+42-73 files

OpenBSD/ports iKClgvclang/ruby/4.0 distinfo Makefile, lang/ruby/4.0/patches patch-class_c patch-configure

   Update to Ruby 4.0.4

   Add a patch to remove non-ASCII characters that break the rdoc generation.
VersionDeltaFile
1.1+19-0lang/ruby/4.0/patches/patch-class_c
1.5+7-5lang/ruby/4.0/pkg/PLIST-main
1.5+2-4lang/ruby/4.0/distinfo
1.2+3-3lang/ruby/4.0/patches/patch-configure
1.10+2-3lang/ruby/4.0/Makefile
1.4+3-0lang/ruby/4.0/pkg/PLIST-ri_docs
+36-151 files not shown
+37-167 files

FreeBSD/src ac2daabsys/conf newvers.sh

15.1: Update to BETA3

Approved by:    re (implicit)
Sponsored by:   OpenSats Initiative
DeltaFile
+1-1sys/conf/newvers.sh
+1-11 files

FreeBSD/src a02091dshare/man/man7 freebsd-base.7

freebsd-base.7: Document adding a local repo

Approved by:    re (cperciva)
MFC after:              1 day
Discussed with:         bcr, ivy, kevans, ngie
Differential Revision:  https://reviews.freebsd.org/D56608

(cherry picked from commit c4af3f13a4e9932968d92872aaf22312a6e79e4e)
(cherry picked from commit 635743c6ec35f11434339f79222fb0a259ed8bfb)
DeltaFile
+22-1share/man/man7/freebsd-base.7
+22-11 files

FreeBSD/src 409247asys/contrib/openzfs/lib/libzfs/os/linux libzfs_mount_os.c, sys/contrib/openzfs/module/os/linux/zfs zpl_super.c zfs_vfsops.c

zfs: merge openzfs/zfs at 6330a45b0 (zfs-2.4-release) into stable/15

OpenZFS 2.4.2

Notable upstream pull request merges:
 #18208 6f14581e1 Cleanup allocation class selection
 #18235 7590972f7 Prevent range tree corruption race by updating
                  dnode_sync()
 #18255 b06caaeec range_tree: use zfs_panic_recover() for partial-overlap
                  remove
 #18258 33961142a Fix deadlock on dmu_tx_assign() from vdev_rebuild()
 #18262 02ed09106 Fix check for .cfi_negate_ra_state on aarch64
 #18263 9f92266b7 Fix redundant declaration of dsl_pool_t
 #18276 3862aadf7 Fix vdev_rebuild_range() tx commit
 #18290 a94b137aa FreeBSD: Improve dmesg kernel message prefix
 #18294 938c8c98b draid: fix data corruption after disk clear
 #18310 b40cd9191 Fix s_active leak in zfsvfs_hold() when z_unmounted is
                  true
 #18380 9b8ccbd2c draid: fix import failure after disks replacements

    [16 lines not shown]
DeltaFile
+619-118sys/contrib/openzfs/module/os/linux/zfs/zpl_super.c
+24-207sys/contrib/openzfs/module/os/linux/zfs/zfs_vfsops.c
+152-0sys/contrib/openzfs/tests/zfs-tests/tests/functional/redundancy/redundancy_draid_degraded2.ksh
+143-0sys/contrib/openzfs/lib/libzfs/os/linux/libzfs_mount_os.c
+136-0sys/contrib/openzfs/tests/zfs-tests/tests/functional/redundancy/redundancy_draid_degraded1.ksh
+126-0sys/contrib/openzfs/tests/zfs-tests/cmd/setlease.c
+1,200-325313 files not shown
+3,284-867319 files

FreeBSD/ports 7a04d20devel/nextest distinfo Makefile

devel/nextest: update 0.9.134 → 0.9.135
DeltaFile
+3-3devel/nextest/distinfo
+1-2devel/nextest/Makefile
+4-52 files

FreeBSD/ports d02be6dmisc/lean-ctx Makefile distinfo

misc/lean-ctx: update 3.5.25 → 3.6.0
DeltaFile
+2-5misc/lean-ctx/Makefile
+3-3misc/lean-ctx/distinfo
+5-82 files

LLVM/project 439d42fclang/test/CIR/CodeGen cleanup-scope-goto-out.cpp, clang/test/CodeGen builtins-nvptx-mma.cu

[𝘀𝗽𝗿] changes to main this commit is based on

Created using spr 1.3.6-beta.1

[skip ci]
DeltaFile
+3,706-328llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-load-local.mir
+344-258llvm/test/CodeGen/AMDGPU/llvm.amdgcn.kill.ll
+284-284clang/test/CodeGen/builtins-nvptx-mma.cu
+246-112llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-load-store-s16-true16.mir
+356-0clang/test/CIR/CodeGen/cleanup-scope-goto-out.cpp
+318-0llvm/lib/Transforms/IPO/Instrumentor.cpp
+5,254-982543 files not shown
+9,367-2,635549 files

LLVM/project 7022d6dclang/test/CIR/CodeGen cleanup-scope-goto-out.cpp, clang/test/CodeGen builtins-nvptx-mma.cu

[𝘀𝗽𝗿] initial version

Created using spr 1.3.6-beta.1
DeltaFile
+3,706-328llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-load-local.mir
+395-389llvm/utils/gn/secondary/clang/lib/Headers/BUILD.gn
+344-258llvm/test/CodeGen/AMDGPU/llvm.amdgcn.kill.ll
+284-284clang/test/CodeGen/builtins-nvptx-mma.cu
+246-112llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-load-store-s16-true16.mir
+356-0clang/test/CIR/CodeGen/cleanup-scope-goto-out.cpp
+5,331-1,371573 files not shown
+9,970-3,154579 files

LLVM/project 6c1381eclang/test/CIR/CodeGen cleanup-scope-goto-out.cpp, clang/test/CodeGen builtins-nvptx-mma.cu

[𝘀𝗽𝗿] initial version

Created using spr 1.3.6-beta.1
DeltaFile
+3,706-328llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-load-local.mir
+344-258llvm/test/CodeGen/AMDGPU/llvm.amdgcn.kill.ll
+284-284clang/test/CodeGen/builtins-nvptx-mma.cu
+246-112llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-load-store-s16-true16.mir
+356-0clang/test/CIR/CodeGen/cleanup-scope-goto-out.cpp
+318-0llvm/lib/Transforms/IPO/Instrumentor.cpp
+5,254-982544 files not shown
+9,367-2,637550 files

LLVM/project fda2694clang/test/CIR/CodeGen cleanup-scope-goto-out.cpp, clang/test/CodeGen builtins-nvptx-mma.cu

[𝘀𝗽𝗿] changes to main this commit is based on

Created using spr 1.3.6-beta.1

[skip ci]
DeltaFile
+3,706-328llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-load-local.mir
+344-258llvm/test/CodeGen/AMDGPU/llvm.amdgcn.kill.ll
+284-284clang/test/CodeGen/builtins-nvptx-mma.cu
+246-112llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-load-store-s16-true16.mir
+356-0clang/test/CIR/CodeGen/cleanup-scope-goto-out.cpp
+318-0llvm/lib/Transforms/IPO/Instrumentor.cpp
+5,254-982543 files not shown
+9,367-2,635549 files

FreeBSD/ports ea82850math/4ti2 distinfo Makefile

math/4ti2: update 1_6_13 → 1.6.15
DeltaFile
+3-3math/4ti2/distinfo
+3-2math/4ti2/Makefile
+6-52 files

FreeBSD/src 635743cshare/man/man7 freebsd-base.7

freebsd-base.7: Document adding a local repo

MFC after:              1 day
Discussed with:         bcr, ivy, kevans, ngie
Differential Revision:  https://reviews.freebsd.org/D56608

(cherry picked from commit c4af3f13a4e9932968d92872aaf22312a6e79e4e)
DeltaFile
+22-1share/man/man7/freebsd-base.7
+22-11 files

LLVM/project 8095cbaflang/test/Integration/OpenMP map-types-and-sizes.f90, mlir/lib/Target/LLVMIR/Dialect/OpenMP OpenMPToLLVMIRTranslation.cpp

[OpenMP][MLIR] Modify OpenMP Dialect lowering to support attach mapping (#179023)

This PR adjusts the LLVM-IR lowering to support the new attach map type
that the runtime uses to link data and pointer together, this swaps the
mapping from the older OMP_MAP_PTR_AND_OBJ map type in most cases and
allows slightly more complicated ref_ptr/ptee and attach semantics.
DeltaFile
+378-281mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
+273-0mlir/test/Target/LLVMIR/omptarget-host-ref-semantics.mlir
+101-165flang/test/Integration/OpenMP/map-types-and-sizes.f90
+27-58mlir/test/Target/LLVMIR/omptarget-record-type-with-ptr-member-host.mlir
+70-0offload/test/offloading/fortran/map_attach_always.f90
+55-0offload/test/offloading/fortran/map_attach_never.f90
+904-50415 files not shown
+1,077-59821 files

OpenBSD/src mQtr82husr.sbin/ypldap ypldap.c

   If the main process receives an oversized passwd or group entry message from
   the ldap client process, discard it rather than overflowing the struct
   idm_req on the stack.

   Pointed out by Frank Denis
   ok claudio@
VersionDeltaFile
1.32+5-1usr.sbin/ypldap/ypldap.c
+5-11 files

FreeBSD/ports 48b74femisc/github-copilot-cli pkg-plist distinfo, misc/github-copilot-cli/files package-lock.json

misc/github-copilot-cli: update 1.0.44 → 1.0.48
DeltaFile
+28-28misc/github-copilot-cli/files/package-lock.json
+0-9misc/github-copilot-cli/pkg-plist
+3-3misc/github-copilot-cli/distinfo
+1-1misc/github-copilot-cli/Makefile
+32-414 files

LLVM/project 646edb0clang-tools-extra/clang-tidy/bugprone NotNullTerminatedResultCheck.cpp, clang-tools-extra/modularize Modularize.cpp

[clang][NFC] Remove `macro_begin` and `macro_end` from `Preprocessor` (#197817)

Use `macros()` wherever posible. This gives us the following advantages:

1. We can use the range-base for loop for simpler looking code.
2. We more ergonomically use algorithms.
3. We can avoid the duplicate work of checking if we need to call
`ExternalSource->ReadDefinedMacros()` that was in both `macro_begin` and
`macro_end`. In some cases, we save this extra work once per loop
iteration, not just one extra total.
4. No user confusion deciding which version they should call
5. Reduce the size of `Preprocessor.h` and the number of members in
`Preprocessor`.

Using `macros` ends up being the better solution in every case, so since
all callers were migrated from `macro_begin` and `macro_end` to
`macros`, get rid of `macro_begin` and `macro_end`.

---------

Co-authored-by: Victor Chernyakin <chernyakin.victor.j at outlook.com>
DeltaFile
+17-26clang-tools-extra/clang-tidy/bugprone/NotNullTerminatedResultCheck.cpp
+7-20clang/lib/Lex/Preprocessor.cpp
+9-14lldb/source/Plugins/ExpressionParser/Clang/ClangModulesDeclVendor.cpp
+6-10clang/lib/Sema/SemaCodeComplete.cpp
+1-8clang/include/clang/Lex/Preprocessor.h
+3-5clang-tools-extra/modularize/Modularize.cpp
+43-832 files not shown
+50-908 files

FreeBSD/ports bb1b30etextproc/libfyaml pkg-plist distinfo

textproc/libfyaml: update 0.9.3 → 0.9.6
DeltaFile
+16-0textproc/libfyaml/pkg-plist
+3-3textproc/libfyaml/distinfo
+1-1textproc/libfyaml/Makefile
+20-43 files

FreeBSD/ports 5f0adfadevel/nextest distinfo Makefile

devel/nextest: update 0.9.133 → 0.9.134
DeltaFile
+141-49devel/nextest/distinfo
+71-25devel/nextest/Makefile
+212-742 files

FreeBSD/ports 7abd4fbdevel/py-ruff distinfo Makefile, devel/ruff distinfo Makefile.crates

devel/{,py-}ruff: update 0.15.12 → 0.15.13
DeltaFile
+35-33devel/ruff/distinfo
+35-33devel/py-ruff/distinfo
+17-16devel/py-ruff/Makefile
+16-15devel/ruff/Makefile.crates
+1-1devel/ruff/Makefile
+104-985 files

FreeBSD/ports e656573devel/mrc distinfo Makefile, devel/mrc/files patch-src_mrc.cpp

devel/mrc: update 1.3.16 → 1.3.17
DeltaFile
+0-12devel/mrc/files/patch-src_mrc.cpp
+3-3devel/mrc/distinfo
+1-2devel/mrc/Makefile
+4-173 files

LLVM/project b2e29falldb/source/Plugins/SymbolFile/DWARF DWARFASTParserClang.cpp

[lldb][Clang] Removed redundant code in DWARFASTParserClang (#197802)

decl_up is initialized here but doesn't appear to be used or moved
anywhere before it goes out of scope. If the Declaration info isn't
needed for the FunctionSP, it should probably be removed.
DeltaFile
+0-5lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp
+0-51 files

LLVM/project 545f162clang/docs ReleaseNotes.rst, clang/lib/AST ExprConstant.cpp

[clang] Implement constexpr DesignatedInitUpdateExpr. (#196427)

DesignatedInitUpdateExpr exists to handle some obscure edge cases in C,
where the usual InitListExpr canonicalization can't be performed.
Previously, we didn't need constant evaluation for this, but C23
constexpr means we need to evaluate this before codegen.

Implementation is mostly straightforward: just need to evaluate the two
subexpressions, in order, and skip any NoInitExprs.

Along the way, I ran into an issue with the way we manage array APValues
for non-bytecode constant evaluation; fix reallocation to work
correctly.

Fixes #193373.  Fixes #196450.
DeltaFile
+51-15clang/lib/AST/ExprConstant.cpp
+21-1clang/lib/AST/ByteCode/Compiler.cpp
+14-0clang/test/Sema/constexpr.c
+10-0clang/test/SemaCXX/cxx2c-constexpr-placement-new.cpp
+2-0clang/docs/ReleaseNotes.rst
+1-0clang/lib/AST/ByteCode/Compiler.h
+99-166 files

FreeBSD/src 074c42a. RELNOTES

RELNOTES: Add an entry for commit b92b9da33006
DeltaFile
+5-0RELNOTES
+5-01 files