[Matrix] Implement matrix support for the `smoothstep` intrinsic (#246131)
Closes #184489.
This PR implements the matrix api for `smoothstep` and adds matrix
codegen tests. Matrix sema tests were not added because `smoothstep` has
no HLSL builtin. Matrix backend tests were not added because no DirectX
or SPIRV backend changes were made.
Assisted-by: Claude Opus 5.5
Fix stale directory services cache after system dataset mount
Validate TDB handles by dev/inode; a mount over /var/db/system keeps the path.
Close handles after mounting and check the cache version as a post-mount action.
Attributor: Only store AAKindSet IDs of kinds without a mask bit
AAKindSet::contains only searches the ID list for kinds that have no
bit in the mask, but the list held the IDs of every kind in the
set. Store only the ones without a bit, so AMDGPUAttributor searches 8
IDs instead of 18.
amdgpu-attributor pass, callgrind: -0.08% on a full-LTO rocPRIM module.
Assisted-by: Claude
[sanitizer_common] Wait for the tracer with CLONE_CHILD_CLEARTID (#248327)
StopTheWorld() spins until the tracer thread sets a flag. If seccomp
kills the tracer on ptrace, the flag is never set and the leak check
hangs (#150380). #151406 added a fork to the first leak check to warn
about that, but the fork is expensive and the process still hangs.
Wait instead on a word that the kernel clears when the tracer exits for
any reason. The leak check now fails with an error instead of hanging,
and the fork is not needed.
Alternative to #248249.
Assisted-by: Gemini
libcef: add cef based on chromium 150
The Chromium Embedded Framework (CEF) is a simple framework for embedding Chromium-based browsers in other applications.
[libc] Fix building with clang 21 in C++20 (#248574)
There were build errors when building clang using LLVM-libc through
hand-in-hand with the C++ standard set to 20. The `'` digit separator
didn't work properly for clang-scan-deps version <23. Anyways the
solution is just to remove the digit separator since it's not necessary
in this case.
Assisted-by: Automated tooling, human reviewed.
[Clang][Docs] Add documentation for -Wfortify-source (#224111)
Add user-facing documentation for the `-Wfortify-source` diagnostic group in `clang/docs/SourceFortification.md` (linked from `clang/docs/index.md` and `DiagnosticDocs.td`/`DiagnosticGroups.td`).
Part of #142230
Assisted-by: Gemini
[CIR] Add calling convention lowering for mfloat8 types (#246165)
This change adds CIR calling convention lowering support for function
signatures involving the MFloat8 type, including vectors or aggregates
containing that type.
Assisted-by: Cursor / claude-opus-5.5
[RISCV] Make cost of wide constant with MUL user free if can lower to shifts (#248199)
Prevents hoisting of such constants.
AI Usage: Codex assisted review and test generation.
bhyve: fix bootorder for PCI slots >= 10
Currently, bhyve writes slots as decimals. Firmware such as EDK2
interprets them as hexadecimals, so slot 10 becomes 16, breaking
the configured boot order.
Reviewed by: markj
Fixes: 6632a0a4e3ab ("bhyve: add helper to create a bootorder")
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D61997
(cherry picked from commit 653c5d3b5f9f3f157c043c0acdcfc2ba85718016)
[diagtool] Parse find-diagnostic-id arguments without cl::opt (#246761)
Parse the find-diagnostic-id command line by hand, like the other
diagtool subcommands, as part of removing cl::opt from clang/. LLVM's
global options (e.g. -debug-only, --version) are no longer accepted.
LLM-aided
Co-authored-by: Aaron Ballman <aaron at aaronballman.com>
[AMDGPU] Replace constant uses of LDS variables in the object linking mode
In the object linking mode, `AMDGPULowerModuleLDS` moves an LDS variable into a
struct and replaces the uses of the variable in instructions. A use outside
instructions, for example in the initializer of a table in global memory, kept
the old variable as an LDS definition next to the struct. Code that read the
address from the table then used another location than the instructions, and
`AMDGPUAsmPrinter` stopped at the assertion for LDS definitions.
The LDS lowering for ASan (`AMDGPUSwLowerLDS`) makes such a table for the LDS
slot of each kernel. So in object linking mode, ASan code crashed when a
non-kernel function used LDS.
Since the linker does the allocation in object linking mode, the remaining uses
now get the same field of the struct, after the variables are removed from the
used lists.
[mlir][Presburger] NFC: Mark set ops nodiscard (#247433)
Mark PresburgerRelation, PresburgerSet, IntegerRelation, and
IntegerPolyhedron methods that return a new set or relation (such as
complement, subtract, intersect, coalesce, and simplify) [[nodiscard]]
so callers do not confuse them with in-place mutators such as
IntegerRelation::simplify. Remove a discarded complement() call in a
unit test.
Assisted-by: gemini-4-carbon
bsdconfig: Resolve GEOM ids and names without scanning
f_device_get_all probes every DEV geom. Each probe calls
f_geom_find_by to turn a provider ref into a struct, and
f_geom_find for the gpt, geli, and nop parent names. Those walks
cover every class and geom, so a machine with a large disk set
spends its time in sh at "Probing devices".
Record each struct by id, and each geom by name, while
f_geom_get_all parses kern.geom.confxml. f_geom_find_by resolves
property id from the id map. f_geom_find resolves a non-empty name
from the name map. The same name can appear in more than one class,
so the name map stores a list of structs. A name that is still not
a shell identifier after rewriting is left for the linear scan.
f_geom_reset drops both maps.
Add an ATF test that times id and name lookups at 100 and 200
disks, and checks names that are not shell identifiers.
[3 lines not shown]
[CIR][OpenACC] Attach acc global variable interfaces (#244313)
Attaches the OpenACC dialect operation interfaces to `cir.get_global`
and `cir.global` which are used for implicit `acc declare`
determination.
Along with it, the OpenACC passes are registered so they can run through
`cir-opt` and a new test folder to hold the IR tests for OpenACC dialect
Transforms.
bhyve: fix bootorder for PCI slots >= 10
Currently, bhyve writes slots as decimals. Firmware such as EDK2
interprets them as hexadecimals, so slot 10 becomes 16, breaking
the configured boot order.
Reviewed by: markj
Fixes: 6632a0a4e3ab ("bhyve: add helper to create a bootorder")
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D61997
(cherry picked from commit 653c5d3b5f9f3f157c043c0acdcfc2ba85718016)
Include the ad.arm entries in ad.earmv7 and ad.earmv7hf
This will hopefully finally fix the evbarm-earmv7hf build failures.
Note: I did not copy the obsolete entries, based upon the assumption
that no earmv7 or earmv7hf systems would have existed when those
old files were part of the build. If that is incorrect, by all means,
add them back (that won't affect the daily autobuilds, or any other
fully clean build, as those never experience files from a previous generation).
PR/61113: Edmund: Apply Sun's BSD relicensing, like FreeBSD did in 2013:
"Replace Sun RPC license in TI-RPC library with a 3-clause BSD license,
with the explicit permission of Sun Microsystems in 2009"
games/anki: fix build on powerpc64le
Since 92401c33b734 the node modules archive has the architecture in its
name, so the one for powerpc64le is missing from distinfo. It's the same
file as the amd64 one, so add it under its own name.
Approved by: portmgr (blanket)
(cherry picked from commit d861ab659356b926fd0ef15505b116aa8b048889)
[MLGO] Reject EmitC models with mismatched input buffer sizes (#242629)
Since #224598 a tensor can be wider than the compiled field, so writing
a tensor wider than the compiled field corrupted the heap
Report an error and fall back to the default advisor instead, as the AOT
runner does
Requires https://github.com/llvm/llvm-project/pull/242627
[mlir][Presburger] Fix MAF duplicate div merging (#247440)
When MultiAffineFunction::mergeDivs merges duplicate division j in
`other` with division i in `this`, it removes column j from
`other.output`. Before removing column j, it added column i into column
j instead of adding column j into column i, dropping the duplicate
division's output coefficients.
As a result, unionLexMin and unionLexMax compared the wrong expressions
when two pieces shared a division.
Also remove the outdated comment on unionLexMin and unionLexMax stating
that pieces with divisions are unsupported.
Assisted-by: gemini-4-carbon
sysrc: Add -u and -U
-U names a user in the jail password database and is passed to
jexec(8). It requires a running jail.
-u names a user in the host password database and is passed to
both jexec(8) and chroot(8).
The two cannot be combined, matching jexec(8).
MFC after: 2 weeks
Reported by: ngie
Reviewed by: kfv, ngie (previous revision)
Differential Revision: https://reviews.freebsd.org/D61930