LLVM/project 0a44be7 — libcxx/utils/ci/lnt run-benchmarks, libcxx/utils/ci/lnt/schemas libcxx.json

[libc++] Record more information about commits submitted to LNT (#233634)
DeltaFile
+17-0libcxx/utils/ci/lnt/schemas/libcxx.json
+8-1libcxx/utils/ci/lnt/run-benchmarks
+25-12 files

FreeBSD/src 97b9e96 — share/misc bsd-family-tree

bsd-family-tree: add OpenBSD 8.0
DeltaFile
+2-1share/misc/bsd-family-tree
+2-11 files

OpenBSD/ports WI8CPU1 — devel/gopls Makefile modules.inc, devel/gopls/pkg PLIST

   Update to gopls-0.24.0

   From Laurent Cheylus (maintainer)
VersionDeltaFile
1.20+84-78devel/gopls/distinfo
1.20+24-22devel/gopls/modules.inc
1.21+1-1devel/gopls/Makefile
1.7+1-0devel/gopls/pkg/PLIST
+110-1014 files

LLVM/project 266656b — offload/test/offloading/fortran derived_type_allocatable_skipped_from_no_restore.f90 derived_type_pointer_repointed_host_kept.f90

[OpenMP][OMPTarget][test] Fortran tests for host pointers after FROM transfers

From #229966:

  -------------------------------------------------+---------------------------
  Test                                             | Checks
  -------------------------------------------------+---------------------------
  derived_type_allocatable_skipped_from_no_restore | skipped FROM: host
                                                   | descriptor is not restored
  derived_type_pointer_repointed_host_kept         | re-pointed host pointer is
                                                   | kept after a target region
  -------------------------------------------------+---------------------------

Co-authored-by: agozillon <Andrew.Gozillon at amd.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply at anthropic.com>
DeltaFile
+69-0offload/test/offloading/fortran/derived_type_pointer_repointed_host_kept.f90
+58-0offload/test/offloading/fortran/derived_type_allocatable_skipped_from_no_restore.f90
+127-02 files

LLVM/project a3a4a46 — offload/include/OpenMP Mapping.h, offload/libomptarget interface.cpp omptarget.cpp

[OpenMP][OMPTarget] Restore host pointers to their value before the FROM transfer

A FROM transfer of storage that holds an attached pointer/descriptor
overwrites the host copy with the device address, so the runtime writes a
host value back afterwards. That value was the one saved at attach time, and
it was written back for every FROM entry, transferred or not:

  -------------------------------+---------------------+---------------------
  Case                           | Before              | After
  -------------------------------+---------------------+---------------------
  FROM skipped (ref count > 1)   | host ptr reverted   | untouched
  FROM of the struct             | host ptr reverted   | value before FROM
  FROM not covering the ptr      | host ptr reverted   | untouched
  target update from(s.x)        | host ptr reverted   | untouched
  -------------------------------+---------------------+---------------------

"Reverted" means set to its value at attach time. Since OpenMP 6.1 (TR15) the
host pointer may be re-pointed while its device pointer stays attached, so
that value can be stale.

    [17 lines not shown]
DeltaFile
+97-73offload/libomptarget/omptarget.cpp
+99-0offload/test/mapping/attach_host_ptr_repointed_kept.c
+33-0offload/test/mapping/attach_host_ptr_restore_deferred_from_mapper.c
+21-1offload/include/OpenMP/Mapping.h
+3-7offload/libomptarget/interface.cpp
+253-815 files

LLVM/project fa53d8c — offload/libomptarget omptarget.cpp, offload/test/mapping attach_ptr_update_to_restore.c

[OpenMP][OMPTarget] Keep only the update-to part; restore FROM behavior

Suggested on top of #229966.

Drop the targetDataEnd FROM-path change. Its per-call copy of the transfer
list misses a FROM that a mapper's nested targetDataEnd skips and the outer
call later performs, leaving a device address in the host pointer:

  #pragma omp declare mapper(m : S s) map(tofrom : s, s.p[0:1])
  ... enter data map(mapper(m), to: s)                    x2  ; ref 2
  #pragma omp target exit data map(delete: s) map(mapper(m), from: s)
  ; before: s.p == a      with the FROM change: s.p == <device address>

Restoring host pointers only when they are actually overwritten is left to a
follow-on change that saves their content right before the transfer.

Keep the update-to change, and add a C test for it, since the Fortran tests
need an AMD GPU. Move the two Fortran tests that check the FROM-path change
(skipped FROM keeps the host descriptor, re-pointed host pointer is kept) to

    [3 lines not shown]
DeltaFile
+25-116offload/libomptarget/omptarget.cpp
+0-69offload/test/offloading/fortran/derived_type_pointer_repointed_host_kept.f90
+0-58offload/test/offloading/fortran/derived_type_allocatable_skipped_from_no_restore.f90
+47-0offload/test/mapping/attach_ptr_update_to_restore.c
+72-2434 files

LLVM/project 4c579ad — offload/libomptarget omptarget.cpp, offload/test/offloading/fortran derived_type_allocatable_from_restore.f90 derived_type_allocatable_skipped_from_no_restore.f90

[OpenMP][OMPTarget] Avoid Shadow Pointer post-processing for FROM and UPDATE TO unless required

We seem to undergo the shadow pointer post-processng step even in scenarios where the data is
unlikely to have changed this can have significant performance overhead when it comes to
shadow pointers and in certain scenarios over-correction of the original host pointer.

This patch aims to address that by verifying that any transferred ranges (from or to device)
in the selected paths actually cover the shadow pointer before performing any action to touch
up the host shadow pointer or device pointer from shadow pointer data. There is still a number
of other areas that handle shadow pointers that may need this touch up, but I've opted to leave
them be for the time being.

I believe this overhead also can be triggered in C/C++, I just opted to keep it to Fortran
tests to avoid repetition! There however, may be alternative ways to approach this, but from
my limited understanding of the runtime this seems like a reasonable verifiation step.
DeltaFile
+139-25offload/libomptarget/omptarget.cpp
+69-0offload/test/offloading/fortran/derived_type_pointer_repointed_host_kept.f90
+60-0offload/test/offloading/fortran/derived_type_pointer_update_restore.f90
+59-0offload/test/offloading/fortran/derived_type_pointer_update_no_restore.f90
+58-0offload/test/offloading/fortran/derived_type_allocatable_skipped_from_no_restore.f90
+54-0offload/test/offloading/fortran/derived_type_allocatable_from_restore.f90
+439-256 files

LLVM/project 6ea8383 — llvm/include/llvm/CodeGen SlotIndexes.h, llvm/lib/CodeGen RegAllocGreedy.cpp LiveIntervals.cpp

[CodeGen] Drop dead SlotIndexes before allocation

SlotIndexes keeps the index list entry of an erased instruction and only
clears its instruction pointer. Live range sizes are measured in slot
indexes and greedy ranks ranges by size, so the leftovers inflate some
ranges more than others and reorder allocation, spilling heavily on
register-starved functions.

Add SlotIndexes::compactIndexes() to erase them. Erased entries are
unlinked, so holding an index to one is now a bug; linkedEntry() asserts
on it. The one analysis that did was LiveIntervals, so add
removeUnreferencedIntervals() to retire the intervals responsible.

Off by default behind -greedy-compact-slot-indexes, since it changes
allocation across much of the test suite.
DeltaFile
+288-0llvm/unittests/CodeGen/SlotIndexesTest.cpp
+43-0llvm/lib/CodeGen/SlotIndexes.cpp
+32-0llvm/test/CodeGen/AMDGPU/greedy-compact-slot-indexes.ll
+23-6llvm/include/llvm/CodeGen/SlotIndexes.h
+17-0llvm/lib/CodeGen/LiveIntervals.cpp
+12-1llvm/lib/CodeGen/RegAllocGreedy.cpp
+415-71 files not shown
+419-77 files

OpenBSD/ports QefQfJW — sysutils/moor Makefile distinfo

   Update to moor-2.19.5

   From Lydia Sobot (maintainer)
VersionDeltaFile
1.17+2-2sysutils/moor/distinfo
1.17+1-1sysutils/moor/Makefile
+3-32 files

OpenBSD/ports EJyx5Wa — devel/quirks Makefile, devel/quirks/files Quirks.pm

   Remove abandoned, broken setuid-root net/bing

   No HOMEPAGE, multiple newer versions on the internet, distfile mirrored
   and segfault on startup.

   OK kirill sthen
VersionDeltaFile
1.1849+3-1devel/quirks/files/Quirks.pm
1.6+1-1net/bing/patches/patch-Makefile
1.1835+1-1devel/quirks/Makefile
1.1482+0-1net/Makefile
1.9+0-0net/bing/pkg/PLIST
1.5+0-0net/bing/pkg/DESCR
+5-43 files not shown
+5-49 files

LLVM/project dc61a53 — clang/lib/Serialization ASTWriter.cpp, clang/test/Modules stdin-source-locations.cppm

[Modules] Don't treat piped input as file input (#233371)

Close https://github.com/llvm/llvm-project/issues/229431

The root cause of the problem is, clang treat the filename from stdin as
<stdin>. Then when there are multiple input files from stdin, the cache
status is polluted.

This patch fixes this as not treating piped input as file input.

This may show another concern as if we have different file contents with
the same name, it may be problematic.
DeltaFile
+34-0clang/test/Modules/stdin-source-locations.cppm
+5-3clang/lib/Serialization/ASTWriter.cpp
+39-32 files

OpenBSD/ports Qyo8N9M — devel/quirks Makefile, devel/quirks/files Quirks.pm

   restore net/fping
VersionDeltaFile
1.1848+1-3devel/quirks/files/Quirks.pm
1.1834+1-1devel/quirks/Makefile
1.1481+1-0net/Makefile
+3-43 files

OpenBSD/ports CBCsq2z — net/fping distinfo Makefile, net/fping/patches patch-src_fping_c

   readd accidentially removed net/fping

   i meant to remove net/bing
VersionDeltaFile
1.11+0-0net/fping/pkg/PLIST
1.4+0-0net/fping/pkg/DESCR
1.20+0-0net/fping/patches/patch-src_fping_c
1.23+0-0net/fping/distinfo
1.61+0-0net/fping/Makefile
+0-05 files

LLVM/project 470fbd4 — compiler-rt/lib/scudo/standalone tsd_shared.h, compiler-rt/lib/scudo/standalone/tests tsd_test.cpp

[scudo] Only lock active TSDs in TSDRegistrySharedT::disable() (#233617)

TSDRegistrySharedT::disable() and enable() run around fork() via
pthread_atfork and lock and unlock all TSDsArraySize TSDs. Only the
first NumberOfTSDs TSDs can ever be handed to a thread, so touching the
rest only dirties their pages.

On Android (TSDsArraySize 8, NumberOfTSDs 2 by default), unlocking the
six inactive TSDs in the child writes to their mutex words and causes
copy-on-write faults on five otherwise untouched .bss pages in every
forked process. On an idle device this is 20 KiB of private dirty
memory per Zygote-forked process, or about 2.3 MiB across the ~120 such
processes.

Bound both loops by NumberOfTSDs, matching drainCaches() and getStats().
setNumberOfTSDs() only grows the count and only while holding Mutex,
which disable() holds until enable(), so both loops see the same value.

Also call disable()/enable() in TSDRegistryTSDsCount before and after

    [3 lines not shown]
DeltaFile
+7-2compiler-rt/lib/scudo/standalone/tsd_shared.h
+7-1compiler-rt/lib/scudo/standalone/tests/tsd_test.cpp
+14-32 files

OpenBSD/src IbzYcQO — sys/kern kern_fork.c

   Take the child's ps_refcnt reference before PS_EMBRYO clean to make
   concurrent exit wait for us.

   ok claudio
VersionDeltaFile
1.281+9-1sys/kern/kern_fork.c
+9-11 files

OpenBSD/ports GGxipMi — net/fping distinfo Makefile, net/fping/patches patch-src_fping_c

   reimport accidentially removed net/fping

   i meant to remove net/bing
VersionDeltaFile
1.1.1.1+54-25net/fping/patches/patch-src_fping_c
1.1.1.2+26-31net/fping/Makefile
1.1.1.2+9-12net/fping/pkg/DESCR
1.1.1.2+5-5net/fping/pkg/PLIST
1.1.1.1+2-3net/fping/distinfo
+96-765 files

LLVM/project bcd85bc — mlir/lib/Conversion/AsyncToLLVM AsyncToLLVM.cpp, mlir/lib/Conversion/RaiseWasm RaiseWasmMLIR.cpp

[mlir][NFC] Simplify rewrite/conversion using-decls to use Base alias (#233586)

Follow up on #230717.
DeltaFile
+21-21mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorConversion.cpp
+20-20mlir/lib/Dialect/SparseTensor/Transforms/SparseTensorCodegen.cpp
+16-16mlir/lib/Conversion/RaiseWasm/RaiseWasmMLIR.cpp
+13-13mlir/lib/Conversion/AsyncToLLVM/AsyncToLLVM.cpp
+9-9mlir/lib/Dialect/MemRef/Transforms/EmulateNarrowType.cpp
+9-9mlir/lib/Conversion/XeGPUToXeVM/XeGPUToXeVM.cpp
+88-8823 files not shown
+151-15129 files

OpenBSD/ports GzjeA9r — devel/quirks Makefile, devel/quirks/files Quirks.pm

   Remove abandoned, broken setuid-root net/fping

   No HOMEPAGE, multiple newer versions on the internet, distfile mirrored
   and segfault on startup.

   OK kirill sthen
VersionDeltaFile
1.1847+3-1devel/quirks/files/Quirks.pm
1.1833+1-1devel/quirks/Makefile
1.1480+0-1net/Makefile
1.10+0-0net/fping/pkg/PLIST
1.3+0-0net/fping/pkg/DESCR
1.19+0-0net/fping/patches/patch-src_fping_c
+4-32 files not shown
+4-38 files

Illumos/gate 6ec2e51 — usr/src/lib/libofmt/common ofmt.c, usr/src/pkg/manifests system-test-utiltest.p5m

18521 libofmt can mishandle right justification
Reviewed by: Toomas Soome <tsoome at me.com>
Approved by: Gordon Ross <gordon.w.ross at gmail.com>
DeltaFile
+366-0usr/src/test/util-tests/tests/libofmt/libofmt_print.c
+64-0usr/src/test/util-tests/tests/libofmt/Makefile
+41-17usr/src/lib/libofmt/common/ofmt.c
+3-1usr/src/pkg/manifests/system-test-utiltest.p5m
+2-1usr/src/test/util-tests/tests/Makefile
+3-0usr/src/test/util-tests/runfiles/default.run
+479-196 files

LLVM/project 773e8ef — clang/lib/Basic/Targets AArch64.h AArch64.cpp, clang/lib/Driver Driver.cpp

[clang] Add aarch64-unknown-uefi target

Add the aarch64-unknown-uefi target to clang, building on the backend
support added in the preceding patches. Like x86_64-unknown-uefi it
follows the Microsoft ABI conventions, matching the Windows ARM64 target
which is the only way EFI applications for AArch64 can be built with
Clang/LLVM today:

* add UEFIAArch64TargetInfo: LLP64 types, Microsoft C++ ABI, char*
  based va_list and the Win64 calling convention kind,
* use the Windows AArch64 ABI info in CodeGen for UEFI,
* accept aarch64 for *-uefi triples in the driver.

The UEFI toolchain already handles the linker invocation (lld-link with
/subsystem:efi_application), so no further driver changes are needed.

Assisted-by: Claude
DeltaFile
+50-0clang/lib/Basic/Targets/AArch64.cpp
+43-0clang/test/CodeGen/AArch64/uefi-abi.c
+19-0clang/test/Driver/aarch64-uefi-constructed-args.c
+14-0clang/lib/Basic/Targets/AArch64.h
+0-6clang/test/Driver/unsupported-target-arch.c
+4-2clang/lib/Driver/Driver.cpp
+130-89 files not shown
+147-915 files

LLVM/project 3c996bf — llvm/docs ReleaseNotes.md, llvm/lib/Target/AArch64 AArch64CodeLayoutOpt.cpp AArch64MachineFunctionInfo.cpp

[AArch64] Apply the Windows SEH and CRT codegen constraints to UEFI

aarch64-unknown-uefi uses SEH unwind information and has no C runtime
library, so the remaining Windows specific codegen decisions that follow
from this apply to it too:

* do not align loops or basic blocks, since SEH unwind info generation
  needs the exact function layout before alignment padding is inserted,
* sign return addresses with the B key by default and reject A key
  signing, matching the pac_sign_lr unwind code used by the unwinder;
  the branch protection parser defaults to the B key for UEFI as well,
  so that -mbranch-protection=pac-ret keeps working,
* do not lower wide shifts to libcalls at -Oz, as those helpers are not
  available.

The corresponding Windows tests gain aarch64-unknown-uefi run lines and
the LLVM release notes announce the new target, which completes the
backend side of aarch64-unknown-uefi support.

Assisted-by: Claude
DeltaFile
+18-0llvm/unittests/TargetParser/TargetParserTest.cpp
+5-5llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
+2-2llvm/lib/TargetParser/ARMTargetParserCommon.cpp
+2-2llvm/lib/Target/AArch64/AArch64MachineFunctionInfo.cpp
+4-0llvm/docs/ReleaseNotes.md
+1-1llvm/lib/Target/AArch64/AArch64CodeLayoutOpt.cpp
+32-103 files not shown
+35-109 files

LLVM/project 36ca1d6 — clang/lib/Driver/ToolChains CommonArgs.cpp Clang.cpp, clang/test/Driver aarch64-uefi-constructed-args.c aarch64-security-options.c

[clang][Driver] Use the Windows ARM64 defaults for aarch64-unknown-uefi

Match the Windows ARM64 driver defaults for aarch64-unknown-uefi, which
follows the same ABI:

* char is signed, so do not pass -fno-signed-char,
* the frame chain must stay valid even when frame pointers are omitted,
  so -fomit-frame-pointer yields -mframe-pointer=reserved rather than
  none, as the backend reserves the frame pointer for UEFI as well,
* -msign-return-address selects the B key, the only one the backend
  accepts for Windows and UEFI.

Assisted-by: Claude
DeltaFile
+9-0clang/test/Driver/aarch64-uefi-constructed-args.c
+9-0clang/test/Driver/aarch64-security-options.c
+4-4clang/lib/Driver/ToolChains/CommonArgs.cpp
+4-4clang/lib/Driver/ToolChains/Clang.cpp
+26-84 files

LLVM/project 3b42208 — llvm/lib/CodeGen/GlobalISel IRTranslator.cpp, llvm/lib/Target/AArch64 AArch64ISelLowering.cpp AArch64Subtarget.cpp

[AArch64] Classify global references on UEFI like Windows COFF

Apply the Windows COFF rules for global references to
aarch64-unknown-uefi, which produces the same PE/COFF images:

* classify dllimport and non-dso-local globals with MO_DLLIMPORT /
  MO_COFFSTUB, so extern_weak symbols are referenced through a stub that
  can be resolved to zero by the linker,
* keep the existing SelectionDAG, FastISel and GlobalISel handling of
  calls and tail calls to extern_weak functions in sync with that,
* default to the PIC relocation model, so jump tables and other
  references stay position independent in relocatable PE images,
* lower ifuncs on UEFI as COFF has no support for them.

The extern weak and jump table tests gain aarch64-unknown-uefi run lines,
and a new test checks that the default pipelines lower ifuncs for both
Windows and UEFI.

Assisted-by: Claude
DeltaFile
+47-0llvm/test/CodeGen/AArch64/ifunc-lower-coff.ll
+3-3llvm/lib/Target/AArch64/AArch64TargetMachine.cpp
+3-3llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp
+2-2llvm/lib/Target/AArch64/AArch64Subtarget.cpp
+2-1llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
+3-0llvm/test/CodeGen/AArch64/windows-extern-weak.ll
+60-93 files not shown
+63-119 files

LLVM/project 75ecbf7 — llvm/lib/Target/AArch64 AArch64MachineFunctionInfo.cpp AArch64ISelLowering.cpp, llvm/test/CodeGen/AArch64 win-alloca-no-stack-probe.ll no-stack-arg-probe.ll

[AArch64] Probe large stack frames with __chkstk on UEFI

Like Windows, aarch64-unknown-uefi has no guard page handling of its
own, so frames larger than the probe size are probed with __chkstk
instead of inline probing, and "no-stack-arg-probe" disables it.

Tests: chkstk.ll, no-stack-arg-probe.ll and win-alloca-no-stack-probe.ll.

Assisted-by: Claude
DeltaFile
+1-1llvm/lib/Target/AArch64/AArch64MachineFunctionInfo.cpp
+1-1llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
+1-1llvm/lib/Target/AArch64/AArch64FrameLowering.cpp
+2-0llvm/test/CodeGen/AArch64/no-stack-arg-probe.ll
+2-0llvm/test/CodeGen/AArch64/chkstk.ll
+1-0llvm/test/CodeGen/AArch64/win-alloca-no-stack-probe.ll
+8-36 files

LLVM/project 243e81e — llvm/include/llvm/IR RuntimeLibcalls.td, llvm/lib/CodeGen/GlobalISel IRTranslator.cpp

[AArch64] Use __chkstk for dynamic stack allocation on UEFI

Register the Windows __chkstk stack probe helper for aarch64-unknown-uefi
and lower dynamic stack allocations through it, including the SME ZA
buffer allocation in LowerFormalArguments. GlobalISel falls back to
SelectionDAG for dynamic allocas on UEFI as it does on Windows.

Tests: win-alloca.ll, the vla in win64_vararg.ll (which now runs in full
on UEFI) and sme-lazy-save-windows.ll.

Assisted-by: Claude
DeltaFile
+3-2llvm/include/llvm/IR/RuntimeLibcalls.td
+2-2llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
+2-2llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp
+1-1llvm/lib/Target/AArch64/MachineSMEABIPass.cpp
+1-0llvm/test/CodeGen/AArch64/win-alloca.ll
+1-0llvm/test/CodeGen/AArch64/sme-lazy-save-windows.ll
+10-71 files not shown
+11-77 files

OpenBSD/ports WMGX50E — lang/gcc/16 Makefile

   lang/gcc/16: build stage1 compiler with -O2

   By default it builds stage1 compilers as -g only which leads to large binaries
   like ~350Mb on amd64, and replacing it by -O2 reduces size of them to ~50Mb.

   What reduces build time at fast amd64 with NVME from ~28 to ~15 minutes.
VersionDeltaFile
1.31+3-0lang/gcc/16/Makefile
+3-01 files

LLVM/project ea3cc1d — llvm/lib/TargetParser AArch64TargetParser.cpp, llvm/test/CodeGen/AArch64 arm64-platform-reg.ll

[AArch64] Reserve x18 as the platform register on UEFI

Both the Windows ARM64 ABI, which UEFI follows, and the firmware
ecosystem (EDK2 builds AArch64 with -ffixed-x18) treat x18 as a reserved
platform register. Reserve it by default for aarch64-unknown-uefi, as is
already done for Windows, Darwin, Android, Fuchsia and OHOS.

Assisted-by: Claude
DeltaFile
+1-1llvm/lib/TargetParser/AArch64TargetParser.cpp
+1-0llvm/test/CodeGen/AArch64/arm64-platform-reg.ll
+2-12 files

LLVM/project 89ac1c4 — llvm/lib/Target/AArch64 AArch64ISelLowering.cpp AArch64FrameLowering.cpp, llvm/test/CodeGen/AArch64 win64cc-backup-x18.ll

[AArch64] Treat the Win64 calling convention as native on UEFI

Functions using the Win64 calling convention on a non-Windows target
back up x18 and are excluded from tail call optimization, because x18
is the platform register there. On UEFI the Win64 convention is the
native one, so apply the Windows behaviour.

Tests: win64cc-backup-x18.ll gains Windows and UEFI run lines showing
that neither backs up x18 and both tail call.

Assisted-by: Claude
DeltaFile
+8-0llvm/test/CodeGen/AArch64/win64cc-backup-x18.ll
+1-1llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
+1-1llvm/lib/Target/AArch64/AArch64FrameLowering.cpp
+10-23 files

LLVM/project 0f9900a — llvm/lib/Target/AArch64 AArch64Subtarget.h AArch64RegisterInfo.cpp, llvm/lib/Target/AArch64/GISel AArch64LegalizerInfo.cpp

[AArch64] Use the Win64 calling convention and va_list on UEFI

UEFI follows the Windows ARM64 procedure call standard, as
x86_64-unknown-uefi already follows the Win64 one. Use it for C, Fast
and Swift calls on aarch64-unknown-uefi: the Win64 variadic convention
(all remaining argument registers are homed and floating point variadic
arguments travel in GPRs), the char* va_list for va_copy, and the
preserve_none variant that follows the Win64 rules.

Tests: win64_vararg_float.ll (SelectionDAG, FastISel and GlobalISel),
win64_vacopy.ll (SelectionDAG and GlobalISel va_copy),
preserve_nonecc_varargs_win64.ll and preserve_nonecc_call.ll.
isArgumentRegister follows for consistency; it only feeds
-fzero-call-used-regs, which is a no-op on Windows ARM64 today.

Assisted-by: Claude
DeltaFile
+23-0llvm/test/CodeGen/AArch64/win64_vacopy.ll
+7-6llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
+5-4llvm/lib/Target/AArch64/GISel/AArch64LegalizerInfo.cpp
+3-3llvm/lib/Target/AArch64/AArch64CallingConvention.td
+2-2llvm/lib/Target/AArch64/AArch64Subtarget.h
+2-2llvm/lib/Target/AArch64/AArch64RegisterInfo.cpp
+42-174 files not shown
+48-1810 files

LLVM/project e4b8580 — llvm/cmake/modules LLVMExternalProjectUtils.cmake

[CMake] Avoid reconfiguring runtimes on every incremental build (#233347)

Because llvm_ExternalProject_Add uses BUILD_ALWAYS, building builtins
triggers runtimes-configure to re-run CMake on every incremental build
(such as `ninja compiler-rt`) even when nothing changed.

Assisted-by: Gemini
DeltaFile
+1-0llvm/cmake/modules/LLVMExternalProjectUtils.cmake
+1-01 files