FastISel: Thread LibcallLoweringInfo through
Boilerplate change to prepare to take LibcallLoweringInfo from
an analysis. For now, it just sets it from the copy inside of
TargetLowering.
DAG: Take LibcallLoweringInfo from analysis
Previously this was taking a duplicate copy of this information
from TargetLowering. This moves the bulk of libcall checks to use
the new analysis. There are still a few straggler uses in misc.
passes in a few backends (mainly AArch64 has some libcall emission
in FinalizeISel and PrologEpilogInserter).
games/quake2-extras: unbreak the port, including SKINS option
Commit c00c521f6f2f had inadvertently broken some ports, this
included; change DIST_SUBDIR so it remains the same yet passes
!empty(DIST_SUBDIR) check when setting _CKSUMFILES.
Jim Waurzyniak's Quake 2 page previously hosted at University
of Michigan is now defunct, host one of the distfiles locally
while the other one remains to be found.
PR: 240031
Reported by: Alastair Hogge, pkg-fallout
llc: Construct RuntimeLibraryInfoWrapper with correct triple
The target option processing here is unnecessarily confusing
and buggy. Depending on the combination of -march, -mtriple, and
an explicit module in the triple, the triple won't be set in the
IR module. "TheTriple" should be the one consistent with the
constructed TargetMachine.
This avoids a behavior change when SelectionDAG is switched to
using LibcallLoweringInfo.
AArch64: Use LibcallLoweringInfo in MachineSMEABI pass
In context this could probably just hardcode the libcall impls,
though that would be inconvenient for the arm64ec case (which I don't
see evidence of being a tested / supported combination).
[Inliner][NFC] Simplify blockaddress checks (#176044)
The exception for callbr dates back to an earlier time when callbr used
blockaddress. It no longer does, so the callbr exception is no longer
valid.
This patch removes the exception and simplifies the check. It now
rejects inlining immediately if a block address is taken, rather than
iterating through users.
Co-authored-by: Aniket Singh <amiket.singh.3200.00 at gmail.com>
[NFC][mlir] Clarify bail condition in ExtractValueOp::fold (#176583)
This bail condition was added before we added the traversal of nested
structs, which handles the case where insert position is a prefix of
extract position. So we only need to check for the extract position
being a prefix of the insert position here. Make the check clearer and
update the comment so it is less confusing.
[SPIR-V] Enable variadic function lowering for the SPIR-V target (#175076)
Summary:
We support variadic functions in AMDGPU / NVPTX via an LLVM-IR pass.
This patch applies the same handling here to support them on this
target.
I am unsure what the ABI should look like here, I have mostly copied the
one we use for NVPTX where it's basically a struct layout with natural
alignment. This wastes some space, which is why AMDGPU does not pad
them.
Additionally, this required allowing the SPIRV_FUNC calling convention.
I'm assuming this is compatible with the C calling convention in IR, but
I will need someone to confirm that for me.
[flang-rt] Fix system_clock scaling on MacOS (#176753)
The less accurate clock was being adjusted for twice: once in
`GetSystemClockCountRate` and again in `ConvertTimevalToCount`.
Also adding missing `static` specifiers I noticed whilst reading the
file. I don't know of a way of meaningfully testing this in the
repository, but the code in the ticket now produces the correct result.
Fixes #176505
Remove obsolete BUGS section from zgrep(1) man page, add test
I forgot to check/update the man page with D54217. While here add
a test for multiple -e flags.
Reviewed by: markj
Approved by: markj
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D54632
(cherry picked from commit da5d94d29a5ec29817476c39ae2b2ad1666c3f06)