[analyzer][NFC] Memoize inferred symbol ranges per ProgramState
The inferred range of a symbol is a pure function of the ProgramState, yet
simplifying an SVal queries the range of every sub-expression again and again
against the same state. Memoize the ranges for the most recently queried
state in RangeConstraintManager (a DenseMap<SymbolRef, RangeSet> plus the
state it belongs to; it is cleared when a different state is queried).
SymbolicRangeInferrer takes the cache as an optional, nullable pointer; the
static inferRange() call sites pass none (a stack-local cache there never got
a lookup: 0 hits over 76406 instances on the corpus below).
Why this is safe: the cache holds a ProgramStateRef, so the state stays alive
and its address cannot be recycled for a different state while it is the
cache key. To make that hold at destruction time, ConstraintMgr is now
declared last in ProgramStateManager and is destroyed first, while the state
set, the allocator and the GDM contexts are still alive. ~ProgramStateManager
is declared out of line because the defaulted one needs the complete types
used by the members. Behavior is unchanged: the diagnostics are
byte-identical on every input below, and check-clang-analysis passes
[72 lines not shown]
[mlir][SPIR-V] Support Centroid and NonUniform decorations (#245443)
Adds serialization and deserialization support for the `Centroid` and
`NonUniform` SPIR-V unit decorations (both enums are already defined in
`SPIRVBase.td`).
Assisted by Google Antigravity Gemini 4.0 Neon Model
[mlir][SPIR-V] Add spirv.GL.Refract op (#245349)
Adds the `spirv.GL.Refract` op corresponding to `GLSL.std.450` extended
instruction `Refract` (opcode 72).
Per the `GLSL.std.450` specification:
- `I`, `N`, and the result must all have the same floating-point scalar
or vector type.
- `eta` must be a floating-point scalar.
Serialization and deserialization are automatically generated via
`SPIRV_GLOp`.
Assisted with Google Antigravity Gemini 4 Neon model
[mlir][SPIR-V] Add spirv.ArrayLength op (#245462)
This PR adds support for SPIR-V's `OpArrayLength` (opcode 68).
What changed:
Op definition & serialization: Registered `OpArrayLength` in
`SPIRVBase.td` and defined `SPIRV_ArrayLengthOp` in `SPIRVMemoryOps.td`
with binary serialization and deserialization.
Verification: Implemented `ArrayLengthOp::verify()` to ensure the
structure operand points to a struct ending in a RuntimeArrayType, and
that array_member correctly indexes that final member.
Assisted with Google Antigravity Gemini 4 Neon model
mesa: update to 26.3.1.
Mesa 26.3.1 Release Notes / 2026-11-18
======================================
Mesa 26.3.1 is a bug fix release which fixes bugs found since the 26.3.0 release.
Mesa 26.3.1 implements the OpenGL 4.6 API, but the version reported by
glGetString(GL_VERSION) or glGetIntegerv(GL_MAJOR_VERSION) /
glGetIntegerv(GL_MINOR_VERSION) depends on the particular driver being used.
Some drivers don't support all the features required in OpenGL 4.6. OpenGL
4.6 is **only** available if requested at context creation.
Compatibility contexts may report a lower version depending on each driver.
Mesa 26.3.1 implements the OpenCL 3.1 API, but the version reported by
the CL_DEVICE_VERSION, CL_DEVICE_NUMERIC_VERSION and CL_DEVICE_OPENCL_C_ALL_VERSIONS
clGetDeviceInfo queries depends on the particular driver being used.
Mesa 26.3.1 implements the Vulkan 1.4 API, but the version reported by
[2 lines not shown]
Update to version 9.2.1421.
Changes:
- patch 9.2.1421: [security]: MS-Windows: jobs can run from current dir
- patch 9.2.1420: missing space between mode and recording message
- patch 9.2.1419: Wayland: clipboard data is received several times
- CI: fail early if python2 is not installed via Chocolatey
- CI: Bump github/codeql-action
- patch 9.2.1418: tests: Test_list_length_as_index() fails since 9.2.1411
- patch 9.2.1417: Vim9: error for an enum value name starting with "_"
- patch 9.2.1416: Vim9: wrong error for changing the name/ordinal of enum value
- patch 9.2.1415: Vim9: internal error when an enum val used before init
- runtime(osc52): vimrc example gives E474 when "packadd!" is used
- patch 9.2.1414: Vim9: new enum values can be created from inside enum
- patch 9.2.1413: Vim9: wrong class accepted for the result of "?:"
- patch 9.2.1412: max() and min() return a wrong object instead of error
- patch 9.2.1411: Vim9: public variable of an enum can't be changed
- patch 9.2.1410: Vim9: new enum value can be created by appending to a List
- translation(it): Update Italian manpage
[74 lines not shown]
Merge tag 'spi-fix-v7.4-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi
Pull spi fix from Mark Brown:
"One Qualcomm specific driver fix that fixes issues reproduced on
actual hardware that could cause data corruption with some client
drivers that use an unusual bits per word configuration"
* tag 'spi-fix-v7.4-rc4' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi:
spi: geni-qcom: Fix sub-byte transfer packing and length calculation
[lld][MachO] Avoid redundant work in Writer::scanRelocations()
During relocation scanning, `Writer::scanRelocations()` looks up
`target->getRelocAttrs(r.type)` up to three times per symbol relocation
(in `scanRelocations()`, `validateSymbolRelocation()`, and
`prepareSymbolRelocation()`), tests `r.referent` twice for symbol
referents, and makes an out-of-line call to `validateSymbolRelocation()`
on every symbol relocation even though it only rejects two rare
thread-local-variable cases.
Move `validateSymbolRelocation()` (whose only caller is
`Writer::scanRelocations()`) into `Writer.cpp`, split the rare TLV
validation logic into a `LLVM_ATTRIBUTE_NOINLINE` helper, and mark
`DylibSymbol` `final` so `dysym->isTlv()` avoids a virtual call on the
fast path. Fetch `RelocAttrs` once per relocation, pass it to
`validateSymbolRelocation()` and `prepareSymbolRelocation()`, hoist
loop-invariant `target->relocAttrs` and `config->emitChainedFixups`, and
dispatch on `r.referent` once for non-subtractor relocations.
ietp(4): Expect I2C address provided by iicbus(4) to be in 8-bit format
Since rGb2dbfc7b7701 ("acpi_iicbus: shift the ACPI slave address into the
form iicbus(4) stores"), iicbus_get_addr() returns an 8-bit slave address
on acpi_iicbus(4) to match iicbus(4) and ofw_iicbus(4).
iichid(4) was updated in rGafe3bfec65da, but ietp(4) still left-shifts
iicbus_get_addr(iichid) in ietp_iic_identify(), ietp_iic_read_reg(), and
ietp_iic_write_reg() before issuing I2CRDWR transfers via iichid_ioctl().
Drop the redundant shifts so the slave address is not shifted twice.
Fixes: b2dbfc7b7701 ("acpi_iicbus: shift the ACPI slave address into the form iicbus(4) stores")
Reviewed by: wulf
Differential Revision: https://reviews.freebsd.org/D62164
[sanitizer] Ensure suppression files' buffer is null terminated. (#236826)
Function ReadFileToBuffer does not terminate string 'file_contents'.
SuppressionContext::Parse internal_strcspn expects a null-terminated
string.
The issue was found through static analysis.
[llvm] Remove unused forward declarations (NFC) (#246828)
This patch removes unused forward declarations of classes and structs
across llvm/ that are not referenced in the same file.
Assisted-by: Antigravity
[tsan] Intercept C11 mtx_* functions on glibc (#239670)
glibc implements the C11 mutex functions with its internal pthread_mutex
functions, so TSan doesn't see C11 mutexes being locked and unlocked and
reports false data races on the data they protect (#199585).
Intercept mtx_init, mtx_destroy, mtx_lock, mtx_trylock, mtx_timedlock
and mtx_unlock, forwarding to the real functions and doing what the
pthread_mutex interceptors do. mtx_recursive makes the mutex reentrant.
To avoid hardcoding C11 constants, forward mtx_plain, mtx_recursive and
mtx_timed enum values to sanitizer_platform_limits_posix.
Enable c11_mtx.c for TSan on glibc.
Assisted-by: Claude
[SanitizerCoverage] Use InstrumentationIRBuilder for gated callbacks (#244789)
Gated callback paths in InjectTraceForSwitch(), InjectTraceForCmp(), and
InjectCoverageAtBlock() used a plain IRBuilder instead of
InstrumentationIRBuilder, and InjectCoverageAtBlock() did not propagate
EntryLoc. When the split point has no debug location in a function with
a DISubprogram, the inserted runtime call lacked a !dbg location.
Assisted-by: Gemini
[LV] Expand runtime checks in SafeUDivMode. (#246863)
The SCEV predicate checks, memory runtime checks and alias-mask checks
are executed unconditionally before the vector loop, but may contain a
udiv that the original loop only evaluates in a predicated block, e.g.
for an address computed from a udiv under a condition that is never
true. Expanding it unguarded divides by zero or poison.
Expand them in SafeUDivMode, matching the expansion of
VPExpandSCEVRecipes. canExpandInIR no longer bails out in SafeUDivMode,
as it only accepts expressions that cannot cause UB, so hoisting of
memory checks out of outer loops is unchanged.
PR: https://github.com/llvm/llvm-project/pull/246863
[NFC][sanitizer_common] Flip the AIX build guard to positive (#246155)
https://github.com/llvm/llvm-project/pull/138606 added build guard
`SI_NOT_AIX`. It's a negative flag and easy to cause confusing on
double-negative.
This PR flips the flag to positive and updates all of the usages.
Assisted-by: Gemini
corecstat: Package C7 state appears to exist in Goldmont (Plus).
- The MSR is not explicitly listed for any Atom version or
Goldmont (Plus) itself, but is implied by the
"Package C7 Interrupt Response Limit 2" MSR.
- The same MSR as for "core" CPUs appears to work indeed.
Tested-with: Dell Wyse5070 Thin Client (Celeron J4105).
PC7 state residency shows when i915 is in runtime-suspend state,
and interrupt rates are low enough at idle.
[Clang][CodeGen] Plumb SourceLocation to virtual dtor and thunk calls (#245522)
Forward the call or delete expression location through
EmitCXXDestructorCall
and EmitVirtualDestructorCall, and pass the method location from
getOrCreateVirtualFunctionPointerThunk to EmitCall.
Previously, these paths passed an empty SourceLocation to EmitCall,
causing
call-site diagnostics such as target-feature errors on virtual
destructors
(both Itanium and Microsoft ABIs) to be emitted without a file or line
number. This also prepares for passing call-site locations to UBSan kCFI
diagnostics in follow-up changes.
Assisted-by: Gemini