[libc] Use a syscall wrapper for remap_file_pages (#240074)
This PR move remap_file_pages behind the centralized syscall wrappers,
following libc/docs/dev/syscall_wrapper_refactor.md.
[libc] Use a syscall wrapper for posix_madvise (#240073)
This PR move posix_madvise behind the centralized syscall wrappers,
following libc/docs/dev/syscall_wrapper_refactor.md.
[RegAlloc] Fix failed-reassign cache build after namespace removal
The reassign namespace was dropped from FailedReassignCache.h, but
RegAllocEvictionAdvisor and the unit test still referenced it, so the
tree did not build. Drop the qualifiers and forward-declare Cache in
llvm directly.
Also make a hint-only remember() discard any existing entry instead
of storing a flag, since hint sets can change without an overlapping
unassign.
Co-authored-by: Cursor <cursoragent at cursor.com>
[RegAlloc] Fix failed-reassign cache build after namespace removal
The reassign namespace was dropped from FailedReassignCache.h, but
RegAllocEvictionAdvisor and the unit test still referenced it, so the
tree did not build. Drop the qualifiers and forward-declare Cache in
llvm directly.
Also make a hint-only remember() discard any existing entry instead
of storing a flag, since hint sets can change without an overlapping
unassign.
Co-authored-by: Cursor <cursoragent at cursor.com>
[RegAlloc] Cache failed canReassign searches
The eviction advisor can ask canReassign repeatedly for the same live
interval. For register classes with long allocation orders, rescanning every
candidate is expensive when the answer remains false.
Cache failed searches that examine more than the configured order-size
threshold. A failure remains valid while registers are assigned because an
assignment cannot make another physical register available. LiveRegMatrix now
notifies every eviction advisor when an interval is unassigned so cached
failures whose slot ranges overlap the freed interval can record the affected
physical register. MLEvictAdvisor embeds a DefaultEvictionAdvisor, so both
register as listeners.
On a later query, return the cached failure immediately when no relevant
unassign occurred. Otherwise, check only the freed register and its aliases
that belong to the interval's allocation order. If none are now free, retain
the failure without rescanning the full order. Hint-only searches are not
reused, because the hint set can grow without an overlapping unassign.
[12 lines not shown]
wsdisplay: update scr_flags properly even after WSDISPLAYIO_MODE_DUMBFB
Fixes PR/60948 (WSDISPLAYIO_GMODE returns wrong value once
MODE_DUMBFB is set).
Should be pulled up to netbsd-11 and netbsd-10.
Import msedit-2.0.0.
msedit is a text editor that pays homage to the classic MS-DOS Editor, but
with a modern interface and input controls similar to VS Code. The goal is
to provide an accessible editor that even users largely unfamiliar with
terminals can easily use.
based on a submission from David Uhden Collado.
ok jan@
[VPlan] Share the result-type helper of `VPReplicateRecipe` with `VPWidenRecipe` (NFC)
Turn `VPReplicateRecipe::computeScalarType()` into an overload of
`computeScalarTypeForInstruction()` that takes the instruction. Both
`VPReplicateRecipe` and `VPWidenRecipe` use it when they wrap an instruction.
The opcodes it takes from the instruction never reach `VPWidenRecipe`, so the
types don't change. It prepares for widening `bitextract`, whose result type
can't be computed from its operands.
net-mgmt/semaphore: Restrict to aarch64 and amd64
The vendored modernc.org/sqlite carries FreeBSD bindings for i386 and arm
that predate the type names its own vtab.go uses, so the build fails there.
Sponsored by: Netzkommune GmbH