Commit Graph

17 Commits

Author SHA1 Message Date
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
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
Arnold Schwaighofer
05c7e18368 Fix IRGen test failures on rebranch
rdar://93054141
2022-05-12 13:06:51 -07:00
Ben Cohen
a66344b7dd Fix a couple of IRGen tests on master-next (#26358)
* objc symbols changed from private to internal

* Update LLVM label syntax
2019-07-26 11:57:57 -07:00
Greg Parker
9b10ddf8a0 [test] Update expected output of test objc_globals.swift after clang r344373. 2018-10-12 17:07:19 -07:00
Greg Parker
7e2d35455a Temporarily disable test IRGen/objc_globals.swift pending a test fix. 2018-10-12 15:04:40 -07:00
David Ungar
28b206008f FrontendInputs data structure redo.
- Outlaw duplicate input files, fix driver, fix tests, and add test.
- Reflect that no buffer is present without a (possibly pseudo) named file.
- Reflect fact that every input has a (possible pseudo) name.
- Break up CompilerInstance::setup.

Don't bail on dups.
2017-12-05 17:28:03 -08:00
Jordan Rose
6e0515f644 [test] Update tests for upstream changes in LLVM/Clang. 2017-07-25 14:46:17 -07:00
Bob Wilson
06b556a990 Remove temporary XFAIL for rdar://problem/29538073 2016-12-06 17:38:39 -08:00
Bob Wilson
c3e01169e8 Temporarily disable this test until rdar://29538073 is fixed. 2016-12-06 12:34:55 -08:00
Dmitri Gribenko
d175b3b66d Migrate FileCheck to %FileCheck in tests 2016-08-10 23:52:02 -07:00
John McCall
79c83c7303 Teach IRGen to tell Clang to emit lazy definitions on demand.
Previously, we had hacks in place to eagerly emit everything in
the global ExternalDefinitions list.  These can now be removed,
at least at the IRGen layer.
2016-05-18 22:48:45 -07:00
John McCall
b9ed887314 Something about Clang changed the order of emission of these functions. 2016-05-18 08:47:09 -07:00
Manav Gabhawala
7928140f79 [SE-0046] Implements consistent function parameter labels by discarding extraneous parameter names and adding _ where necessary 2016-04-06 20:21:58 -04:00
Slava Pestov
afa41c056c IRGen: Fix OBJC_CLASS_$_ clash if Clang emits first
IRGen emits lazily-emitted definitions after emitting Clang declarations.
So an internal function that references an Objective-C class global and
is itself referenced from after a public function can observe
a OBJC_CLASS_$_ global defined by Clang.

Use a similar strategy as the Clang patch, just bitcast the global if it
exists already.

Fixes <rdar://problem/23200656>.

Swift SVN r32845
2015-10-23 06:33:36 +00:00
Slava Pestov
35d4d98242 Add test for Objective-C class reference from static inline function
Corresponding radar is <rdar://problem/22001279>, but the actual fix
is a Clang patch.

Swift SVN r32790
2015-10-21 00:08:21 +00:00