x11/nvidia-driver{-devel}, x11/nvidia-kmod{-devel}, x11/linux-nvidia-libs{-devel}, graphics/nvidia-drm*-kmod{-devel}, x11/nvidia-settings, x11/nvidia-xconfig: Update to 620.85.02
Update to latest Production Branch of drivers 620.85.02:
https://www.nvidia.com/en-us/drivers/details/289117/
Linux counterparts for x11/linux-nvidia-libs:
https://www.nvidia.com/en-us/drivers/details/289118/
As this version is newer than exisitng New Feature Branch (NFB)
of drivers, update -devel variants to the same version, too.
PR: 301403
Differential Revision: https://reviews.freebsd.org/D62318
[analyzer] Make the reports of the core.NullPointerArithm checker non-sinking (#247730)
Fixes #246710
Although null pointer arithmetic is undefined behavior, it does not
generally trap at runtime, and continuing the analysis after reporting
it is safe. This fix allows this by adjusting the report node to be
non-sinking.
[mlir][reducer] Show all mlir-reduce options in --help (#245992)
--no-implicit-module, --allow-unregistered-dialect and
--split-input-file were not in the mlir-reduce option category.
HideUnrelatedOptions marks options outside the category as really
hidden, so they were missing from both --help and --hidden flags. This
Puts them in the flags.
iflib: Expose locked datapath quiescence for driver resets
Provide iflib_quiesce() for driver-managed resets which must stop the
framework datapath before dismantling device resources. Require the
context lock, preserve administrative flags, and reject detach, power
transitions, and recursive lifecycle calls without requesting a restart.
Make the stop path wait for queue tasks, callouts, and inline hardware
users before invoking IFDI_STOP and releasing packet mappings. Mask
interrupts again after draining task tails which may have reenabled them.
Drain mp_ring under its existing consumer ownership. When the ring is
empty, reserve all producer space so late transmitters take the existing
ring-full path and return ENETDOWN. Reopen the ring after successful
initialization. Keep completion polling inside consumer ownership.
Simple TX uses its existing producer count, mutex, and deferred-free
slot. Check ALTQ admission under the send queue lock so stop can purge
pending packets before a restart.
[10 lines not shown]
[lldb][Windows] Forward the inferior's output before reporting a stop (#248088)
`NativeProcessWindows` reads the inferior's stdout on its own thread and
passes it to `GDBRemoteCommunicationServerLLGS` with
`NewProcessOutput()`. There is a race condition where data can still be
in the pipe when the inferior is stopped. It only reaches the client
**after** the process resumes.
`TestChangeValueAPI` is flaky on Windows on ARM because of this.
This patch makes `NativeProcessWindows` wait for its read thread to send
what is already in the pipe before it reports a stop.
[Sparc] Don't drop inline asm clobbers of %f32-%f62 (#247789)
An inline asm clobber of %f32-%f62, as in `"~{f32}"`, was silently
ignored, while `"~{d16}"` worked. The registers for %f32-%f62 are
D16-D31,
and the generic lookup matches constraint names against the TableGen
register names, which are d16-d31. Operands are rewritten to {dN}
according to their value type, but a clobber has no value type, so it
fell through and matched nothing.
Map the even names %f32-%f62 in a clobber to D16-D31. These are the
names of the upper registers that clang accepts in clobbers.
Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
[clang][OpenMP] Add no-loop SPMD kernel promotion (#224041)
A target teams distribute parallel for that is guaranteed a thread for
every iteration does not need the loop around its body. Flang already
drops it and runs the region as a no-loop kernel.
Enable the same optimization for Clang through mirroring Flang's MLIR
promotion using OpenMPIRBuilder. The kernel is tagged SPMD_NO_LOOP, so
the runtime sizes the grid to the iteration space, and the body is
emitted without a loop around it. The canonical loop it consumes is
reconstructed in the no-loop branch rather than taken from an
OMPCanonicalLoop node, so the promotion does not require
-fopenmp-enable-irbuilder.
Split out of #205325.
Assisted by: Claude Opus 5.5
[Mips] Fix big-endian va_arg of vectors smaller than a slot (#247572)
Vectors are passed like aggregates on MIPS, so on big-endian a vector
smaller than an argument slot is at the start of its slot, the same as
GCC. va_arg right-adjusted it instead and read the padding. On O32 this
broke vectors under 4 bytes, and on N32/N64 vectors under 8 bytes.
Fixes #247461
Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
[Mips] Add microMIPS R6 patterns for is_fpclass (#247752)
IS_FPCLASS is legal on R6, but the CLASS.fmt patterns were only
defined for the standard encoding, so llvm.is.fpclass failed to select
on microMIPS R6. Add the microMIPS R6 equivalents.
Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
[LAA] Conservatively handle compressed pointers
This allows vectorizing loops with `ptr` conditional inductions (that
are used to compute the addresses of loads/stores), and loops where
the pointers may alias (so need bounds checks).
For now, diff checks are not supported if either the source or sink is
a compressed pointer (as the difference may not be constant within the
loop). This could be relaxed for pointers derived from the same phi.
We ensure the over-approximation does not wrap before bounds checking
compressed pointers to ensure the bounds hold for the loop.
All SCEV predicates and bounds checks are frozen as the compressed
access may not occur in the scalar loop (if the condition turns out to
be false for the entire loop), to avoid branching on poison.
Assisted-by: Codex (adding test converage, comments my own).
[Analysis] Move collectCompressedPtrs to IVDescriptors.{cpp|h} (NFC)
`collectCompressedPtrs` needs to be accessible in LAA to handle runtime
checks for compressed ptrs.
[Docs] Fix getTerminator() documentation (#248010)
https://github.com/llvm/llvm-project/pull/189416 changes getTerminator()
to require a well-formed BasicBlock, but didn't adjust the documentation
in the ProgrammersManual.
[lldb][NativePDB] Accept functions without a type (#236547)
When I was trying to trim down the output from llvm with
`-gline-tables-only`, I noticed that lldb doesn't parse functions if
they don't have a type.
It's fine for functions to not have a type in PDB. If you look at the
PDBs from Microsoft's symbol servers, then, if they have functions at
all, they never have types (i.e. type index 0).
With this PR, lldb will accept these functions. They will get a nullptr
`Type*` and an `LLDB_INVALID_UID` for the type UID.
`ResolveTypeUID` couldn't handle that UID before, but now it will return
a nullptr type too.
I added two tests (of the same program). One to check that we can parse
the functions and another one to check that we can generate a backtrace.
I can't use the current clang-cl to compile this, because it would
generate types for functions, so it's using yaml2obj.
[AMDGPU] Invalidate stale UniformityInfo entries in 64-bit div/rem expansion (#215460)
expandDivRem64 erases instructions outside DeadVals worklist, so a freed
instruction address could be reused and misclassified by UniformityInfo
Found as a result of an audit after finding the same class of bug fixed
for Reassociate in #214719
[CIR][OpenMP] Add support for OpenMP reduction clause
This patch adds support for the OpenMP reduction clause on the teams and for
directives for reductions with built-in identifiers on local scalar integer and
floating-point variables. Other cases, such as user-defined reductions,
modifiers, arrays and globals, are reported as not yet implemented.
Assisted-by: Cursor / Claude Opus 5.5 Medium
[clang] Fix crash on trailing comma in vectorize_width
With `#pragma clang loop vectorize_width(4, )`, the token after the comma
is the end marker for the loop hint. The parser diagnoses the missing
argument, then lexes past the marker. Error recovery consumes the
following loop and crashes at the end of the file.
```text
Stack dump:
1. <eof> parser at end of file
2. <stdin>:1:10: parsing function body 'f'
3. <stdin>:1:10: in compound statement ('{}')
```
Leave the end marker for the existing recovery path so parsing resumes
at the following loop. Clang now emits only the malformed hint error.
```text
<stdin>:2:40: error: vectorize_width loop hint malformed; use vectorize_width(X, fixed) or vectorize_width(X, scalable) where X is an integer, or vectorize_width('fixed' or 'scalable')
[6 lines not shown]
[AMDGPU] Handle fp_class conditions in frexp select combine (#248079)
performFrexpSelectCombine removes a select that returns 0 for inf or nan
inputs to frexp_exp, but it only recognized setcc conditions. An isinf or
isfinite setcc is combined into AMDGPUISD::FP_CLASS, and with
-combiner-topological-sorting that happens before the select is visited.
Assisted-by: Claude Fable 5.2 <noreply at anthropic.com>
[MemProf] Don't clone functions whose block addresses escape (#247257)
CloneFunction only remaps block addresses used inside the function body.
If a function's block addresses escape, e.g. through a computed-goto
jump table stored in a global variable, a MemProf clone continues
loading the original function's block addresses and jumps into
the original function's blocks, leading to crashes.
Skip such functions when building the MemProf callsite context graph so
their allocations retain default behavior.
Assisted-by: Gemini
[llvm-size] Add GNU output format (-G / --format=gnu) (#242024)
Implement GNU binutils size -G / --format=gnu (including -t / --totals
and --common support) as GnuSizePrinter on top of SummarySizePrinter,
sharing radix formatting via printRadixNumber and classifying sections
using SectionRef::isText()/isData()/isBSS() (filtering non-SHF_ALLOC
sections for ELF and debug sections for non-ELF formats such as COFF and
Mach-O).
Assisted-by: Gemini
[offload][OpenMP] Split target_task_privates.c by construct (#247569)
The test added in #245784 fails on the SPIR-V and NVPTX buildbots for
reasons unrelated to that fix: on SPIR-V, clang asserts when emitting
the __kmpc_taskloop call, and on NVPTX, an untied task in a target
region faults at run time. Also, the tests fail on intelgpu for various
reasons.
Move the taskloop and untied task cases into their own tests and mark
all the tests as UNSUPPORTED on the affected targets as a temporary
workaround to unbreak the buildbots.
Claude assisted with this patch.
[SystemZ][z/OS] Define __CHARSET_LIB on z/OS to say programs are ascii (#247841)
When the compiler is generating code ascii it needs to define
`__CHARSET_LIB` to 1 so the system headers use the right variation of
functions like printf.