[clang] fix alias ctad producing function template with no template parameters
Also fixes the same problem with error recovery for invalid template template
parameters.
This also adds asserts to the template constructors to make sure this
doesn't happen again.
[SelectionDAG] Use Magic Algorithm for Splitting UDIV/UREM by Constant (#154968)
For integer types twice as large as a legal type, we have previously
generated a library call if another splitting technique was not
applicable.
With this change, we use an adaption of the Magic algorithm. This
algorithm is also used for UDIV/UREM by constants on legal types. The
implementation introduced here is a simple port of the already existing
implementation to types twice the size of a legal type. The core idea of
this algorithm is to replace (udiv x c) for a constant c with the bits
higher or equal to the s-th bit of the multiplication of x by (2^s +
o)/c
for some s and o. More details are available in Henry S. Warren, Jr.:
"Hacker's Delight", chapter 10.
An efficient handling of UDIV/UREM by constants on types twice as large
as a legal type is mostly relevant for 32-bit platforms. But some
projects may also benefit on 64-bit platforms. For example, the `fmt`
[3 lines not shown]
[lldb] Support arm64e in TestClearSBValueNonAddressableBits.py (#194748)
These values are expected to be different on arm64e where the raw
pointer value should have all the tagged bits and the stripped pointer
shouldn't.
[clang] fix alias ctad producing function template with no template parameters
Also fixes the same problem with error recovery for invalid template template
parameters.
This also adds asserts to the template constructors to make sure this
doesn't happen again.
[Coverage] Fix quadratic propagation in RawCoverageMappingReader (#194996)
```
llvm-cov export /tmp/Cov/bin/lld -instr-profile=/tmp/Cov/cov.profdata -format=lcov --sources lld/ELF/Arch/RISCV.cpp
```
does not finish after minutes.
Root cause: The expansion-region count propagation loop is bounded by
`VirtualFileMapping.size()`, the number of macro expansions.
In the TableGen-generated `RISCVGenDAGISel.inc` (depended on by
LLVMLTO), `NumFileMappings` is 74941 (largely due to the `TARGET_VAL`
macro). With 149887 mapping regions, the loop does not finish after more
than ten minutes.
Fix with an early break.
lang/gnat1?: fix build with GNU strip
After D55509 $STRIP_CMD has been set to GNU strip for these ports, and in some
cases this breaks, because GNU strip will refuse to strip non-writable files,
while LLVM strip is happy to (attempt to) strip them.
PR: 294657
Reported by: kib at FreeBSD.org
Reviewed by: kib at FreeBSD.org
Phabricator: D55509
MFC after: 8 days
(cherry picked from commit 3d69dd6df87f1ef85fb4869f15be3ddc6099e605)
[AMDGPU] Refactor setreg handling in the VGPR MSB lowering (#186491)
It can skip inserting S_SET_VGPR_MSB if we set the mode via
piggybacking. We are now relying on the HW bug for correct
behavior. If/when the bug is fixed lowering will be incorrect.
SETREG is not a piggybacking target anymore. Instead piggybacking is
disabled if we have seen a SETREG since the last mode change.
bob: Update to 0.99.3.
* Switch to an upstream commit with illumos support for lua-src so that we can
use the bundled version. OmniOS is now supported, as it does not provide a
native lua package.
* Generate setup.log for bob's internal handling of preparing for a build, and
include them in the report, so that users are made aware of any failures that
prevented a package build from starting.
* Various logging and error handling improvements.
* Add `--from` and `--to` support to `bob diff`.
* Add `bob publish --baseline` to compare against a specific build run instead
of the previous, useful if the previous build ended up being unusable.
* Support `bob util import-pscan --no-resolve`
[26 lines not shown]
[libc][NFC] Remove <sys/mman.h> from mmap.h and fix tests (#195240)
Removed the last direct <sys/mman.h> include from mmap.h, replacing it
with hdr/types/size_t.h and hdr/types/off_t.h.
Added hdr/sys_mman_macros.h to test files that relied on transitive
includes for PROT_READ, MAP_ANONYMOUS, and similar macros.
www/chromium: update to 147.0.7727.137
* 147.0.7727.116
This update includes 19 security fixes. Below, we highlight fixes
that were contributed by external researchers. Please see the
Chrome Security Page for more information.
[TBD][493652473] High CVE-2026-6919: Use after free in DevTools.
Reported by c6eed09fc8b174b0f3eebedcceb1e792 on 2026-03-18
[TBD][499891888] High CVE-2026-6920: Out of bounds read in GPU.
Reported by tatiwari of Microsoft on 2026-04-06
[TBD][493315759] Medium CVE-2026-6921: Race in GPU.
Reported by soiax on 2026-03-17
* 147.0.7727.137
This update includes 30 security fixes. Below, we highlight fixes
that were contributed by external researchers. Please see the
Chrome Security Page for more information.
[$7000][494352590] Critical CVE-2026-7363: Use after free in Canvas.
Reported by heapracer on 2026-03-19
[58 lines not shown]