[llvm-debuginfo-analyzer] Refactor type assignment for locals (#186117)
From
https://github.com/llvm/llvm-project/pull/183172#discussion_r2918524548:
Assigning and scoping the type of a local variable was duplicated in
`S_BPREL32`, `S_REGREL32` (and now) `S_REGREL32_INDIR`. I moved these
into a separate method in this PR.
`S_LOCAL` shares a similar part, but not the exact one. There, it's not
checked if the type element has a parent scope
(`Element->getParentScope()`). As all these records represent a local
variable (or a parameter/this), I figured this was an oversight.
Use a dedicated header for elftc_get_program_name(3).
This change allows the function to be used without needing
<libelf.h> (included via <libelftc.h>) to be present.
NAS-140207 / 27.0.0-BETA.1 / Full alerts mypy (#18409)
Key changes:
* Alert class configuration moved to `AlertClassConfig`
* Each alert that has parameters is a dataclass now
* Alerts are instantiated using that dataclass constructor and we're
able to statically check its arguments
[mlir][arith] Fix crash in IntRangeOptimizations due to stale solver state (#186187)
When the IntRangeOptimizationsPass runs applyPatternsGreedily with
constant folding enabled, constant folding can restructure blocks — for
example by removing a block argument. The integer range solver, which
pre-computed range information for the original block arguments, is now
out of sync: subsequent range queries about the new (reused) argument
positions return stale information computed for the old arguments,
causing crashes.
Fix by passing enableConstantFolding(false) in GreedyRewriteConfig so
that the solver's state remains consistent with the IR throughout the
rewrite.
Fixes #122076
Assisted-by: Claude Code
Fix TNC sync_interface_ips empty IPs and repeated concurrent calls
This commit fixes an issue where sync_interface_ips could send empty IPs to the
TNC account-service (causing 400 errors) and where concurrent netlink events
would each independently hit the TNC API with the same payload.
When the HTTP call failed due to empty IPs, the cache was never populated, so
every subsequent netlink event retried the same failing call — creating an
infinite retry storm. Additionally, a single DHCP renewal would fire 3-5 netlink
events, each scheduling a call_later(5), all passing the cache check
simultaneously, and all hitting the TNC API concurrently with identical payloads.
An asyncio.Lock serializes concurrent sync_interface_ips calls so only the first
performs the HTTP sync while subsequent calls hit the cache and return early. An
empty IP guard skips the HTTP call when no IPs are available (static + dynamic
combined) but still caches the result to prevent retry storms.
- Simplify processing by centralizing: no need to prefix all errors with
"%lu: %s: " and pass fname, lineno to each; do it in one place.
- Use emalloc and friends instead of homegrown xmalloc and friends.
17936 Update Intel microcode to 20260227
Reviewed by: Toomas Soome <tsoome at me.com>
Reviewed by: Andy Fiddaman <illumos at fiddaman.net>
Approved by: Robert Mustacchi <rm+illumos at fingolfin.org>
[mlir][affine] Fix crash in AffineParallelLowering for unsupported reductions (#186189)
When lowering affine.parallel with a reduction kind that has no identity
value (e.g. "assign"), getIdentityValueAttr() returns nullptr. The
caller getIdentityValue() then passed this null TypedAttr to
arith::ConstantOp::create(), triggering an LLVM_ERROR crash:
"Failed to infer result type(s): arith.constant"
Fixes #185250
Assisted-by: Claude Code
[mlir][arith] Fix crash when constant-folding truncf of inf to FiniteOnly float type (#186191)
When arith.truncf constant-folding converts a value such as infinity to
a type with fltNonfiniteBehavior::FiniteOnly (e.g. f4E2M1FN),
APFloat::convert hits an llvm_unreachable("semantics don't support
inf\!").
The fix adds early-exit guards in convertFloatValue() to return
failure() before calling APFloat::convert() when the source value is
infinity or NaN and the target type cannot represent it. This makes the
fold a no-op for unrepresentable special values, matching the existing
behavior for lossy ordinary conversions.
Fixes #185351
Assisted-by: Claude Code
[mlir][python] Avoid needless std::string copies in properties. NFC. (#186190)
MlirStringRef is copied into a Python str by nanobind's type_caster
anyway, so the intermediate std::string was a redundant allocation.
---------
Co-authored-by: Claude Opus 4.6 <noreply at anthropic.com>
[mlir][xegpu] Allow `DistributeLayoutAttr` in structural type conversion in Wg to Sg pass. (#186206)
Current approach fails if slice layouts are used in structural ops
arguments (scf.for etc)
[flang][OpenMP] Loop IVs inside TEAMS are predetermined private in 5.2+ (#185958)
Mark the induction variables of loops in a TEAMS construct as
predetermined private when OpenMP version is 5.2 or later.
HBSD: Make sure the kinfo_file struct always gets zeroed
Similar to FreeBSD commit 25cc459286a02b646751541ccde5a33319471c73,
apply a memset in one of the core functions used to fill the structure.
This ensures that all kinfo_file structure allocations are zeroed (at
least, at the point of calling shm_fill_kinfo_locked).
Signed-off-by: Shawn Webb <shawn.webb at hardenedbsd.org>
MFC-to: 15-STABLE
inpcb: overhaul in_pcb.h
Pull up all user-visible stuff to the top of the file and isolate the
rest under _KERNEL. The user visible parts are:
- struct in_conninfo
- struct xinpcb
- defines for inp_flags bits, that are shared between xinpcb and inpcb
PR: 293493
[LLVM] Fix assertion when dropping type tests with SelectInst users (#185523)
The `dropTypeTests` function assumes that after removing `llvm.assume`
users of `llvm.type.test` calls, any remaining users must be PHINodes
(from merged assumes). However, SimplifyCFG can also merge two
`assume(type.test(...))` sequences into `assume(select(cond,
type.test_1, type.test_2))`, leaving SelectInst users that trigger the
assertion.
Extend the assertion to also accept SelectInst. The
`replaceAllUsesWith(true)` call already handles all user types
correctly — only the assertion was too narrow.