LLVM/project b53cc9fllvm/test/CodeGen/AMDGPU llvm.exp10.f64.ll llvm.exp.f64.ll, llvm/test/CodeGen/RISCV clmul.ll clmulr.ll

Merge branch 'main' into users/evelez7/clang-doc-markdown-mustache
DeltaFile
+25,051-14,920llvm/test/CodeGen/RISCV/clmul.ll
+16,004-0llvm/test/MC/AMDGPU/gfx13_asm_vopd3.s
+13,198-0llvm/test/CodeGen/RISCV/clmulr.ll
+12,863-0llvm/test/CodeGen/RISCV/clmulh.ll
+11,178-0llvm/test/CodeGen/AMDGPU/llvm.exp10.f64.ll
+10,242-0llvm/test/CodeGen/AMDGPU/llvm.exp.f64.ll
+88,536-14,9205,570 files not shown
+407,476-142,2165,576 files

FreeBSD/src 82069fasys/netlink netlink_snl_route_parsers.h

snl: Remove duplicate rta_expires member in route parser

There is no user for `rta_expires` member and it's
duplicate of `rta_expire`.

Reviewed By: melifaro
Differential Revision: https://reviews.freebsd.org/D55445
DeltaFile
+0-1sys/netlink/netlink_snl_route_parsers.h
+0-11 files

FreeNAS/freenas e5198a7src/middlewared/middlewared/plugins/filesystem_ utils.py

Fix double-close introduced by stupid tooling
DeltaFile
+1-6src/middlewared/middlewared/plugins/filesystem_/utils.py
+1-61 files

FreeBSD/doc 931f2b2website/content/en/releases/15.0R relnotes.adoc

15.0/relnotes: Fix "canonical" typo

PR:             291384
Reported by:    grahamperrin
DeltaFile
+1-1website/content/en/releases/15.0R/relnotes.adoc
+1-11 files

OpenBSD/src 2jbX11Qsys/kern kern_pledge.c

   delete pledge_sysctl() printing of the failing mibs, because it truncates
   it's buffer, produces misleading output, and is pointless tty output,
   Like with other system calls failuress, the standard pledge_fail() tty output
   should lead the user to use ktrace which will provide an accurate view.
   from deraadt@; discussed with bluhm

   this is errata/7.7/022_pledge_sysctl.patch.sig
VersionDeltaFile
1.323.4.2+1-11sys/kern/kern_pledge.c
+1-111 files

OpenBSD/src 9cQd0vjsys/kern kern_pledge.c

   delete pledge_sysctl() printing of the failing mibs, because it truncates
   it's buffer, produces misleading output, and is pointless tty output,
   Like with other system calls failuress, the standard pledge_fail() tty output
   should lead the user to use ktrace which will provide an accurate view.
   from deraadt@; discussed with bluhm

   this is errata/7.8/016_pledge_sysctl.patch.sig
VersionDeltaFile
1.333.2.1+1-11sys/kern/kern_pledge.c
+1-111 files

FreeNAS/freenas 64a27f2src/middlewared/middlewared/api/v26_0_0 acl.py, src/middlewared/middlewared/plugins/filesystem_ acl.py utils.py

Deprecate some code clean up some stuff
DeltaFile
+51-91src/middlewared/middlewared/plugins/filesystem_/acl.py
+22-62src/middlewared/middlewared/plugins/filesystem_/utils.py
+1-10src/middlewared/middlewared/plugins/filesystem_/acl_template.py
+0-4src/middlewared/middlewared/api/v26_0_0/acl.py
+74-1674 files

