[AArch64][SME] Elide private ZA setup when possible (#196090)
In private ZA functions without any instructions that require "active"
ZA we can omit all ZA setup (and saves/restores). This is equivalent to
removing the `__arm_new("za/zt0")` attribute when ZA state is unused.
[AArch64] Reflect cost of integer sub-reductions. (#194594)
The cost of sub-reductions is either the cost of *mlslb + *mlslt, or the
cost of a dot operation with 2 negations:
```
partial_reduce_umls acc, lhs, rhs
<=> -partial_reduce_umla -acc, lhs, rhs
```
(codegen for this was added by #186809)
The cost-model was previously a bit of a hack, since sub-reductions were
expanded and therefore expensive, although we made the expansion cost
artifically cheaper so that it would still be a candidate for cdot
instructions.
telephony/linphone: add doxygen to BUILD_DEPENDS
spotted by sthen@, ENABLE_DOC=NO should disable it, but
ENABLE_CXX_WRAPPER also drags it and it is enforced in toplevel
CMakeLists.txt
[libc++] Recognize _BitInt(N) as signed/unsigned integer type (#185027)
Replace the explicit specialization lists in `__is_signed_integer_v` and
`__is_unsigned_integer_v` with detection using `is_integral`,
`is_signed`, and `is_unsigned`. This covers `_BitInt(N)` for any N, in
addition to all standard and extended integer types. Character types and
`bool` are excluded via `__is_character_or_bool_v`.
This unblocks `<bit>` operations (`popcount`, `countl_zero`, `rotl`,
etc.) for `_BitInt(N)`.
Part of the [_BitInt(N) libc++
effort](https://discourse.llvm.org/t/bitint-n-support-in-libc-investigations-possible-improvements-looking-for-guidance/90063).
Assisted-by: Claude (Anthropic)
---------
Co-authored-by: Claude Opus 4.6 <noreply at anthropic.com>
devel/bazel8: fix crash due to missing JNI stub on BSD
Add a stub for SystemNetworkStats_getNetIoCountersNative in
unix_jni_bsd.cc. This symbol is required on non-Linux platforms
when JNI is available; its absence caused an UnsatisfiedLinkError
crash at runtime. Bump PORTREVISION.
PR: 294865
Reported by: Ken DEGUCHI <kdeguchi at sz.tokoha-u.ac.jp>
[Runtimes] Fix /clang: prefix warning for GNU-like clang on Windows (#192041)
libclc has configure warning on Windows:
clang: error: no such file or directory:
'/clang:--target=amdgcn-amd-amdhsa-llvm' clang: error: no such file or
directory: '/clang:-print-target-triple'
CMake Warning at CMakeLists.txt:239 (message):
Failed to execute `llvm-project/build/bin/clang.exe
/clang:--target=amdgcn-amd-amdhsa-llvm /clang:-print-target-triple` to
normalize target triple.
Switch to check CMAKE_C_COMPILER_FRONTEND_VARIANT because
- CMAKE_C_SIMULATE_ID=MSVC: true for both clang and clang-cl.
- CMAKE_C_COMPILER_FRONTEND_VARIANT=MSVC: true for clang-cl; false for clang.
[libc] Include CPU model in overlay CI sccache key (#196477)
[libc] Include CPU model in overlay CI sccache key
The overlay CI compiles opt_host memory tests with `-march=native`,
which generates object files specific to the runner CPU model. sccache
treats `-march=native` as a literal string in its hash key, so cached
`.o` files compiled on one CPU model get served to runners with a
different CPU. When the cached binary uses instructions the current CPU
lacks, the test crashes with SIGILL.
## Symptoms
The `memcmp_opt_host`, `memmove_opt_host`, `memset_opt_host`,
`bcmp_opt_host`, and `bzero_opt_host` tests crash when SIMD code paths
are first exercised. Simple tests like `CmpZeroByte` pass because they
use small sizes that do not enter SIMD routines. The failures are fully
reproducible on reruns because the cache stays poisoned.
[31 lines not shown]
[CUDA/HIP] Do not check function calls in discarded statement (#194606)
Previously, calling a host-device mismatch function inside a discarded
`if constexpr` branch would trigger an error. This patch recognizes that
discarded statements are never instantiated and allows such code.