[mlir][acc] Translate the acc.offload_entry attribute to an offloading entry
Add the acc.offload_entry unit attribute, which marks a global host symbol
(either a function or a global variable) that the offload runtime must be able
to associate with its device counterpart. The translation emits entries that
are registered with the OpenACC runtime libacctarget.
Assisted-by: Claude Sonnet 5.5
[mlir][acc] Translate #acc.offload_packager to LLVM IR
Add a translation library for the OpenACC dialect that implements the
offloading translation interface of #acc.offload_packager. Each object
of a gpu.binary is wrapped in an offloading binary of kind OpenACC,
carrying the target triple and architecture, and the images are placed
in the .llvm.offloading section of the host module for the offloading
linker wrapper to extract.
Assisted-by: Claude Sonnet 5.5
[mlir][acc] Add the #acc.offload_packager offloading handler (#242807)
Add an offloading handler attribute for gpu.module and gpu.binary that
is meant to embed the device images in the host object as LLVM
offloading binaries of kind OpenACC, for the offloading linker wrapper
to link and register with the OpenACC runtime.
Assisted-by: Claude Sonnet 5.5
[ARM64EC] Fix vararg pointer in entry/exit thunks for 16-byte return value (#237817)
When a function returns a 16-byte structure, in the x86-64 calling
convention it is returned in memory with a hidden pointer, but in the
ARM64EC calling convention it is returned in {X0,X1} so it does not have
a hidden pointer. In this case the x86-64 function has one more
argument, and up to at most three arguments can be passed in register --
X4 now points to the 4th argument, instead of the 5th as the old code
mentioned.
In the exit thunk, the reverse applies: The ARM64EC function does not
pass a hidden pointer, but the x86-64 function expects one, causing the
4th argument (if any) to spill on the stack.
This commit shifts arguments by one, pops one argument from the stack
into an integer register, and adds X4 by 8 so it will point to the 5th
argument as ARM64EC expects.
Assisted-by: DeepSeek V4.1 Flash
Firewall: NAT: Port Forward - do not count the template rule of an empty list (#11288)
With no port forward rules the model loads a virtual template rule, and
DNatSequenceField numbered its empty sequence on load, so the first rule
added got 200 rather than 100. Skip virtual nodes.
IDS: allow % in policy descriptions (#11270)
The policy file is read with ConfigParser interpolation, so a % in a
policy description (or a content value) aborted installRules.py, which
fails Apply and, silently, the scheduled rule update. Read it without
interpolation.
Signed-off-by: Gennaro Cimmino <gcimmino at rayonra.net>
(cherry picked from commit 2ee7a904e106ae2ada9c796c92635947bca1fdc4)
[Hexagon] Reserve V30 for v79 QFloat handling (#243763)
For v79, floating point vector operations involving extended qfloat, we
need to use v30 as a scratch register in the post RA Xtended QF handling
pass. We reserve it when we use xqf for v79 for non-legacy mode, ie.
strict-ieee, ieee or lossy mode when xqf instructions are present.
Fixes #237215
Co-authored-by: quic-santdas <quic_santdas at qti.qualcomm.com>
Services: Unbound DNS: Blocklist - tell a network starting with "::" is IPv6 (#11265)
The address family check on a blocklist's source networks used
strpos($x, ':') == false, which is also true at position 0, so a network
such as ::/64 counted as IPv4. Two IPv6 networks were refused as mixed
(::/64,2001:db8::/64) and a mixed list was accepted (::/24,10.0.0.0/24).
(cherry picked from commit 357b946abff0f6d9ba720aee288db7a3d3f55dda)
Services: Unbound DNS: Blocklist - tell a network starting with "::" is IPv6 (#11265)
The address family check on a blocklist's source networks used
strpos($x, ':') == false, which is also true at position 0, so a network
such as ::/64 counted as IPv4. Two IPv6 networks were refused as mixed
(::/64,2001:db8::/64) and a mixed list was accepted (::/24,10.0.0.0/24).
audio/muse-sequencer: Facilitate KF5 removal
After [1], the version of kde can be and now *should* be omitted for
ports using only kde version agnostic components such as ecm.
This port still depends on Qt 5, which is also EOL, but we need to
git rid of KF5 first.
[1] https://cgit.freebsd.org/ports/commit/?id=ee319c49617da1da49e5695aac0133743b2d93bc
With hat: kde@
PR: 299313
Support a bunch of newer cards with interface differences. Thanks
to Areca for providing the updated driver. Adaptation for NetBSD
and testing on multiple releases and cards by myself.
I have disable the bioctl interface for now as it doesn't work
reliably. I have documentation from Areca, so should be able to
improve the support some day. However, I did fix a latent buffer
overflow in the bioctl interface.
[Driver] Support -rtlib=none (#245001)
This is helpful in situations when linking the runtime library is
undesirable, for example when building the runtime library itself. It
also makes the --rtlib= option consistent with --unwindlib=.
[IPO] Declare sample profile inliner command line options in TableGen (#244670)
SampleProfile.h replaces the exported cl::opts with
SampleProfileInlineOptions, which
SampleProfileLoaderPass::getInlineOptions fills from the options given
over the caller's defaults. llvm-profgen's preinliner reads its
thresholds this way instead of writing the cl::opts, and the loader no
longer writes the global size limits for non-CS profiles.
capsicum-test: Disable `HAVE_SEND_RECV_MMSG` again
04c4b2084eb9 accidentally added some changes from another WIP commit into that
diff. Instead of wholesale reverting the change, just revert the part that's
currently broken (`HAVE_SEND_RECV_MMSG`). While some of the related tests pass,
one of the testcases (`capmode.cc:AllowedMmsgSendRecv`) doesn't currently pass.
Revert the change to make the CI run more green again.
MFC after: 1 week
Fixes: 04c4b2084eb9 ("capsicum-test: make the code WARNS=6 clean")
(cherry picked from commit 71eddb44d7dfa60e43f77c90b51bd091f0693f85)
contrib/kyua: update config.h for 0.15.1 -> 0.15.2
This was accidentally missed in the prior commit.
This commit addresses a largely cosmetic issue.
MFC after: 6 days
MFC with: c16da33701d0
Fixes: c16da33701d0 contrib/kyua: update to 0.15.2
(cherry picked from commit d9daf5ae796518af1793f919156fb6feba05959d)
tests/sys/capsicum: Fix -Wshadow issue with `fd_set`
`fd_set` is defined in `sys/select.h`, and prior to this change, was in fcntl.cc as well.
This change renames `fd_set` to `fd_set_` to avoid the name collision.
MFC after: 1 week
Reported by: gcc 14
Fixes: 04c4b2084eb9 ("capsicum-test: make the code WARNS=6 clean")
(cherry picked from commit a479301abb2c7b384f574fcc641e502f70654835)