Commit Graph

17 Commits

Author SHA1 Message Date
finagolfin
8e40f0b380 Merge pull request #81695 from finagolfin/lto
[test] Fix IRGen/lto_autolink on Darwin arm64 platforms too
2025-05-22 10:01:24 +05:30
finagolfin
35ee368bb9 [android][test] Fix or disable the remaining failing tests on the Android CI (#81398)
Also, fix and enable `IRGen/lto_autolink` for all non-Wasm targets and
`IRGen/static_initializer` for aarch64.


This should get [the community Android
CI](https://ci-external.swift.org/job/oss-swift-RA-linux-ubuntu-24.04-android-build/)
green
[again](https://ci-external.swift.org/job/oss-swift-RA-linux-ubuntu-24.04-android-arm64/).
2025-05-17 13:27:33 +05:30
Alexis Laferrière
26f6898961 Tests: mark armv7k as unsupported for lto_autolink.swift
rdar://122672371
2024-03-12 11:20:48 -07:00
Alexis Laferrière
1a3c8a6bd1 Tests: fix unsupported OS name in IRGen/lto_autolink.swift
rdar://122672371
2024-03-07 15:15:00 -08:00
Allan Shortlidge
fb1a480a39 Disable IRGen/lto_autolink.swift on iOS and arm64e.
Resolves rdar://122672371
2024-02-15 17:53:07 -08:00
Yuta Saito
63d3f2495f test: Exclude invalid target triple construction for IRGen/lto_autolink.swift
`%target-cpu-apple-macosx` in this test can result in invalid triples like
`wasm32-apple-macosx` and it confuse LLVM. Exclude such triple combination.
2024-01-27 02:43:09 +00:00
Allan Shortlidge
f6d419cdeb Tests: Use %target-cpu lit substitution in IRGen/lto_autolink.swift. 2024-01-24 22:20:29 -08:00
Yuta Saito
4ab3620b76 [test][IRGen] Split windows autolink checks into a separate file
Since it can construct invalid target triples like
wasm32-unknown-windows-msvc, which can hit internal compiler crash in
llvm. So split into a separate file to run the test only on archs
windows supports.
2023-10-09 18:32:57 +00:00
Saleem Abdulrasool
6d57af88b0 test: adjust IRGen tests for Windows ARM64
This repairs a few tests by making them more portable to other CPU
architectures.
2023-07-27 13:17:11 -07:00
Dario Rexin
44a2bb3a9d Disable lto-autolink test on linux-aarch64 (#37277) 2021-05-06 10:28:21 -07:00
Robert Widmann
d38b23346f Merge pull request #37184 from CodaFi/when-im-sixty-four-thirty-two
Mark an LTO Test Unsupported on arm64_32
2021-05-01 21:38:08 -07:00
Dario Rexin
fd73d3425e Revert "Use target-cpu for Linux in lto_autolink test (#36999)" (#37193)
This reverts commit 605a9237b4.
2021-05-01 10:11:26 -07:00
Robert Widmann
b28e5dfbc2 Mark an LTO Test Unsupported on arm64_32
The %target-cpu annotations here cause us to form the triple
arm64_32-unknown-linux-gnu which is not a valid triple. We don't need to
run these tests on arm64_32 platforms anyways.

rdar://77398372
2021-04-30 15:00:24 -07:00
Dario Rexin
605a9237b4 Use target-cpu for Linux in lto_autolink test (#36999) 2021-04-29 08:47:45 -07:00
Arnold Schwaighofer
3e7da84cea This test currently fails on macos arm64
rdar://76540446
2021-04-13 08:11:56 -07:00
Ikko Ashimine
61f748501e [LTO] fix typo in lto_autolink.swift
embeded -> embedded
2021-02-11 18:43:56 +09:00
Yuta Saito
20bc0af42b [LTO] Support LLVM LTO for IRGen and frontend
This commit adds -lto flag for frontend to enable LTO at LLVM level.
When -lto=llvm given, compiler emits LLVM bitcode file instead of object
file and adds index summary for LTO.
In addition for ELF format, emit llvm.dependent-libraries section to
embed auto linking information
2020-07-01 23:30:58 +00:00