LLVM/project f5ebc1allvm/lib/Target/AMDGPU AMDGPUMCInstLower.cpp, llvm/test/CodeGen/AMDGPU mcinstlower-external-symbol-reloc.mir

[AMDGPU] Apply target flag specifier when lowering MO_ExternalSymbol operands (#202389)

The MO_ExternalSymbol case in AMDGPUMCInstLower dropped the operand
target flags emitting the wrong relocation type
DeltaFile
+19-0llvm/test/CodeGen/AMDGPU/mcinstlower-external-symbol-reloc.mir
+2-1llvm/lib/Target/AMDGPU/AMDGPUMCInstLower.cpp
+21-12 files

FreeBSD/src a88932bsys/powerpc/conf QORIQ64

powerpc/conf: Remove temporary additions from QORIQ64

These were added during the DPAA driver rewrite, and should not have
gone in then.  Remove them.
DeltaFile
+0-3sys/powerpc/conf/QORIQ64
+0-31 files

LLVM/project e3f2e35clang/lib/Serialization ASTCommon.cpp

[Serialization] Delete an unreachable BlockDecl check (NFC) (#206298)

`needsAnonymousDeclarationNumber()` takes a `const NamedDecl *`. Both
`BlockDecl` and `NamedDecl` derive from `Decl`, in other words they're
siblings.

* https://clang.llvm.org/doxygen/classclang_1_1BlockDecl.html
* https://clang.llvm.org/doxygen/classclang_1_1NamedDecl.html

Thus `isa<BlockDecl>(D)` is statically false.
DeltaFile
+1-1clang/lib/Serialization/ASTCommon.cpp
+1-11 files

FreeBSD/src 21ae611sys/powerpc/conf MPC85XX

powerpc: Remove DPAA from MPC85XX, it's 64-bit only now
DeltaFile
+0-1sys/powerpc/conf/MPC85XX
+0-11 files

FreeBSD/src 17f02f7sys/powerpc/booke pmap_32.c

powerpc/pmap: Fix 32-bit Book-E build
DeltaFile
+2-2sys/powerpc/booke/pmap_32.c
+2-21 files

FreeBSD/src a8566c7sys/dev/iicbus/rtc hym8563.c, sys/modules/i2c/hym8563 Makefile

hym8563: Fix 32-bit powerpc build

Depend on clknode_if.h in the module Makefile, so that it gets
explicitly built for the module.  Also, reduce the #if guards to only
the new clock output code, and gate them on all powerpc, not just
powerpc64.

Fixes:  6b77d34f("HYM8563: Add support for clock output.")
Reviewed by:    mmel
Differential Revision:  https://reviews.freebsd.org/D57795
DeltaFile
+11-7sys/dev/iicbus/rtc/hym8563.c
+1-0sys/modules/i2c/hym8563/Makefile
+12-72 files

FreeBSD/src 2b5d1d8sys/dev/rge if_rge.c

rge: Fix 32-bit powerpc build

Book-E powerpc has 64-bit bus_addr_t but only a 32-bit bus_size_t.  Use
the right macros for maxsize and maxsegsize to fix the build.

Fixes:  4bf8ce037 ("if_rge: initial import of if_rge driver from OpenBSD.")
Reviewed by:    adrian
Differential Revision:  https://reviews.freebsd.org/D57794
DeltaFile
+2-2sys/dev/rge/if_rge.c
+2-21 files

LLVM/project b0e490aclang/lib/Serialization ASTCommon.cpp, clang/test/Modules modules-lambda-dependent-crash.cppm modules-local-class-dependent-crash.cppm

[Clang][Modules] Skip anonymous declaration numbering for local tags in dependent contexts (#202248)

Local tag declarations (classes, structs, enums, and lambdas) defined
within function template bodies or class templates do not require ODR
merging at the local declaration level across different modules. ODR
consistency is already guaranteed because the instantiator only walks
the canonical template definition body, which instantiates its own copy
of the local class.

Merging them across different modules causes their member definitions
(like methods or call operators) to be canonicalized to one module,
while the instantiator walks the template body from another module.
Since local variables within template bodies are not merged, this
mismatch leads to assertion crashes during template instantiation in
`LocalInstantiationScope::findInstantiationOf`.

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

Co-authored-by: ipopov <ipopov at google.com>
DeltaFile
+73-0clang/test/Modules/modules-lambda-dependent-crash.cppm
+70-0clang/test/Modules/modules-local-class-dependent-crash.cppm
+6-2clang/lib/Serialization/ASTCommon.cpp
+149-23 files

LLVM/project 58e1038llvm/lib/Target/X86 X86TargetVerifier.cpp, llvm/test/Verifier/X86 inline-asm-registers.ll

[X86] Verify inline-asm register operands against the subtarget

Inline asm can name physical registers that require a subtarget feature
the selected subtarget lacks: zmm and mask (k) registers need AVX-512,
ymm registers need AVX. The subtarget is derived from the function's
target-cpu/target-features, so no MachineFunction is required.
DeltaFile
+33-0llvm/lib/Target/X86/X86TargetVerifier.cpp
+27-0llvm/test/Verifier/X86/inline-asm-registers.ll
+60-02 files

LLVM/project b9a267cclang CMakeLists.txt

fixup! [clang] Rename CLANG_DEFAULT_PIE_ON_LINUX to CLANG_DEFAULT_PIE
DeltaFile
+5-0clang/CMakeLists.txt
+5-01 files

LLVM/project 14a19cellvm/lib/Support/Windows Path.inc

Fix Windows Path Separator issues in create_symlink and readlink (#206665)

- Force create_symlink target path to use backslashes on Windows, as
NTFS reparse points require backslashes.
- Normalize readlink output to native path separators to match preferred
style.

This fixes the following test failure:

```
PS C:\src\chromium\src\third_party\llvm> .\build_repro\unittests\Support\SupportTests.exe --gtest_filter=FileSystemTest.CreateRelativeDirectorySymlink
[ RUN      ] FileSystemTest.CreateRelativeDirectorySymlink
Test Directory: C:/src/temp/file-system-test-a3fd42
C:\src\chromium\src\third_party\llvm\llvm\unittests\Support\Path.cpp(896): error: Value of: fs::is_directory(Link)                                                                                                                                                                                                                     Actual: false
Expected: true
```
DeltaFile
+2-1llvm/lib/Support/Windows/Path.inc
+2-11 files

LLVM/project 14d9c0cllvm/test/MC/ARM cde-integer.s mve-load-store.s, llvm/utils/TableGen AsmMatcherEmitter.cpp

[AsmMatcher] Report a near-miss when all candidates mismatch multiple operands (#206390)

In the ReportMultipleNearMisses path, an opcode that mismatches more
than one operand is dropped, and its first near-miss is dropped with it. If
every opcode is dropped this way, the parser only reports a generic
"invalid instruction".

Now keep the first near-miss of each such opcode, and use it only when
no other opcode gives a near-miss.

Assisted-by: claude-opus
DeltaFile
+25-25llvm/test/MC/ARM/cde-integer.s
+16-16llvm/test/MC/ARM/mve-load-store.s
+21-1llvm/utils/TableGen/AsmMatcherEmitter.cpp
+10-10llvm/test/MC/ARM/bfloat16-a32-errors2.s
+8-8llvm/test/MC/ARM/mve-misc.s
+8-8llvm/test/MC/ARM/diagnostics.s
+88-6813 files not shown
+129-11019 files

LLVM/project 483d534llvm/include/llvm/TargetParser SubtargetFeature.h, llvm/lib/Target/AArch64/AsmParser AArch64AsmParser.cpp

[TargetParser][NFC] Make FeatureBitset iterable (#206394)

FeatureBitset had no way to iterate its bits, so callers scanned all
MAX_SUBTARGET_FEATURES positions by hand.
This adds begin()/end() that yield the index of each set bit, skipping
unset bits with countr_zero.
Callers can now write `for (unsigned Feature: Features)`. 

Assisted-by: claude-opus
DeltaFile
+40-0llvm/include/llvm/TargetParser/SubtargetFeature.h
+31-0llvm/unittests/TargetParser/TargetParserTest.cpp
+4-6llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
+4-6llvm/lib/Target/LoongArch/AsmParser/LoongArchAsmParser.cpp
+3-5llvm/lib/Target/CSKY/AsmParser/CSKYAsmParser.cpp
+3-5llvm/lib/Target/AArch64/AsmParser/AArch64AsmParser.cpp
+85-222 files not shown
+89-298 files

LLVM/project 76c92eclldb/test/API/functionalities/breakpoint/breakpoint_conditions/crashing_condition TestCrashingCondition.py, lldb/test/API/lang/cpp/default-template-args TestDefaultTemplateArgs.py

[lldb][test] Skip more unsupported tests on WebAssembly (#206857)

These tests exercise functionality that WebAssembly does not provide, so
they cannot pass under the Wasm test configuration. The reasons vary by
test, captured by a short inline comment.

Skip them with @skipIfWasm (and @skipIfNoSignals for the SIGINT test) so
the suite reflects real failures.
DeltaFile
+2-0lldb/test/API/functionalities/breakpoint/breakpoint_conditions/crashing_condition/TestCrashingCondition.py
+1-0lldb/test/API/lang/cpp/default-template-args/TestDefaultTemplateArgs.py
+1-0lldb/test/API/macosx/mte/TestDarwinMTE.py
+1-0lldb/test/API/python_api/global_module_cache/TestGlobalModuleCache.py
+1-0lldb/test/API/python_api/sbenvironment/TestSBEnvironment.py
+1-0lldb/test/API/python_api/sbplatform/TestSBPlatform.py
+7-033 files not shown
+40-039 files

LLVM/project 6a2cd1flibc/cmake/modules LLVMLibCArchitectures.cmake

[libc] Support triples that start with thumb*- (#206847)

thumb*- can be used as an alias for arm*- (implying -mthumb).
DeltaFile
+1-1libc/cmake/modules/LLVMLibCArchitectures.cmake
+1-11 files

LLVM/project c311656clang/lib/CodeGen CodeGenModule.cpp, clang/test/CodeGen call-graph-section.cpp call-graph-section-templates.cpp

[clang][llvm]Uncorrelate CFI and Callgraph related type metadata annotations (#204266)

When -fexperimental-call-graph-section flag is set, it adds type
metadata to all the functions whose addresses are taken and does not
have local linkage. When this flag is set along with CFI, the type
metadata is added to all the vtable functions including destructors.
This changes which functions are to be treated as CFI functions and
includes such vtable entries to become part of the CFI check jumptables.

To disambiguate intentions of CFI and callgraph mechanisms, this patch
renames metadata set by callgraph mechanism to !callgraph
(MD_callgraph). This prevents inflating the list of CFI functions when
callgraph section is enabled along with CFI.
DeltaFile
+72-1llvm/docs/LangRef.rst
+28-28clang/test/CodeGen/call-graph-section.cpp
+21-21clang/test/CodeGen/call-graph-section-templates.cpp
+0-33llvm/docs/CalleeTypeMetadata.rst
+11-21clang/lib/CodeGen/CodeGenModule.cpp
+15-15clang/test/CodeGen/call-graph-section.c
+147-11945 files not shown
+351-28651 files

LLVM/project 80723e0llvm/lib/Target/LoongArch LoongArchISelLowering.cpp LoongArchISelLowering.h, llvm/test/CodeGen/LoongArch/ir-instruction double-convert.ll float-convert.ll

Reland: [LoongArch] Custom scalar UINT_TO_FP and FP_TO_UINT with LSX instructions (#206655)

Using `vftintrz.lu.d` for converting scalar double/float values to
unsigned 64-bit integers, and `vffint.d.lu` vice versa.

Remove incorrect uint64 to float conversion, which is suffered
from double-rounding issue.
DeltaFile
+49-2llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
+7-26llvm/test/CodeGen/LoongArch/ir-instruction/double-convert.ll
+3-14llvm/test/CodeGen/LoongArch/ir-instruction/float-convert.ll
+1-0llvm/lib/Target/LoongArch/LoongArchISelLowering.h
+60-424 files

LLVM/project e2fc1e7llvm/lib/Target/LoongArch LoongArchISelLowering.cpp LoongArchISelLowering.h, llvm/test/CodeGen/LoongArch set-rounding.ll isel-set-invalid-rounding.ll

[LoongArch] Support ISD::SET_ROUNDING (llvm.set.rounding) (#206395)

Fix https://github.com/llvm/llvm-project/issues/205039.

The LoongArch FCSR RM field supports four rounding modes, whose
encodings differ from LLVM's rounding mode values:
  FCSR: 0=RNE, 1=RZ,  2=RP,  3=RM
  LLVM: 0=RTZ, 1=RNE, 2=RUP, 3=RDN

For LLVM rounding mode 4, round to nearest with ties away from zero,
diagnose an error when it is a constant.

---------

Co-authored-by: tangyuan0821 <tangyuan0821 at email.cn>
DeltaFile
+75-0llvm/test/CodeGen/LoongArch/set-rounding.ll
+60-0llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
+12-0llvm/test/CodeGen/LoongArch/isel-set-invalid-rounding.ll
+1-0llvm/lib/Target/LoongArch/LoongArchISelLowering.h
+148-04 files

LLVM/project a282899flang/test/Driver linker-options.f90

fixup! [Clang] Switch to Default PIE on FreeBSD
DeltaFile
+8-8flang/test/Driver/linker-options.f90
+8-81 files

LLVM/project 6df6a33flang/test/Driver linker-options.f90

fixup! [clang] Rename CLANG_DEFAULT_PIE_ON_LINUX to CLANG_DEFAULT_PIE
DeltaFile
+8-8flang/test/Driver/linker-options.f90
+8-81 files

LLVM/project 0a70352flang/test/Driver linker-options.f90

fixup! [clang] Rename CLANG_DEFAULT_PIE_ON_LINUX to CLANG_DEFAULT_PIE
DeltaFile
+8-8flang/test/Driver/linker-options.f90
+8-81 files

NetBSD/pkgsrc 3i6tvzemisc/getopt distinfo Makefile, misc/getopt/patches patch-aa

   getopt: use ctype.h correctly
VersionDeltaFile
1.4+14-3misc/getopt/patches/patch-aa
1.13+2-2misc/getopt/distinfo
1.19+2-1misc/getopt/Makefile
+18-63 files

OpenBSD/src 705aXkMusr.bin/ssh ssh-keygen.1

   more missing mldsa44-ed25519, based on GHPR696 from
   Loganaden Velvindron
VersionDeltaFile
1.238+10-6usr.bin/ssh/ssh-keygen.1
+10-61 files

OpenBSD/src xQSnZw5usr.bin/ssh clientloop.c

   whitespace
VersionDeltaFile
1.425+2-2usr.bin/ssh/clientloop.c
+2-21 files

OpenBSD/src Ysv2WeEusr.bin/ssh clientloop.c

   simplify SIGINFO output: remove list of active channels (too verbose)
   and just display destination and connection duration; requested deraadt@
VersionDeltaFile
1.424+8-2usr.bin/ssh/clientloop.c
+8-21 files

NetBSD/src 2kji2lusys/arch/x86/x86 efi_machdep.c

   x86/efi_machdep.c: Nix extra blank line.

   No functional change intended.
VersionDeltaFile
1.8+2-3sys/arch/x86/x86/efi_machdep.c
+2-31 files

FreeBSD/src 08cda4bshare/man/man4 ktls.4, sys/kern uipc_ktls.c

ktls: Add a tunable to disable TLS receive

TLS receive offload is really only beneficial for in-kernel use cases
(such as NFS over TLS) or when using a hardware offload.  In addition,
several recent SAs have involved the TLS receive path, but the only
current mitigation for those is to disable TLS offload entirely.

Reviewed by:    ziaee, gallatin, markj
Relnotes:       yes
Sponsored by:   Netflix
Sponsored by:   Chelsio Communications
Co-authored-by: John Baldwin <jhb at FreeBSD.org>
Differential Revision:  https://reviews.freebsd.org/D57974
DeltaFile
+58-32tests/sys/kern/ktls_test.c
+6-1sys/kern/uipc_ktls.c
+3-1share/man/man4/ktls.4
+67-343 files

FreeBSD/src 9cee481sys/kern uipc_ktls.c

ktls: Centralize the check for CBC ciphers

Move the check out of ktls_enable_(rx|tx) and into ktls_create_session.

Reviewed by:    gallatin, markj
Sponsored by:   Chelsio Communications
Differential Revision:  https://reviews.freebsd.org/D57973
DeltaFile
+3-6sys/kern/uipc_ktls.c
+3-61 files

OpenBSD/src SjxayKsusr.bin/ssh ssh_config.5

   Tighten up the introduction a little:

   Mention Match as a conditional directive (previously it only
   mentioned Host)

   Try to use consistent language in the introduction to refer to
   configuration directives (previously it used "parameters" and
   "keywords" interchangeably).

   Mention that comments may appear at the end of the line too, and that
   whitespace at the beginning/end of lines is not significant.
VersionDeltaFile
1.426+22-17usr.bin/ssh/ssh_config.5
+22-171 files

OpenBSD/src ajxpd1eusr.bin/ssh sftp-server.c

   Move negative-FD checks to before first use.  CID 909998, ok djm@
VersionDeltaFile
1.156+7-2usr.bin/ssh/sftp-server.c
+7-21 files