[DebugInfo][FLMD] Add core FLMD context + node classes (#236203)
This patch starts implementing the core FLMD context and node classes,
which serve to replace the existing DILocation-based source location
model. Most of the additions of this patch are in
FunctionLocalMetadata.h, which defines the context class
MDFunctionLocalContext and the data types that it stores, and also
includes verifier changes to test some of the basic semantics of these
classes.
The contents of FunctionLocalMetadata.h are largely unmodified in later
patches, meaning this is a complete implementation of the basic class
interfaces, not including support functions, e.g. IR/Bitcode, value
mapping, or updating the contents through transformations such as
inlining. This patch also does not include FLDebugLoc, the class that
replaces DebugLoc as the main source location storage mechanism; these
will all be added in followup patches.
[NFC][CodeGen] Store EH handlers as AsmPrinterHandler in AsmPrinter (#245196)
AsmPrinter is exported (LLVM_ABI), but its EHHandlers field was a
SmallVector<std::unique_ptr<EHStreamer>>, where EHStreamer has
LLVM_LIBRARY_VISIBILITY (hidden). GCC warns with -Wattributes:
'llvm::AsmPrinter' declared with greater visibility than the type of
its field 'llvm::AsmPrinter::EHHandlers'
in every TU that sees the EHStreamer definition before AsmPrinter.h.
All uses of EHHandlers only call virtual methods declared on the
exported AsmPrinterHandler base, so store the handlers as
AsmPrinterHandler and drop the EHStreamer forward declaration.
Co-authored-by: Claude <noreply at anthropic.com>
pmc(8): handle AMD Zen3-B0 IBS errata in the frontend view
AMD Family 19h Model 00h-0Fh (Zen3-B0) has IBS errata that make some
fetch and op sample fields wrong. Detect this silicon from the CPUID
block in the pmc(8) log header, set one flag per erratum, and correct
the affected samples before the callchain callbacks:
- #1197: drop fetch samples with a zero linear address.
- #1238: omit the IC Miss column; the IcMiss bit is unreliable.
- #1293: zero DATA2 and the DATA3 L2Miss/OpenMemReqs fields on the
trigger conditions, keeping the sample.
Reviewed by: Ali Mashtizadeh <ali at mashtizadeh.com>
MFC after: 1 week
Signed-off-by: Andre Silva <andasilv at amd.com>
Differential Revision: https://reviews.freebsd.org/D58715
[RegAlloc][NFC] Avoid relational operators on booleans
I find relational operators on booleans to be significantly less
readable than just spelling out the actual operations, especially in
this case. This made trying to debug a recent problem a bit more tricky.
Reviewers: aeubanks
Pull Request: https://github.com/llvm/llvm-project/pull/244263
[analyzer] Commit the dead-region cleanup in UninitializedObjectChecker (#244849)
checkDeadSymbols removed dead regions from the AnalyzedRegions set but
never added a transition, so the updated state was thrown away. This has
been the case since the callback was introduced. As a result the set
only ever grew along a path, and a region that died and was later reused
(e.g. a local in a loop body) stayed marked as already reported,
suppressing legitimate warnings for objects constructed later that point
to it.
Add the missing transition. The new test constructs, in two iterations
of a loop, two different objects pointing to a fresh uninitialized
local; previously the second warning was suppressed.
Assisted-by: Claude Opus 5.5
Co-authored-by: Gabor Horvath <gaborh at apple.com>
[MLGO] Allow evictions in more cases
4e06ffe7db1548463426810aea4cccd9a15a4aea prevented evictions in a couple
circumstances that greedy allowed and the ML eviction advisor allowed
before:
1. We're allowed to evict interferences with IntfCascade < Cascade even
if the interference is unspillable.
2. An unspillable virtual register is allowed to evict an unspillable
interference with IntfCascade < Cascade.
3. An unspillable virtual register is allowed to evict an interference
with equal cascade.
To fix this, just copy the conditions from the legality assertion
(https://github.com/llvm/llvm-project/blob/70e45981bc4a0a6d28c04e8e67df5527ac6d93b7/llvm/lib/CodeGen/RegAllocGreedy.cpp#L659)
for the case where Cascade <= IntfCascade and use that.
Also update a couple comments in tests.
Assisted-By: LLM
[3 lines not shown]
[LifetimeSafety] Model base and delegating constructor initializers (#244612)
Only member initializers were modeled, so a borrow passed to a base or
delegating initializer was lost. Flow it into the object being
constructed: this reports dangling temporaries and by-value parameters
(including through gsl::Pointer bases, as for locals), verifies
lifetimebound parameters forwarded this way, and diagnoses noescape
parameters that escape into the object (including through
lifetime_capture_by_this).
Assisted-by: Claude Opus 5.5
Co-authored-by: Gabor Horvath <gaborh at apple.com>
converters/ruby-Ascii85: update to 2.0.2
2.0.2 (2026-11-21)
Fixed
* Decoding a partial, trailing 5-tuple to a value >= 2**32 raised RangeError
instead of DecodingError (Issue #9)
[CIR][NFC] Align dynamic dispatch of sync scopes to memory ordering (#206054)
This patch is a minor refactoring that aligns the dynamic dispatch path
of atomic sync scopes to the dynamic dispatch path of atomic memory
ordering.
py-httpx2-kerberos: Import py-httpx2-kerberos-2.1.1 as wip/py-httpx2-kerberos
HTTPX2 Kerberos/GSSAPI Authentication Library.
HTTPX2 is a fully featured HTTP client library for Python 3. This
library adds optional Kerberos/GSSAPI authentication support and
supports mutual authentication.
[compiler-rt][AArch64] Clean up the cpu_model code (NFC) (#244828)
- Remove the unused HAVE_SYS_AUXV_H and the extra sys/auxv.h include
from fmv/hwcap.inc. aarch64.c already includes it.
- Use 1UL for all of the HWCAP2 bits, like the Linux headers.
- Move __isExynos9810() to aarch64/android.inc so fmv/android.inc does
not depend on lse_atomics/android.inc.
- Fix a typo in a comment.
Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>