graphics/py-trimesh: add some dependencies
- manifold3d is now enabled by default;
- math/py-vhacdx, math/py-fast-simplification and cad/py-cascadio are
available;
- replace TEST_DEPENDS by RUN_DEPENDS and order them.
PR: 301081
Approved by: yuri (maintainer)
[SPIRV] Add support for @llvm.lrint.* and @llvm.llrint.* intrinsics (#217618)
The SPIR-V legalizer had no rule for `G_INTRINSIC_LRINT` /
`G_INTRINSIC_LLRINT`, so `llc` aborted with "unable to legalize
instruction" on `llvm.lrint` and `llvm.llrint`. This uses the generic
lowering to `G_FRINT` + `G_FPTOSI`, which selects to OpenCL.std `rint`
(GLSL.std.450 `RoundEven` on Vulkan) followed by `OpConvertFToS`, the
same shape as the existing `lround` handling.
As with `lround` and `fptosi`, an out-of-range result goes through
`OpConvertFToS`, which is undefined behavior in SPIR-V, whereas LangRef
specifies `freeze poison` for lrint/llrint.
This PR was generated using AI
[SPIR-V] Drop nsz and reassoc from fmin/fmax selected for minnum/maxnum (#231767)
The selector copied every fast-math flag of `G_FMINNUM`/`G_FMAXNUM` onto
the fmin/fmax (NMin/NMax) `OpExtInst`, so `nsz` became `FPFastMathMode
NSZ` and `reassoc` became `Fast` (or a float_controls2 mask including
`NSZ`). SPIR-V NSZ treats the sign of a zero result as insignificant,
while LangRef requires nsz minnum/maxnum to keep the sign when both
operands are zeros of the same sign. Clear `nsz` and `reassoc` before
selecting these instructions; the `llvm.minimum`/`maximum` expansion
still reads `nsz` earlier in IR.
Fixes https://github.com/llvm/llvm-project/issues/231758
This PR was generated using AI
Record authentication attempts earlier in server lifecycle and
change precedence of exit values used to signal server state.
Closes weak username validity oracle via PerSourcePenalties, that was
fairly aggressively rate-limited in the default config.
Anthropic ANT-2026-KQAHPGQP
[CodeGen] Model latency of inline asm outputs in ScheduleDAGInstrs (#244934)
Credits: @MaskRay
`addPhysRegDataDeps` treats defs beyond an instruction's fixed operands
as fake, with zero latency. `INLINEASM` has no fixed operands, so every
physical-register asm output gets zero latency, unlike the
virtual-register path.
Treat a def inside an inline asm operand group (outputs, including
fixed-register outputs, and clobbers) as a real def. Trailing
bookkeeping operands keep zero latency.
As a followup of #229764
Discussion originally provided by @MaskRay :
https://github.com/llvm/llvm-project/pull/229764#issuecomment-6940301539
Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
[nsan] Reset shadow of byval arguments at function entry (#245262)
Fixes #243120
**Problem:**
The copy of a `byval` argument is put into stack memory for which the
caller never writes shadow values, and nsan's argument hand-off only
carries floating-point-typed arguments. The callee could then in some
cases read stale shadow left by earlier frames and report false
positives after other code has dirtied the same stack region.
See #243120 for more information.
**Solution**
Upon function entry, reset the shadow of each `byval` parameter to
unknown value. This way any future loads from it fall back to the native
value instead.
This is the conservative option: shadow precision of by-value aggregates
is lost on entry, so accumulated error inside such a struct is not
[17 lines not shown]
[PowerPC] Fix little-endian conversion of an unsigned word in a VSR to f128 (#242394)
On little-endian Power9, (f128 (uint_to_fp (i32 (PPCmfvsr f64:$src))))
was selected to xxextractuw with byte offset 8, which takes word element
2 of the VSR. The value is in word element 1, as used by mfvsrwz and by
the big-endian version of this pattern, because xscvdpuxws and similar
instructions write their result there in either endianness. The byte
numbering of xxextractuw does not depend on the endianness either.
For example, with clang -O2 -mcpu=power9 -mfloat128 on little-endian:
__float128 f(double d) { return (unsigned)d; }
was compiled to:
xscvdpuxws 0, 1
xxextractuw 34, 0, 8
xscvudqp 2, 2
[4 lines not shown]
[CIR] Fix VecExtract index type in Vec truncation cast (#246065)
Fix the index type in VecExtractOp to be size_t, not hard-coded s64i in
vector truncation cast
NAS-145406 / 28.0.0-BETA.1 / Require NTS for S3 Object Lock only when require_nts is set (#20282)
s3d refused every time source without NTS, so on the default NTP servers
every object-locked bucket was read-only. Render require_nts into its
[server] section, and when the setting changes, restart S3 once chronyd
has selected a source again (up to 60 s).
Needs truenas_s3 with the [server] require_nts key.
27.1 backport notes:
- system.security.update: the S3 hook goes in plugins/security/update.py
through middleware.call; 27 has no plugins/security/config.py
- buckets.conf.mako, lifecycle.py: system.security.config and
service.query return dicts on 27, so read require_nts and state by key
- s3 conftest: keep 27's zfs.resource.destroy for the excluded bucket's
dataset in place of master's destroy_impl
- test_s3_buckets.py needs truenas_s3 NAS-145392 (404 for a bucket no
row holds), which is on its stable/27
[3 lines not shown]
nd6: Add support for Optimistic DAD (RFC 4429)
Implement optimistic address based on RFC 4429.
Relnotes: yes
Differential Revision: https://reviews.freebsd.org/D55229
[ARM][clang] Add _AddressOfReturnAddress for 32-bit Arm (#240575)
_AddressOfReturnAddress was not a builtin on 32-bit Arm, so a call to it
became a call to a function that doesn't exist, and the ARM backend
could not lower llvm.addressofreturnaddress. Add the builtin, as on
AArch64, and lower the intrinsic to the LR slot of the frame record, the
frame pointer + 4. So that this slot holds the return address, a function
that takes it spills LR even when it is a leaf, and on ELF Thumb-2 keeps
r7 and LR together.
Assisted-by: Claude Opus 5.5 (Anthropic)
dnode_sync: Relax constraint on indirect freeing
One of the roles of the dnode sync thread is freeing. There are two
modes of this operation: freeing a portion of an object, and freeing
the object itself.
Freeing is handled by `free_children()`. This function verifies that
if the dnode has children there must be at least one marked as dirty
before proceeding to recursively free the tree of block pointers.
As described in a comment, this VERIFY is overly strict. In practice,
children may not be marked as dirty when the dnode itself is being
freed. Relax the VERIFY slightly by avoiding the VERIFY when indirect
blocks are to be immediately freed, to more closely match the comment
motivating the VERIFY.
While here, clarify the logic of the test by using VERIFY_IMPLY instead
of chaining multiple tests.
[4 lines not shown]
[ABI][AARCH64][NFC] Make SveCount a unique type (#245767)
The LLVM ABI library previously modeled SveCount (the AArch64
predicate-as-counter type) as a vector with a special kind to
distinguish it. Upon further reflection, this seems to have been a bad
choice as this type has almost no overlap with other vector types apart
from the fact that it occupies a predicate register.
This change separates SveCount as a separate type in the ABI library.
The classification and the LLVM IR type to which it is mapped remain
unchanged.
Assisted-by: Cursor / various models
kernel - Make stop_cpus()/restart_cpus() much more reliable
* Wait for cpus to not be inside an interrupt or to be initiating a
TLB shootdown while stopping them. This is better than trying to
fixup causes where the stop interrupts special interrupts (or any
interrupt, really).
Note that in DragonFly, stopped CPUs are still allowed to take
interrupts. We do not completely crowbar the CPU while it is
stopped, that just creates too many problems.
* Make DDB and crash-dump entry a lot more reliable.
* With analysis and testing by claude. However, we didn't really
use the primary recommendations and instead did it a slightly
different way.
Reported-by: tuxillo
Debugging-by: tuxillo
Bug: https://bugs.dragonflybsd.org/issues/3475
when performing a remote-to-local recursive copy from a ~user path,
trust the server to expand only the directory component and not
the file component. Avoids a hostile server picking unwanted filenames
Anthropic ANT-2026-JD513QS2
[Clang][OpenMP] Fix static,1 inner loop bound (#239868)
The inner loop of a combined distribute parallel for compared its
iteration variable directly with .previous.ub., whose parameter type is
uintptr_t. This could widen a signed i32 iteration variable to i64 and
make the comparison unsigned.
Reuse the existing conversion of .previous.ub. to the loop upper-bound
type when building the inner-loop condition. Update the affected OpenMP
codegen checks and add a focused test for signed and unsigned i32 loops.
Assisted by gpt-6.