LLVM/project 13e6f62llvm/test/TableGen AMDGPUTargetDefGenericClassification.td

[AMDGPU] Avoid repeated parsing in generic classification test

Parse AMDGPU.td once and assert real feature classifications directly. Keep validation of real generic targets and use AMDGPUTargetDefGenericFeatures.td for validation diagnostics.

Addresses the timeout reported on #223179. Local test time drops from 79.59s to 11.28s; both classification and generic feature validation tests pass.

Change-Id: Ic93ed7843d48230cf61c196502b51d7900dc3329
DeltaFile
+33-64llvm/test/TableGen/AMDGPUTargetDefGenericClassification.td
+33-641 files

LLVM/project 035c786clang/test/CIR/CodeGen attr-target-x86.c

[CIR] Fix target attr test (#225534)

After #206888 our printed checks are broken.  Fix them.
DeltaFile
+4-4clang/test/CIR/CodeGen/attr-target-x86.c
+4-41 files

LLVM/project 680c555lldb/include/lldb/ValueObject DILParser.h DILEval.h, lldb/source/Target StackFrame.cpp

[lldb] Add error logging to DIL (#224763)

This patch also adds a new `EvaluateTree` interface for the Interpreter,
since putting the logging into the existing `Evaluate` would output the
message every time it's called internally.
DeltaFile
+16-0lldb/source/ValueObject/DILEval.cpp
+11-2lldb/source/ValueObject/DILLexer.cpp
+5-2lldb/include/lldb/ValueObject/DILEval.h
+6-1lldb/source/ValueObject/DILParser.cpp
+1-1lldb/source/Target/StackFrame.cpp
+2-0lldb/include/lldb/ValueObject/DILParser.h
+41-66 files

FreeBSD/src 5d169b5usr.sbin/bsnmpd/tools/libbsnmptools bsnmptools.c

bsnmpget: initialise the suboption value in getsubopt1()

Otherwise, "bsnmpget -o verbose -I cut" crashes.

Reported by:    clang static analyzer
MFC after:      2 weeks
DeltaFile
+1-0usr.sbin/bsnmpd/tools/libbsnmptools/bsnmptools.c
+1-01 files

FreeBSD/ports 685bee5multimedia/kew Makefile distinfo

multimedia/kew: update 4.3.2 → 4.3.6
DeltaFile
+3-3multimedia/kew/distinfo
+1-4multimedia/kew/Makefile
+4-72 files

LLVM/project 4cb6d9ebolt/lib/Profile DataAggregator.cpp

[BOLT] Don't report an ignored build-id mismatch as an error (#225219)

With `-ignore-build-id`, a build-id mismatch still printed

  PERF2BOLT-ERROR: failed to match build-id from perf output. ...
  Use -ignore-build-id option to override.

and then carried on normally. Fix the messaging to reduce noise in logs.
DeltaFile
+9-2bolt/lib/Profile/DataAggregator.cpp
+9-21 files

LLVM/project c6ed357mlir/test/CAPI ir.c

[mlir-c] Assert diagnostic severity in CAPI test

Print the diagnostic severity in the test handler and add CHECK lines
asserting Error/Warning/Remark, so the warning/remark tests no longer
pass vacuously. Also add the missing end-of-diagnostic CHECKs.
DeltaFile
+26-0mlir/test/CAPI/ir.c
+26-01 files

LLVM/project 8890be3llvm/lib/Target/AArch64 AArch64FastISel.cpp, llvm/lib/Target/AArch64/GISel AArch64CallLowering.cpp

[AArch64][GISel][FastISel] Fix Windows "sret inreg". (#225190)

5dc8aeb26d2896c65cbea0d3b87f090241444bb6 added a special case to
SelectionDAG ISel for "sret inreg" parameters: they are copied to x0 on
return. There was a review comment suggesting that GISel and FastISel
also needed fixes, but through some mixup the followup never happened.

Fixes #225060
DeltaFile
+556-96llvm/test/CodeGen/AArch64/arm64-windows-calls.ll
+49-13llvm/test/CodeGen/AArch64/arm64-windows-tailcall.ll
+8-3llvm/lib/Target/AArch64/GISel/AArch64CallLowering.cpp
+3-0llvm/lib/Target/AArch64/AArch64FastISel.cpp
+616-1124 files

LLVM/project 3dbc42dflang/docs Unsigned.md Semantics.md, flang/docs/_static custom.css

[flang][docs] Use Furo theme (#223151)

Preview: https://clangdocs.staging.reidkleckner.dev/after/flang/docs/
Current: https://flang.llvm.org/docs/

I ported over the LLVM wyvern logo and the Clang CSS viewport width
customizations.

Most of the changes are removing page-local contents directives that
duplicate Furo’s right-hand navbar.

Clang Furo PR: https://github.com/llvm/llvm-project/pull/214869
RFC for Clang:
https://discourse.llvm.org/t/rfc-use-furo-theme-for-clang-docs/91505/7

Flang is using the Clang doc theme (perhaps it's the default) so I feel
like it's a good candidate to migrate, but let me know if you feel
differently.

Assisted-by: codex
DeltaFile
+8-17flang/docs/conf.py
+20-0flang/docs/_static/custom.css
+0-5flang/docs/Unsigned.md
+0-5flang/docs/Semantics.md
+0-5flang/docs/RuntimeTypeInfo.md
+0-5flang/docs/RuntimeEnvironment.md
+28-3741 files not shown
+28-24047 files

FreeBSD/ports 9275fdcmisc/github-copilot-cli-legacy pkg-plist Makefile, misc/github-copilot-cli-legacy/files package-lock.json launcher.c

misc/github-copilot-cli-legacy: remove in favor of misc/github-copilot-cli
DeltaFile
+0-564misc/github-copilot-cli-legacy/files/package-lock-sharp.json
+0-455misc/github-copilot-cli-legacy/files/package-lock-keytar.json
+0-241misc/github-copilot-cli-legacy/Makefile
+0-239misc/github-copilot-cli-legacy/pkg-plist
+0-187misc/github-copilot-cli-legacy/files/launcher.c
+0-128misc/github-copilot-cli-legacy/files/package-lock.json
+0-1,8148 files not shown
+1-1,91214 files

LLVM/project 8c8ee48compiler-rt/test/fuzzer minimize_crash.test

minimize_crash.test sometimes one-shots the minimization (fix flaky test)

After 223470 it is now possible for minimize_crash to one-shot the minimization
by applying the EraseBytes mutation 3 times (to go from size 8=>4=>2=>1).

```
 |            35: SUMMARY: libFuzzer: deadly signal
 |            36: MS: 3 EraseBytes-EraseBytes-EraseBytes-; base unit: 0000000000000000000000000000000000000000
 |            37: 0x2a,
 |            38: *
```

rdar://188078094
DeltaFile
+1-1compiler-rt/test/fuzzer/minimize_crash.test
+1-11 files

FreeBSD/ports 0d162d4misc/lean-ctx Makefile

misc/lean-ctx: broken on i386

Reported by:    fallout
DeltaFile
+2-0misc/lean-ctx/Makefile
+2-01 files

FreeBSD/ports 02e2be5misc/onnxruntime distinfo, misc/onnxruntime/files patch-onnxruntime_core_platform_posix_env.cc example.c

misc/{,py-}onnxruntime: update 1.27.0 → 1.30.0
DeltaFile
+179-0misc/py-onnxruntime/files/patch-cmake_external_onnxruntime__external__deps.cmake
+98-0misc/onnxruntime/files/example.c
+39-31misc/py-onnxruntime/distinfo
+39-31misc/onnxruntime/distinfo
+22-43misc/py-onnxruntime/files/patch-onnxruntime_core_platform_posix_env.cc
+22-43misc/onnxruntime/files/patch-onnxruntime_core_platform_posix_env.cc
+399-14819 files not shown
+646-25225 files

FreeBSD/src 74cab6elib/libbsdconf bsdconf.h bsdconf.3, usr.sbin/sysconf sysconf_scan.c

libbsdconf: parse from a bounded in-memory buffer

Copy the descriptor into a buffer of at most 64 MiB (raise it with
BSDCONF_MAX_BYTES) and tokenize with bsdconf_scan(), the walker
bsdconf_put() already uses.  Input above the cap fails with EFBIG.
Bump libbsdconf to 1.2.0 and sysconf(8) to 2.0.

Suggested by:   fuz
Reviewed by:    fuz
Differential Revision:  https://reviews.freebsd.org/D59751
DeltaFile
+39-420lib/libbsdconf/bsdconf.c
+133-0lib/libbsdconf/bsdconf_stmt.c
+44-18lib/libbsdconf/bsdconf.3
+23-0usr.sbin/sysconf/tests/sysconf_test.sh
+0-16usr.sbin/sysconf/sysconf_scan.c
+9-3lib/libbsdconf/bsdconf.h
+248-4576 files not shown
+267-46312 files

LLVM/project 9b65fa0llvm/test/Transforms/LoopVectorize/RISCV countable-early-exit-no-epilogue.ll

[LV] Add test for miscompile after #195823. (#225531)
DeltaFile
+76-0llvm/test/Transforms/LoopVectorize/RISCV/countable-early-exit-no-epilogue.ll
+76-01 files

OpenBSD/src 0Ra3GGDusr.bin/ssh ssh-agent.c

   ssh-agent: no unlink(2) on empty filename

   from markus@ ok me
VersionDeltaFile
1.333+3-2usr.bin/ssh/ssh-agent.c
+3-21 files

OpenBSD/src FQ7KleXusr.bin/ssh misc-agent.c

   ssh-agent: fix socket cleanup for -a option (no pathspec)

   from markus@ ok me
VersionDeltaFile
1.11+4-2usr.bin/ssh/misc-agent.c
+4-21 files

LLVM/project c495e51libcxx/cmake/caches Generic-llvm-libc.cmake, libcxx/test/std/thread/thread.threads/thread.thread.this sleep_for.signals.pass.cpp

[libcxx] Enable threads on LLVM-libc (#224436)

Now that LLVM-libc's use of atomics has been fixed in #224162, #224160,
and #224164 this PR removes the carveout for threads in libc++ when
building on LLVM-libc.

Assisted-by: Automated tooling, human reviewed
DeltaFile
+5-0libcxxabi/test/cxa_thread_atexit_test.pass.cpp
+0-3libcxx/test/std/thread/thread.threads/thread.thread.this/sleep_for.signals.pass.cpp
+0-3libcxx/cmake/caches/Generic-llvm-libc.cmake
+5-63 files

LLVM/project 8a85fe1lldb/source/API SBData.cpp, lldb/test/API/functionalities/scripted_process addressable_bits_scripted_process.py

[lldb] Fix heap-use-after-free in scripted process memory reads (#225472)

The ASan bots hit a use-after-free unwinding the scripted process in
TestScriptedProcess:

```
  READ of size 512
    #1 DataExtractor::CopyByteOrderedData() DataExtractor.cpp:660
    #2 ScriptedProcess::DoReadMemory() ScriptedProcess.cpp:282
    #3 Process::ReadMemoryFromInferior() Process.cpp:2453
    #4 MemoryCache::Read() Memory.cpp:323
 ```

AddressableBitsScriptedProcess.read_memory_at_address(), added in 851eb5a97ba6, filled its SBData with SetData(). That overload is non-owning: it builds a DataExtractor that aliases the caller's buffer. The buffer it was handed is a `bytes(size)` temporary, which Python frees as soon as the call returns, so DoReadMemory copies out of a dead allocation. The 512 is the default
target.memory-cache-line-size, not the register width the unwinder asked for.

Use SetDataWithOwnership() instead, as every other scripted process script already does.

Signed-off-by: Med Ismail Bennani <ismail at bennani.ma>
DeltaFile
+6-7lldb/source/API/SBData.cpp
+3-1lldb/test/API/functionalities/scripted_process/addressable_bits_scripted_process.py
+9-82 files

LLVM/project 5791e2fflang/test/Semantics/OpenMP requires09.f90 requires08.f90

[flang][OpenMP] Add -fopenmp-version flag to several tests (#224934)

The default OpenMP version in flang is 3.1. A number of tests use
features added in later versions. They currently pass because the
version validity is not enforced in many cases. Set the OpenMP version
explicitly to avoid failures when the checks become more strict.
DeltaFile
+1-1flang/test/Semantics/OpenMP/requires09.f90
+1-1flang/test/Semantics/OpenMP/requires08.f90
+1-1flang/test/Semantics/OpenMP/requires07.f90
+1-1flang/test/Semantics/OpenMP/requires06.f90
+1-1flang/test/Semantics/OpenMP/requires03.f90
+1-1flang/test/Semantics/OpenMP/requires02.f90
+6-613 files not shown
+19-1919 files

LLVM/project 40eebbbflang/include/flang/Parser openmp-utils.h, flang/lib/Parser openmp-utils.cpp

[flang][OpenMP] Annotate some directive and clause names (#225210)

There are some directives that share the same spelling, but have
different functionality. The same is true for clauses. When getting the
upper-case name of such a directive or a clause, optionally (and by
default) add an annotation about the kind of the directive or clause.

For example, a standalone ORDERED directive will be displayed as
"ORDERED (standalone)". This was already done, for this directive, but
not in all cases.
DeltaFile
+32-4flang/lib/Parser/openmp-utils.cpp
+3-10flang/lib/Semantics/check-omp-structure.cpp
+3-3flang/test/Semantics/OpenMP/ordered01.f90
+4-2flang/include/flang/Parser/openmp-utils.h
+42-194 files

LLVM/project a2ff3ccflang/test/Semantics/OpenMP nontemporal.f90, llvm/include/llvm/Frontend/OpenMP OMP.td

[flang][OpenMP] NONTEMPORAL clause is allowed on DO SIMD in 5.0+ (#225082)

The set of allowed clauses on DO SIMD was missing the NONTEMPORAL
clause.
DeltaFile
+0-1flang/test/Semantics/OpenMP/nontemporal.f90
+1-0llvm/include/llvm/Frontend/OpenMP/OMP.td
+1-12 files

LLVM/project fc14d05flang/lib/Optimizer/Builder MutableBox.cpp, flang/test/HLFIR separate-allocatable-assign.fir

[flang][cuda] Preserve allocator index when splitting host-accessible realloc assigns (#225537)

After #224195, shape-changing assignment to a pinned/managed/unified
allocatable inlined cuf.alloc/cuf.free but rebuilt the descriptor
without
allocator_idx. Implicit DEALLOCATE then used the default allocator and
called libc free() on CUDA storage.

Pass the CUDA allocator index through MutablePropertyWriter so fir.embox
keeps pinned=1, managed=3, and unified=4.
DeltaFile
+33-8flang/lib/Optimizer/Builder/MutableBox.cpp
+18-0flang/test/HLFIR/separate-allocatable-assign.fir
+51-82 files

LLVM/project 7bc44f4llvm/lib/Target/X86 X86ISelLowering.cpp

[X86] combineTargetShuffle - cleanup PSHUFD/LW/HW folds (#225477)

Handle all PSHUFD/LW/HW folds in the main switch statement - we
simplified the combineRedundantDWordShuffle folds ages ago, but never
merged the 2 switch statements back together.

The isNoopShuffleMask check should have already been taken care of by
combineShuffle.
DeltaFile
+59-77llvm/lib/Target/X86/X86ISelLowering.cpp
+59-771 files

LLVM/project afe2b14llvm/lib/Target/AMDGPU AMDGPUTargetTransformInfo.cpp

format
DeltaFile
+1-1llvm/lib/Target/AMDGPU/AMDGPUTargetTransformInfo.cpp
+1-11 files

SmartOS/live 5470133src/lib/sdc config.sh

OS-8766 load_sdc_sysinfo performance improvements

The loop forked a subshell, cut and sed for each line of sysinfo output, now optimized
DeltaFile
+3-4src/lib/sdc/config.sh
+3-41 files

LLVM/project 6765411llvm/include/llvm/Support AutoConvert.h, llvm/lib/Support AutoConvert.cpp

[SystemZ][z/OS] Fix compile errors cused by sys::fs::file_t

Follow-up to #224859: some calls/prototypes are guarded on z/OS,
and also need to be updated. This change fixes various compile
errors.
DeltaFile
+20-16llvm/include/llvm/Support/AutoConvert.h
+12-8llvm/lib/Support/AutoConvert.cpp
+3-2llvm/lib/Support/Unix/Path.inc
+35-263 files

LLVM/project 947e193clang/test/CodeGenOpenCL amdgpu-features-readonly.cl, clang/test/Driver amdgpu-xnack-sramecc-flags.c

[AMDGPU] Add SRAMECC on/off mode capability

Distinguish SRAMECC hardware support from selectable on/off modes, mirroring XNACK. Preserve selectable modes on existing targets and use the new capability for target-ID validation, defaults and printing, module flags, and disassembly.

Expose the generated frontend capability as read only and exclude it from serialized target features. Add parser, driver, frontend, and disassembler coverage and document module-flag behavior.

Change-Id: I9b212be27631106749fe54c3bd88a1c72a1fefc3
Validation: rebuilt Clang and LLVM tools; 30 AMDGPU TargetParser unit tests and 22 focused lit tests passed.
DeltaFile
+56-0llvm/unittests/TargetParser/TargetParserTest.cpp
+26-14llvm/lib/TargetParser/AMDGPUTargetParser.cpp
+13-4llvm/lib/Target/AMDGPU/AMDGPU.td
+7-2llvm/lib/Target/AMDGPU/Disassembler/AMDGPUDisassembler.cpp
+7-0clang/test/CodeGenOpenCL/amdgpu-features-readonly.cl
+6-0clang/test/Driver/amdgpu-xnack-sramecc-flags.c
+115-206 files not shown
+128-2712 files

FreeBSD/src 7b7ef79share/misc bsd-family-tree

bsd-family-tree: add NetBSD 10.2
DeltaFile
+23-20share/misc/bsd-family-tree
+23-201 files

LLVM/project 479a9e9llvm/include/llvm/Support AutoConvert.h, llvm/lib/Support AutoConvert.cpp

[SystemZ][z/OS] Fix compile errors cused by sys::fs::file_t

Follow-up to #224859: some calls/prototypes are guarded on z/OS,
and also need to be updated. This change fixes various compile
errors.
DeltaFile
+20-16llvm/include/llvm/Support/AutoConvert.h
+12-8llvm/lib/Support/AutoConvert.cpp
+5-5llvm/lib/Support/Unix/Path.inc
+37-293 files