sysutils/legion: Add New Port
Legion runs containers on FreeBSD hosts as a cluster. Containers are
jails, images and volumes live on ZFS, services are balanced by pf, and
nodes are joined by a WireGuard mesh. One binary is the daemon on every
node and the command line.
www: https://github.com/grepjava/legion
PR: 300441
Sponsored by: Netzkommune GmbH
[mlir][linalg] Do not fold tensor.pad into a read inside vector.mask (#243927)
`PadOpVectorizationWithTransferReadPattern` folds a `tensor.pad` into a
`vector.transfer_read` of its result and replaces the read's padding
with the pad value. It bails out on a mask operand, but not on
`vector.mask`, where the masked-off lanes take the read's padding.
For example, vectorizing a `linalg.pack` (tile 8, padding `-1`) of a
`tensor.pad` (3 to 5 elements, value `7`) gives a masked read of the
pad. After `pad_vectorization`, the packed row is `1 2 3 7 7 7 7 7`
instead of `1 2 3 7 7 -1 -1 -1`.
The pattern now bails out on reads inside `vector.mask` too. Tested by
`@negative_pad_and_transfer_read_in_vector_mask`.
Part of #227821 and #239511.
Assisted-by: Claude
[SystemZ] Use NORK/NOGRK for bitwise NOT on z15+ (#244815)
With the miscellaneous-extensions-3 facility, `xor x, -1` can be
selected as a single NORK (i32) or NOGRK (i64) with both source operands
equal. This replaces LR+XILF for i32 and LCGR+AGHI for i64: one
instruction instead of two, with a shorter encoding and no register
copy.
Update affected tests and add not-01.ll coverage for z15 and z14.
Assisted by: IBM Bob
sysutils/dfs: New port
A configuration (dotfiles) manager with a template engine and true 2-way
synchronization. It uses a git repository as a configuration source and
mirrors its content into a destination directory (usually $HOME). Any
changes in the rendered file are translated back into the template.
PR: 296985
Co-authored-by: Kenneth Raplee <kenrap at FreeBSD.org>
Reviewed by: arrowd (co-mentor)
Approved by: makc (mentor)
[mlir][vector] Only fold ext ops from the same type into vector.contract (#221298)
`FoldArithExtIntoContractionOp` checks that both contraction operands
are produced by the same kind of extension, but not that the extensions
start from the same element type. With `extsi` from i8 on one side and
from i16 on the other it rewrites the contraction to take the two
sources directly, and the result fails to verify:
```
'vector.contract' op failed to verify that lhs and rhs have same element type
```
The same happens with `extf` from f16 and bf16. Compare the source
element types and leave such contractions alone.
Test: an `extf` case in `fold-arith-extf-into-vector-contract.mlir` that
keeps the extensions.
[JumpTableToSwitch] Use ConstGlobalIterator to read jump table entries
Replace JTTS's own jump table parsing with the `ConstGlobalIterator` helper,
which is also used by instcombine's `foldCmpLoadFromIndexedGlobal`.
As a result JTTS now also handles GEPs without nusw/nuw flags, by masking the
index the same way instcombine does.
Note that the helper requires the indices to be in canonical index type, so
JTTS only works with canonical index types now. This is not a problem in
practice as JTTS only runs after instcombine.
sysutils/snmp_exporter: Remove the pidfile when the service stops
daemon(8) runs as snmp_exporter_user, which is nobody by default, so
it cannot remove its pidfile from /var/run when it exits. Remove the
pidfile in stop_postcmd, which runs as root.
This also fixes "service snmp_exporter restart", which could fail
while the old daemon(8) still held a lock on the pidfile.
PR: 294396
MFH: 2026Q4
Reviewed by: olivier
Approved by: olivier (ports)
Differential Revision: https://reviews.freebsd.org/D61873
Co-Authored-By: Claude Opus 5.5 <noreply at anthropic.com>
(cherry picked from commit 22f7c259c198c4ceb185a25b5f7c7312839b713b)