[mlir][ODS] Include headers required by generated enum declarations and definitions
Generated enum declarations and definitions use C++ constructs that are
not declared by any header they include. They therefore relied on the
surrounding source file to include these headers first.
The enum declarations and definitions now include the headers declaring
these constructs, depending on the features of the enums.
The declarations still only forward declare `AsmParser` and `FieldParser`
to keep the generated headers cheap to include.
Similar to #236155 and #238735 but for the enum generator.
Co-authored-by: Claude <noreply at anthropic.com>
[DSE] Extend same ptr operand check to must-aliasing pointers in `storeIsNoop` (#238722)
We have observed a few DSE missed opportunities with a handful of CUDA
APIs that merely annotate a pointer with a cache hint and return it
(notably, `cuda::associate_access_property`). Thus, extend the existing
pointer equality check to must-aliasing pointers as well.
Co-authored-by: Alexander Krolik <akrolik at nvidia.com>
netlink: Pre-register the missing devctl event systems
devctl_notify() can be called with a mutex held. If the event system is
not listed in devctl_systems[], sysevent_get_group() calls
sysevent_new_group(), which calls strdup() with M_WAITOK, and we may end
up sleeping while holding a non-sleepable mutex.
Add the missing systems.
While here, remove the nonexistent KERNEL system.
PR: 299272
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D61161
graphics/qcomicbook: Update to 0.10.0, migrate to Qt6, take maintainership
- Point to https://github.com/valepert/QComicBook fork.
- Raise the compiler floor to C++17.
- Drop deprecation
Approved by: makc (mentor)
Approved by: arrowd (co-mentor)
(cherry picked from commit 418f27c2542824710095a6465d8b2532241af5ce)
graphics/qimgv: Remove Qt5 build option
Make the port build unconditionally with Qt6. The main.cpp patch drops
its Qt version conditional and sets the desktop filename for Qt6 only.
Bump PORTREVISION.
Approved by: arrowd (co-mentor)
(cherry picked from commit 2e6c1efc6d023024a84676b1d0ca72da582e5bcc)
graphics/qcomicbook: Update to 0.10.0, migrate to Qt6, take maintainership
- Point to https://github.com/valepert/QComicBook fork.
- Raise the compiler floor to C++17.
- Drop deprecation
Approved by: makc (mentor)
Approved by: arrowd (co-mentor)
graphics/qimgv: Remove Qt5 build option
Make the port build unconditionally with Qt6. The main.cpp patch drops
its Qt version conditional and sets the desktop filename for Qt6 only.
Bump PORTREVISION.
Approved by: arrowd (co-mentor)
[mlir][SPIRV] Handle vector stores when unifying aliased resources (#232185)
I hit this while compiling JAX training code to WebGPU through IREE.
The alias-unification pass can select a smaller vector resource, but its
store conversion currently only handles scalars. Handle vector stores by
splitting them into stores of the canonical vector type, preserving
memory-access flags and alignment.
---------
Signed-off-by: anutosh491 <andersonbhat491 at gmail.com>
[mlir][SPIR-V] Add SPIRVToLLVM conversion for CL.ldexp and GL.Ldexp (#237745)
Vector exponents are not covered since llvm.intr.ldexp accepts only a
scalar integer exponent
[llvm-objcopy][MachO] Handle ARM64_RELOC_ADDEND for CPU_TYPE_ARM64_32 (#238296)
`ARM64_RELOC_ADDEND` was only handled for arm64, not arm64_32. On
arm64_32 the addend was read as a section index, so `llvm-objcopy` could
crash or write a wrong addend. Handle it for arm64_32 too, and add an
arm64_32 case to `arm64-relocs.s`.
Fixes #238273
I wrote the code and verified everything myself. Claude Code helped me
identify the issue.
Assisted-by: Claude Code
Reapply [IRBuilder] Assert correct offset width for CreatePtrAdd (#239262)
Reapply #238806 without changes after fixing more CreatePtrAdd uses.
-----
Assert that the offset width matches the pointer index width. This is
supposed to become an IR well-formedness requirement when we switch to
ptradd, so we should start asserting it in the builder now.
Helpers like CreatePtrAddWith(Unsigned|Signed)Offset and
CreatePtrAddWith[SZ]ExtOrTrunc can be used to more conveniently create
ptradds with appropriately sized offsets.
Problematic uses of CreatePtrAdd were already adjusted in #238347.
[MemorySanitizer] Consistently use unsigned offsets (NFC) (#239193)
Helper functions for getting origin/shadow etc accepted a mix of int and
unsigned. I believe all of these offsets are non-negative, so use
unsigned everywhere to avoid confusion.
[RISCV][P-ext] Remove line breaks from argument list of function definition in tests. NFC (#238881)
These line breaks cause the update_llc_test_checks.py script to put the
checks in the middle of the argument list.
misc/py-onnxruntime: Fix loading models with external data
fcntl(F_KINFO) needs kf_structsize set to the size of the structure,
otherwise the kernel refuses the request. Without it the FreeBSD branch
never resolved the path of an opened file, so no model with weights in an
external data file could be loaded.
Pending upstream as microsoft/onnxruntime#33433.
PR: 300445
Approved by: portmgr (blanket)
Sponsored by: Netzkommune GmbH
[mlir][ODS] Include headers required by generated dialect declarations and definitions (#239215)
Generated dialect declarations and definitions use C++ constructs that
are not declared by any header they include. They therefore relied on
the surrounding source file to include these headers first.
The dialect declarations now include the header declaring the dialect
base class, and the headers declaring `StringAttr` and `Operation` if
the dialect has discardable attributes. The dialect definitions include
`MLIRContext.h` if they load dependent dialects.
Similar to #236155 and #238735 but for the dialect generator.
Co-authored-by: Claude <noreply at anthropic.com>
www/py-flask-oauthlib: mark broken and set to expire
the port is broken at runtime with current version of werkzeug in the tree.
Last release of it was 3 years ago and upstream author recommends to switch
to switch to Authlib (security/py-authlib).
PR: 299797
Reported by: Patrick Crandol <patrick at crandol.com>
[LoongArch] Fix misaligned frame-index offset for vldrepl.{h,w,d}
eliminateFrameIndex did not check that the final offset is a multiple of
the access size for [X]VLDREPL_{H,W,D}, so a byte-aligned stack object
could produce an unencodable immediate. Materialize the address in a
scratch register in that case, as is already done for [X]VSTELM_*.
Assisted-by: LLM
www/py-sockjs-tornado: update to 1.0.7
This release fixes runtime with tornado 6.5. Also add unreleased upstream
patch that's fix XSS issue. Port has been switched to pep517 with
porlint warnings fixed.
Pass maintainership to python@
PR: 299792
Reported by: Patrick Crandol <patrick at crandol.com>