OpenBSD/src G9pKZa8gnu/usr.bin/binutils-2.17/binutils objdump.c, usr.bin/calendar calendar.c

   replace pledge "stdio rpath tmppath" with unveil "/tmp" "rwc" to satisfy
   mktemp(3) type operations, unveil "/" "r" for reading all over the tree,
   and pledge "stdio rpath wpath cpath" to permit both unveils subject to
   their own limitations.

   pledge "rpath tmppath" is replace with unveil "/" "r", unveil "/tmp" "rwc",
   and "rpath wpath cpath"
   from deraadt@; ok semarie

   This was using pledge "tmppath" with "rpath wpath cpath".
   The "tmppath" is not needed.
   from deraadt@; ok semarie and others

   uses tmpfile(), which is why it used "tmppath", which is why it now
   needs "rpath wpath cpath"
   from deraadt@; spotted by brynet

   Instead of pledge "tmppath rpath", setup a "rwc" unveil on "/tmp", a
   "r" unveil on "/", and then pledge "rpath wpath cpath".

    [28 lines not shown]
VersionDeltaFile
1.265.6.1+37-9usr.bin/mandoc/main.c
1.37.28.1+7-3usr.bin/calendar/calendar.c
1.68.12.1+6-2usr.bin/diff/diff.c
1.229.4.1+4-2usr.bin/nc/netcat.c
1.21.6.1+4-2usr.sbin/smtpd/smtpc.c
1.2.40.1+5-1gnu/usr.bin/binutils-2.17/binutils/objdump.c
+63-198 files not shown
+80-3614 files

OpenBSD/src F3kMYCfgnu/usr.bin/binutils-2.17/binutils objdump.c, usr.bin/calendar calendar.c

   replace pledge "stdio rpath tmppath" with unveil "/tmp" "rwc" to satisfy
   mktemp(3) type operations, unveil "/" "r" for reading all over the tree,
   and pledge "stdio rpath wpath cpath" to permit both unveils subject to
   their own limitations.

   pledge "rpath tmppath" is replace with unveil "/" "r", unveil "/tmp" "rwc",
   and "rpath wpath cpath"
   from deraadt@; ok semarie

   This was using pledge "tmppath" with "rpath wpath cpath".
   The "tmppath" is not needed.
   from deraadt@; ok semarie and others

   uses tmpfile(), which is why it used "tmppath", which is why it now
   needs "rpath wpath cpath"
   from deraadt@; spotted by brynet

   Instead of pledge "tmppath rpath", setup a "rwc" unveil on "/tmp", a
   "r" unveil on "/", and then pledge "rpath wpath cpath".

    [28 lines not shown]
VersionDeltaFile
1.267.2.1+37-9usr.bin/mandoc/main.c
1.37.26.1+7-3usr.bin/calendar/calendar.c
1.68.10.1+6-2usr.bin/diff/diff.c
1.77.4.1+3-3usr.bin/patch/patch.c
1.2.38.1+5-1gnu/usr.bin/binutils-2.17/binutils/objdump.c
1.234.2.1+4-2usr.bin/nc/netcat.c
+62-208 files not shown
+80-3614 files

LLVM/project 1073951mlir/lib/Dialect/ControlFlow/IR ControlFlowOps.cpp, mlir/test/Dialect/ControlFlow canonicalize.mlir

