libthr: Skip unwinding for thread normal returrn
For a thread returns normally, there is no needeed to unwind the stack.
We split the exit code with a common implementation and pass unwind
to check whether we need to unwind the stack or not.
Reviewed by: kib
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D62265
libthr: Skip unwinding for thread normal returrn
For a thread returns normally, there is no needeed to unwind the stack.
We split the exit code with a common implementation and pass unwind
to check whether we need to unwind the stack or not.
Reviewed by: kib
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D62265
[Modules][ObjC] Objective-C protocols aren't visible in local submodule visibility (#247826)
There's a few spots in DeclObjC and SemaDeclObjC that need to switch
from Decl::isUnconditionallyVisible to Sema::isVisible (sometimes via
ASTContext::isDeclVisible).
Co-Authored-By: Claude Opus 5.5 <noreply at anthropic.com>
rdar://82959731
ValueMapper: Don't cache identity mappings of globals and leaf constants
With RF_NoModuleLevelChanges and no materializer, globals and
constants without operands always map to themselves. Return them
directly instead of adding map entries.
Instructions retired by opt -O3:
tramp3d-v4, x86_64-linux: -0.13%, -0.18% without likely_module_local
hints, -0.10% with -g
CTMark geomean, arm64: -0.01%, -0.06% with -g
Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
[dsymutil] Make numbers explicitly unsigned to fix c++20 issue. (#247933)
When built with C++ 20 as the standard (-DCMAKE_CXX_STANDARD=20), LLVM
can't decide whether these are 'const yaml::Hex32' or 'int' numbers,
leading to an operator overload error. Making these numbers explicitly
unsigned fixes the problem.
[AMDGPU] Fold integer wmma with zero multiplicand to the accumulator
For integer wmma and swmmac, $A \times 0 + C = C$, so if A or B is zero
the result is just C. The sign or neg modifiers, clamp, reuse hints and
sparsity index cannot change this, because the product is zero and C
cannot overflow.
```llvm
%r = call <8 x i32> @llvm.amdgcn.wmma.i32.16x16x64.iu8.v8i32.v8i32(i1 0, <8 x i32> %a, i1 0, <8 x i32> zeroinitializer, <8 x i32> %c, i1 0, i1 0, i1 1)
-->
%r = %c
```
Floating point variants are not folded, since $0 \times \infty$ and
$0 \times \mathrm{NaN}$ give NaN and $-0.0 + 0.0 = +0.0$.
[AMDGPU][Docs] Introduce A/V scope in the memory model
- Define the availability/visibility (A/V) scope of an operation, which may
differ from the syncscope of an atomic operation, and the execution scope
instance of an operation.
- Distinguish "inclusive scopes" (based on syncscope) from "inclusive A/V
scopes"
- Replace the "common scope" and "X's scope instance" terminology in the
availability and visibility rules.
Assisted-by: AI
[NFC][MIR2Vec] Check that CommonOperands covers every operand type (#246057)
Add an ExcludedOperandTypes list (MO_Register, MO_DbgInstrRef) and a
static_assert that CommonOperands and ExcludedOperandTypes together have
one entry per MachineOperandType. A newly added operand type now breaks
the build instead of silently getting a zero embedding.