Commit Graph

19 Commits

Author SHA1 Message Date
Allan Shortlidge
cb578172ea Tests: Remove -disable-availability-checking in more tests that use concurrency.
Use the `%target-swift-5.1-abi-triple` substitution to compile the tests for
deployment to the minimum OS versions required for use of _Concurrency APIs,
instead of disabling availability checking.
2024-10-19 12:35:20 -07:00
Allan Shortlidge
082f0ac4b5 Tests: Use a more natural spelling for ABI triple lit substitutions.
`%target-swift-5.8-abi-triple` instead of `%target-swift-abi-5.8-triple`, for
example.
2024-10-18 10:11:36 -07:00
Allan Shortlidge
a9120c3dc2 Merge pull request #76135 from tshortli/backdeployed-ios-apps-on-macos
SILOptimizer: Allow inlining of transparent functions in `@backDeployed` thunks
2024-08-29 15:06:48 -07:00
Allan Shortlidge
7ad12d73dd IRGen: Adjust tests for upstreaming of _stdlib_isOSVersionAtLeast_AEIC(). 2024-08-29 08:43:07 -07:00
Ben Langmuir
7d11d43d6d [test] Add explicit targets to tests depending on the default
Add specific deployment target versions to some tests that need to test
10.x-specific behaviours and are currently depending on the default
deployment target.

Certain tests were only checking either the stable or unstable ABI
depending on the platform the test was running. In those cases I doubled
up the checks so that we would test both cases on platforms that
supported it. This might use a bit of extra time on targets that only
support the stable ABI, but it seemed worth it for the additional
coverage in CI.
2024-08-29 07:55:14 -07:00
Arnold Schwaighofer
89b6f91a9f IRGen: Use static alloca for builtin stackAlloc when possible
rdar://129599643
2024-06-11 12:14:09 -07:00
Artem Chikin
1f14158a1d Introduce VisionOS Platform
This change introduces a new compilation target platform to the Swift compiler - visionOS.

- Changes to the compiler build infrastrucuture to support building compiler-adjacent artifacts and test suites for the new target.
- Addition of the new platform kind definition.
- Support for the new platform in language constructs such as compile-time availability annotations or runtime OS version queries.
- Utilities to read out Darwin platform SDK info containing platform mapping data.
- Utilities to support re-mapping availability annotations from iOS to visionOS (e.g. 'updateIntroducedPlatformForFallback', 'updateDeprecatedPlatformForFallback', 'updateObsoletedPlatformForFallback').
- Additional tests exercising platform-specific availability handling and availability re-mapping fallback code-path.
- Changes to existing test suite to accomodate the new platform.
2024-04-10 09:38:02 -07:00
Meghana Gupta
8bf75f06a1 Add requires to irgen codegen test 2023-08-18 14:32:14 -07:00
Meghana Gupta
57105f47e9 Remove unstable irgen diagnostic swift test, add a sil test instead 2023-08-17 10:33:26 -07:00
Arnold Schwaighofer
3b5ebaa46c Fix some tests in IRGen folder 2023-06-21 10:10:32 -07:00
Arnold Schwaighofer
c1a93e0bde Move tests over to use the %use_no_opaque_pointers option 2023-06-14 10:49:48 -07:00
Erik Eckstein
b2512ab5cb stdlib: add an underscored _withUnprotectedUnsafeTemporaryAllocation
This function is similar to `withUnsafeTemporaryAllocation`, except that it doesn't trigger stack protection for the stack allocated memory.
2023-02-15 08:20:48 +01:00
Xiaodi Wu
4655604f10 [test] Re-enable very large allocation codegen test (#63188) 2023-01-26 05:45:44 -05:00
Xiaodi Wu
0cd4db59b3 [test] Re-enable temporary allocation IRGen testing, separating large allocation testing and making it less brittle (#63095) 2023-01-23 13:14:22 -05:00
Alex Hoppen
21bde7cabe Disable IRGen/temporary_allocation/codegen.swift
rdar://104435186 tracks the test failure. Let's disable it for now to get CI passing.
2023-01-19 19:56:02 +01:00
Xiaodi Wu
c214c8d181 Update codegen.swift 2023-01-18 16:43:49 -05:00
Xiaodi Wu
e19bb87257 [IRGen] Amend large temporary allocation codegen test to be hopefully less brittle. 2023-01-16 22:17:01 -05:00
Jonathan Grynspan
3ab0ae2bfc On targets smaller than 64 bits, emit a compile-time error if withUnsafeTemporaryAllocation(of:capacity:) byte count overflows 2021-10-29 11:18:24 -04:00
Jonathan Grynspan
f1bf7badba [SE-0322] Temporary uninitialized buffers
Adds two new IRGen-level builtins (one for allocating, the other for deallocating), a stdlib shim function for enhanced stack-promotion heuristics, and the proposed public stdlib functions.
2021-10-25 11:20:10 -04:00