[mlir][cf] Fix crash in simplifyBrToBlockWithSinglePred when branch operand is a block argument of its successor (#183797)

When `simplifyBrToBlockWithSinglePred` merges a block into its sole
predecessor, it calls `inlineBlockBefore` which replaces each block
argument with the corresponding value passed by the branch. If one of
those values is itself a block argument of the successor block, the call
`replaceAllUsesWith(arg, arg)` is a no-op. Any uses of that argument
outside the block (e.g. in a downstream block) are therefore not
replaced, and when the successor block is erased the argument is
destroyed while those uses are still live, triggering the assertion
`use_empty() && "Cannot destroy a value that still has uses\!"` in
`IRObjectWithUseList::~IRObjectWithUseList`.

Guard against this by returning early when any branch operand is a block
argument owned by the destination block.

Fixes #126213
DeltaFile
+30-0mlir/test/Dialect/ControlFlow/canonicalize.mlir
+8-0mlir/lib/Dialect/ControlFlow/IR/ControlFlowOps.cpp
+38-02 files

LLVM/project d0afaeaclang/lib/Lex HeaderSearch.cpp, clang/test/Modules lazy-by-header-extern.c lazy-by-header-umbrella-dir.c

[clang][modulemap] Lazily load module maps by header name (#181916)

After header search has found a header it looks for module maps that
cover that header. This patch uses the parsed representation of module
maps to do this search instead of relying on FileEntryRef lookups after
stating headers in module maps.

This behavior is currently gated behind the
`-fmodules-lazy-load-module-maps` `-cc1` flag.
DeltaFile
+237-43clang/lib/Lex/HeaderSearch.cpp
+69-0clang/test/Modules/lazy-by-header-extern.c
+66-0clang/test/Modules/lazy-by-header-umbrella-dir.c
+46-0clang/test/Modules/lazy-by-header-umbrella-header.c
+46-0clang/test/Modules/lazy-by-header-nested.c
+41-0clang/test/Modules/lazy-by-header-private.c
+505-439 files not shown
+667-5515 files

NetBSD/pkgsrc Fe9EsTTlicenses lha-license

   licenses/lha-license: Convert to UTF-8
VersionDeltaFile
1.2+38-37licenses/lha-license
+38-371 files

LLVM/project 977702cclang/docs ReleaseNotes.rst, clang/lib/Sema SemaExpr.cpp

[clang] fix crash when casting a parenthesized unresolved template-id (#183633)

this fix uses ignoreparens() in checkplaceholderexpr to prevent a crash
when an unresolved template-id is wrapped in parentheses. fixes #183505
DeltaFile
+8-0clang/test/SemaCXX/gh183505.cpp
+2-2clang/lib/Sema/SemaExpr.cpp
+1-0clang/docs/ReleaseNotes.rst
+11-23 files

LLVM/project 2c98566clang/include/clang/Basic DiagnosticDriverKinds.td, clang/include/clang/Options Options.td

Revert "[Metal][HLSL] Add support for dumping reflection" (#183818)

Reverts llvm/llvm-project#181258

`env PATH=""` will prevent finding any binary run by `env`.
DeltaFile
+0-22clang/lib/Driver/ToolChains/HLSL.cpp
+0-8clang/test/Driver/HLSL/fre-errors.hlsl
+0-8clang/test/Driver/HLSL/metal-converter.hlsl
+0-2clang/include/clang/Basic/DiagnosticDriverKinds.td
+0-2clang/include/clang/Options/Options.td
+0-425 files

LLVM/project 02ebe23clang/docs AddressSanitizer.rst

[ASan] Document limitations of container overflow checks (#183590)

Mention that partially poisoning stack objects can
lead to false positives and negatives.

See #182720.

---------

Co-authored-by: Saleem Abdulrasool <compnerd at compnerd.org>
DeltaFile
+5-2clang/docs/AddressSanitizer.rst
+5-21 files

FreeNAS/freenas 88c1072src/middlewared/middlewared main.py, src/middlewared/middlewared/migration 0011_catalog_community_train.py

fix migration
DeltaFile
+26-0src/middlewared/middlewared/main.py
+7-4src/middlewared/middlewared/migration/0011_catalog_community_train.py
+33-42 files

LLVM/project 05c3152clang/lib/AST DeclTemplate.cpp, clang/test/SemaTemplate GH181062.cpp

[clang] Backport: fix transformation of substituted constant template parameters of partial specializations

This fixes a helper so it implements retrieval of the argument replaced
for a template parameter for partial spcializations.

This was left out of the original patch, since it's quite hard to actually test.

This helper implements the retrieval for variable templates, but only for
completeness sake, as no current users rely on this, and I don't think a similar
test case is possible to implement with variable templates.

This fixes a regression introduced in #161029 which will be backported to llvm-22,
so there are no release notes.

Backport from #183348

Fixes #181062
Fixes #181410
DeltaFile
+24-0clang/test/SemaTemplate/GH181062.cpp
+10-10clang/lib/AST/DeclTemplate.cpp
+34-102 files

LLVM/project 1c043afclang/lib/AST ASTContext.cpp, clang/test/SemaTemplate GH183075.cpp

[clang] Backport: allow canonicalizing assumed template names

Assumed template names are part of error recovery and encode just a
declaration name, making them always canonical. This patch allows
them to be canonicalized, which is trivial.

Backport from #183222

Fixes #183075
DeltaFile
+13-0clang/test/SemaTemplate/GH183075.cpp
+5-2clang/lib/AST/ASTContext.cpp
+18-22 files

LLVM/project c8fa3f4clang/lib/Sema SemaCXXScopeSpec.cpp, clang/test/SemaCXX GH167120.cpp

[clang] Backport: NestedNameSpecifier typo correction fix

This stops typo correction from considering template parameters
as candidates for a NestedNameSpecifier when it has a prefix itself.

I think this is better than the alternative of accepting these candidates,
but otherwise droping the prefix, because it seems more far-fetched that
someone would actually try to refer to a template parameter this way.

Since this regression was never released, there are no release notes.

Backport from #181239

Fixes #167120
DeltaFile
+11-4clang/lib/Sema/SemaCXXScopeSpec.cpp
+5-0clang/test/SemaCXX/GH167120.cpp
+16-42 files

LLVM/project a25ca60clang/include/clang/Lex LiteralSupport.h, clang/lib/Lex LiteralSupport.cpp

move code into CopyStringFragment
DeltaFile
+29-72clang/lib/Lex/LiteralSupport.cpp
+2-1clang/include/clang/Lex/LiteralSupport.h
+31-732 files

LLVM/project 5e5548fclang/lib/CodeGen CGExpr.cpp, clang/test/CodeGenCXX cxx2a-consteval.cpp template-cxx20.cpp

[clang] Backport: CodeGen: fix ConstantExpr LValue emission

This fixes a regression introduced in #161029, though not the fault of that
patch, only by incidental changes regarding the preservation of constant expression
nodes.

The LValue emission of ConstantExpr was doing strange things with regards to
what type corresponds to the result of the constant expression, which are not
justified by any tests or in the discussions of the relevant patches.

See
https://github.com/llvm/llvm-project/commit/09669e6c5fa1e8db9c1091cc264640fb0377d6b6
and https://github.com/llvm/llvm-project/pull/78041 and
https://github.com/llvm/llvm-project/commit/51e4aa87e05c45bebf9658a47980b1934c88be31

This simplifies it to just use the expression type.

Since this regression was never released, there are no release notes.


    [3 lines not shown]
DeltaFile
+25-2clang/test/CodeGenCXX/cxx2a-consteval.cpp
+2-12clang/lib/CodeGen/CGExpr.cpp
+12-1clang/test/CodeGenCXX/template-cxx20.cpp
+39-153 files

FreeBSD/src d37214dusr.sbin/freebsd-update freebsd-update.sh

freebsd-update: Error for -b basedir without UNAME_r set

freebsd-update sets the currently running release from UNAME -r, which
can be overridden via the --currently-running commandline option (or by
setting UNAME_r in the environment).  This may be invalid if -b is used
to specify a basedir other than /, so error out if -b is specified
without setting the currently running version.

PR:             283229
Reviewed by:    cperciva
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D48016

(cherry picked from commit 097458ac665db732cc91a22279da4cc14f694da2)
DeltaFile
+4-0usr.sbin/freebsd-update/freebsd-update.sh
+4-01 files

LLVM/project 86996aaclang/lib/Sema SemaOverload.cpp, clang/test/SemaTemplate temp_arg_nontype_cxx11.cpp

[clang] Backport: stop error recovery in SFINAE for narrowing in converted constant expressions

A narrowing conversion in a converted constant expression should produce an
invalid expression so that [temp.deduct.general]p7 is satisfied, by stopping
substitution at this point.

Fixes #167709
DeltaFile
+10-1clang/test/SemaTemplate/temp_arg_nontype_cxx11.cpp
+8-0clang/lib/Sema/SemaOverload.cpp
+18-12 files

LLVM/project 2a338d8clang/include/clang/Basic DiagnosticDriverKinds.td, clang/include/clang/Options Options.td

Revert "[Metal][HLSL] Add support for dumping reflection (#181258)"

This reverts commit 3d469665a286cac528c2ef2fb018032d80843716.
DeltaFile
+0-22clang/lib/Driver/ToolChains/HLSL.cpp
+0-8clang/test/Driver/HLSL/fre-errors.hlsl
+0-8clang/test/Driver/HLSL/metal-converter.hlsl
+0-2clang/include/clang/Options/Options.td
+0-2clang/include/clang/Basic/DiagnosticDriverKinds.td
+0-425 files

LLVM/project fff2f0bllvm/lib/Target/AMDGPU GCNHazardRecognizer.cpp, llvm/test/CodeGen/AMDGPU wmma-coexecution-valu-hazards.mir

[AMDGPU] Handle GFX1250 hazards between WMMA and VOPD (#183573)

Hazards between WMMA and VALU were handled in #149865 but this only
worked for regular VOP* VALU encodings, not for VOPD.

Fixes: #183546
DeltaFile
+30-0llvm/test/CodeGen/AMDGPU/wmma-coexecution-valu-hazards.mir
+11-14llvm/lib/Target/AMDGPU/GCNHazardRecognizer.cpp
+41-142 files

LLVM/project c5ddaa2clang/lib/Sema SemaTemplateDeduction.cpp, clang/test/SemaTemplate temp_arg_template_p0522.cpp

[clang] create local instantiation scope for matching template template parameters

This fixes a bug where a partial substitution from the enclosing scope
is used to prepopulate an unrelated template argument deduction.

Backport from #183219

Fixes #181166
DeltaFile
+7-0clang/test/SemaTemplate/temp_arg_template_p0522.cpp
+2-0clang/lib/Sema/SemaTemplateDeduction.cpp
+9-02 files

LLVM/project c357171clang/docs AddressSanitizer.rst

reword

Created using spr 1.3.7
DeltaFile
+3-3clang/docs/AddressSanitizer.rst
+3-31 files

FreeBSD/src 1f2f5ebsys/x86/conf NOTES

asmc(4): pull 32-bit support for the driver

The asmc(4) driver should work for 32-bit Intel-based Macs, in theory, if
the model details were added to the detection list. That being said,
32-bit Intel Macs were only released and available to the general public
for 8 months [1], so the value in maintaining i386 support in the driver is
reduced due to limited hardware access.

Remove 32-bit support for the driver officially to make it clear its use is
not supported.

This should fix building `NOTES.i386` by proxy as well.

Relnotes:       yes
MFC after:      2 weeks
Fixes:          f224591746b ("Add ASMC_DEBUG make option")
Fixes:          8342d9f7b5f ("asmc(4): Stop building it on i386, as...")
Differential Revision:  https://reviews.freebsd.org/D55544
DeltaFile
+0-2sys/x86/conf/NOTES
+0-21 files

LLVM/project fc153b1clang/lib/StaticAnalyzer/Checkers/WebKit PtrTypesSemantics.cpp, clang/test/Analysis/Checkers/WebKit nodelete-annotation.cpp

[alpha.webkit.NoDeleteChecker] Check if each field is trivially destructive (#183711)

This PR fixes the bug that NoDeleteChecker and trivial function analysis
were not detecting any non-trivial destruction of class member
variables.

When evaluating a delete expression or calling a destructor directly for
triviality, check if each field in the class and its base classes is
trivially destructive.
DeltaFile
+150-2clang/test/Analysis/Checkers/WebKit/nodelete-annotation.cpp
+46-0clang/lib/StaticAnalyzer/Checkers/WebKit/PtrTypesSemantics.cpp
+196-22 files

OpenBSD/ports hslYmgumail/mozilla-thunderbird Makefile

   MFC mail/mozilla-thunderbird: add a workaround for #2006630
VersionDeltaFile
1.513.2.8+6-0mail/mozilla-thunderbird/Makefile
+6-01 files