[CommandLine] Make cl::boolOrDefault a scoped enum (#204553)
Prevents implicit conversion to bool/int, where BOU_FALSE wrongly
evaluated as true. All uses qualified as cl::boolOrDefault::BOU_*.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply at anthropic.com>
[clang][bytecode] Take AccessKinds into account in diagnoseNonConstVa… (#204824)
…riable
And diagnose it as a modification and not a read if applicable.
[libc++] Default the allocator argument for most string constructors (#169901)
Allocators are generally very cheap to copy, so avoiding copies by
having separate overloads is not that useful. Defaulting them
significanlty reduces the overload set the compiler has to consider and
simplifies the code, since we can remove some functions in the future.
Closes #87368
ctermid(3): Fix return values section
ctermid() doesn't, and has never, set errno.
While here, add ctermid_r to the name section and align the parameter
name in the source file.
Reviewed by: bnovkov
Approved by: bnovkov
MFC after: 3 days
Obtained from: https://github.com/apple-oss-distributions/libc
Sponsored by: Klara, Inc.
Differential Revision: https://reviews.freebsd.org/D57396
[libc++] Make std::multimap constexpr as part of P3372R3 (#161901)
Fixes #128661
Co-authored-by: Nikolas Klauser <nikolasklauser at berlin.de>
Co-authored-by: Louis Dionne <ldionne.2 at gmail.com>
[Clang][Hexagon] Predefine _GNU_SOURCE for C++ compilations (#201599)
Predefine _GNU_SOURCE in C++ mode for H2, QuRT, and baremetal
Hexagon targets.
Signed-off-by: Kushal Pal <kushpal at qti.qualcomm.com>
[clang][FreeBSD] Re-enable the crash-recovery test on FreeBSD (#192608)
All of the tests work now on FreeBSD, so we re-enable the feature again
on FreeBSD.
[mlir][affine] Implement LoopLikeInterface::getStaticTripCount on AffineForOp (#204687)
LoopLikeInterface is useful, but missing `getStaticTripCount` requires
adding extra cases to check when processing otherwise dialect-agnostic
code.
There is an existing free function `getConstantTripCount`, which I
deprecated and replaced (NFC) with the new implementation. I believe the
new implementation is slightly more efficient than
`getConstantTripCount` because it checks if the expression is constant
and fast-fails before constructing the output `AffineMap` that was
returned by `getTripCountMapAndOperands`.
Assisted by Gemini
uart: Add support for the Intel XScale controller
The ns8250 driver avoids clearing IER bit 0x10 to account for the
split "receiver time-out interrupt enable" bit, but it never sets
it in `ier_rxbits` even though a comment in `ns8250_init` implies so.
Fix this by setting `IER_RXTMOUT` if we've matched an XScale uart.
Differential Revision: https://reviews.freebsd.org/D57629
Reviewed by: imp
MFC after: 2 weeks
[Clang] Respect `-fno-slp-vectorize` for the LTO pipeline (#201585)
Summary:
This is related to reported regressions in the GROMACS suite when
offloading to AMDGCN devices through the RDC / LTO interface. The
application intentionally passes `-fno-slp-vectorize` to disable that
pass, but there's currently no way to do this through the LTO pipline.
This PR causes the driver to emit `plugin-opt=` for the `-mllvm` option.
That means the pass is still enabled but it should be a no-op now.
import ports/textproc/py-rapidfuzz, from Chris Billington, various tweaks
by me, tweak/ok landry@
This package provides the Python extension for RapidFuzz, a fast MIT-licensed
fuzzy string-matching library for Python and C++. It uses string similarity
calculations from a pre-GPL version of https://github.com/seatgeek/fuzzywuzzy
providing a wide range of fundamental algorithms:
- Damerau Levenshtein
- Hamming
- Indel
- Jaro
- JaroWinkler
- Levenshtein
- Longest Common Subsequence
- Optimal String Alignment (OSA)
- Prefix
- Postfix
for MODPY_PYBUILD, install the newly built wheel to a staging dir prior
to running python -m pytest, and add that staging dir to PYTHONPATH.
fixes some cases where "make test" would not work without first running
"make fake" (especially scikit-build, which removes the build files after
creating a wheel).
netlink: Indicate that ifinfomsg uses IFT_* types
On Linux struct ifinfomsg uses ARPHRD_* values, while we used IFT_*
types (which derive from SNMP ifType definitions in RFC 1573).
Update the header to reflect this.
PR: 272144
Reviewed by: pouria
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D57334
(cherry picked from commit 21a75a85f0e0cc328b6e9b437d783ef0c25dc52e)
[CommandLine] Make cl::boolOrDefault a scoped enum
Prevents implicit conversion to bool/int, where BOU_FALSE wrongly
evaluated as true. All uses qualified as cl::boolOrDefault::BOU_*.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply at anthropic.com>