Commit Graph

194570 Commits

Author SHA1 Message Date
Jonathan Grynspan
9bb6b990ec Task doesn't like out-of-order frees, so for the sake of the POC, just use malloc/free 2025-11-05 08:58:05 -05:00
Jonathan Grynspan
6b0be103f7 facepalm here 2025-11-03 20:18:01 -05:00
Jonathan Grynspan
cec0464ae5 Include SWIFT_CC annotation 2025-11-03 16:41:46 -05:00
Jonathan Grynspan
f92dc6ab4b I'm dying here 2025-11-03 15:24:32 -05:00
Jonathan Grynspan
1e9f823fac Add hooks to ConcurrencyHooks.def 2025-11-03 13:37:07 -05:00
Jonathan Grynspan
026bf574a4 Fix typos 2025-11-03 12:06:26 -05:00
Jonathan Grynspan
633094e06a Add getters at the Swift layer 2025-11-03 09:48:14 -05:00
Jonathan Grynspan
83336de55d Sigh 2025-11-02 13:14:10 -05:00
Jonathan Grynspan
1c365bcba8 Fix stray static 2025-11-02 10:12:23 -05:00
Jonathan Grynspan
c00e0e28f0 Fix switches 2025-11-02 10:11:50 -05:00
Jonathan Grynspan
f4c6deea7f Move code around 2025-11-02 10:09:39 -05:00
Jonathan Grynspan
50cb7b4f92 Oh so many typos 2025-11-01 10:13:01 -04:00
Jonathan Grynspan
2a90b8c302 Fix more typos 2025-10-31 18:03:25 -04:00
Jonathan Grynspan
bc619bc645 Remove constinit 2025-10-31 16:57:10 -04:00
Jonathan Grynspan
f665660a9c Typo 2025-10-31 15:14:22 -04:00
Jonathan Grynspan
690e7d21ba Use a status record 2025-10-31 15:11:56 -04:00
Jonathan Grynspan
33c2dacb1e [WIP] Track how much time a task spends scheduled. 2025-10-31 14:16:31 -04:00
Saleem Abdulrasool
e50f3db4c6 Merge pull request #85223 from compnerd/spawn
Platform: correct `posix_spawn` API nullability
2025-10-31 08:40:10 -07:00
Andrew Trick
382529c73b Merge pull request #85232 from atrick/rdar159793739-lifedep-cast
LifetimeDependenceDiagnostics: handle dynamic casting of Span<T>
2025-10-31 08:35:36 -07:00
Aidan Hall
a8cef4451a Merge pull request #84513 from aidan-hall/pack-opt
Optimize Specializations of Variadic Generics by Eliminating Parameter Packs
2025-10-31 11:24:04 +00:00
Pavel Yaskevich
94949f3027 Merge pull request #85214 from xedin/few-more-lvalue-rvalue-simplifications
[CSApply] NFC: Unify transform for expressions with a single sub-expr…
2025-10-31 16:38:46 +09:00
Andrew Trick
5943d40edf LifetimeDependenceDiagnostics: handle dynamic casting of Span<T>
Add a special case for checked_cast_addr_br instruction. If it conformed to
SourceDestAddrInstruction, then the diagnostics would already have handled it
naturally, but the instruction's conditional semantics are strange enough that
such a conformance might confuse other passes.

rdar://159793739 (Using `as?` with non-escapable types emits faulty lifetime
diagnostics)
2025-10-30 23:28:25 -07:00
Andrew Trick
e11f7f1f11 LifetimeDependenceDiagnostics: diagnostic error on unknown uses
The common def-use walkers should not return .abortWalk without making a
diagnostic callback.
2025-10-30 23:28:25 -07:00
Guillaume Lessard
82d66e3884 Merge pull request #85201 from glessard/rdar158735546-again 2025-10-30 19:20:24 -07:00
Eric Miotto
020e690598 Merge pull request #85206 from edymtt/edymtt/explicitly-set-cmake-osx-sysroot-in-macos-smoketest
Pass SDK paths explicitly when building Runtimes in macOS smoketest
2025-10-30 17:33:10 -07:00
Slava Pestov
3ab6dd34b5 Merge pull request #85219 from slavapestov/more-type-checker-docs
More updates to TypeChecker.md
2025-10-30 20:04:25 -04:00
Slava Pestov
30a94f9d7d Merge pull request #85218 from slavapestov/match-types-indent
Sema: Remove unnecessary level of indentation in matchTypes()
2025-10-30 20:01:33 -04:00
Mike Ash
cfd70d7b6e Merge pull request #85204 from mikeash/tasklocal-no-task-free-fix
[Concurrency] Fix MarkerItem::create to use malloc when there's no task.
2025-10-30 19:26:59 -04:00
Alexis Laferrière
048c9276a9 Merge pull request #85122 from xymus/official-c-attr
SE-495: Make `@c` an official feature
2025-10-30 16:06:25 -07:00
Mike Ash
6ba55b4923 Merge pull request #85192 from mikeash/client-retain-release-symbol-test-fixes
[Test] Fix ABI and symbol visibility tests for client retain/release.
2025-10-30 17:46:33 -04:00
Jamie
0d99dbd2b0 [Sema]: ban the use of 'nonisolated' on actor declarations (#85185)
Co-authored-by: Konrad `ktoso` Malawski <konrad.malawski@project13.pl>
2025-10-31 06:02:33 +09:00
Saleem Abdulrasool
04ab94d4cf Platform: correct posix_file_actions_init on Android
Adjust the API annotations to get this imported into Swift properly. The
outer pointer may be `nullptr`, but the inner pointer may not.
2025-10-30 13:49:25 -07:00
Saleem Abdulrasool
39fd9c1c6d Platform: correct posix_spawn API nullability
The `posix_spawn` API is not annotated appropriately for nullability.
Adjust the signature to allow proper usage with older NDKs.
2025-10-30 13:49:13 -07:00
Susana Monteiro
a6f4e415cb Merge pull request #84646 from susmonteiro/susmonteiro/implicit-copy-constructors
[cxx-interop] Implicitly defined copy constructors
2025-10-30 19:36:43 +00:00
Slava Pestov
e413739b98 docs: Document the fields of the score in TypeChecker.md 2025-10-30 14:46:05 -04:00
Slava Pestov
4127a4e86c docs: Document Unsafe*Pointer conversions in TypeChecker.md 2025-10-30 14:46:05 -04:00
Mike Ash
fd6edb86e0 Merge pull request #85208 from mikeash/remove-weak-def-placeholder
[Runtime] Temporarily remove swift_release_preservemost_weak_placeholder.
2025-10-30 14:23:00 -04:00
Slava Pestov
5ba8b1b774 Sema: Remove unnecessary level of indentation in matchTypes() 2025-10-30 13:39:21 -04:00
Kavon Farvardin
2149731ec6 Merge pull request #85217 from hnrklssn/disable-std-span-interface.swift
Disable std-span-interface-swift (NFC)
2025-10-30 10:08:19 -07:00
Henrik G. Olsson
7a4bde9186 Disable std-span-interface-swift (NFC)
This test fails in the Amazon Linux 2023 bootstrap build. Disable until
it can be reproduced.
2025-10-30 10:03:02 -07:00
Pavel Yaskevich
8e9048aeba [CSApply] NFC: Unify transform for expressions with a single sub-expression
Copy, Borrow, {Any, Optional}Try, VarargExpansion expressions
have to perform the same transformation - resolve the type and
use it to coerce their sub-expression. This change introduces a
single method to do just that instead of copying the same code
around.
2025-10-30 08:48:19 -07:00
Aidan Hall
8632e58825 Create Pack Specialisation pass 2025-10-30 14:28:16 +00:00
susmonteiro
1c5bbe0290 [cxx-interop] Implicitly defined copy constructors 2025-10-30 14:17:19 +00:00
Pavel Yaskevich
0eceb64f47 Merge pull request #85211 from xedin/simplify-solution-application-for-try-exprs
[CSApply] NFC: Simplify solution application to `try` expressions
2025-10-30 22:11:35 +09:00
Slava Pestov
4677512a74 Merge pull request #84664 from jamieQ/fix-iso-default-param-idx-bug
[SILGen]: fix a bug in isolated default argument handling
2025-10-30 03:40:49 -04:00
Pavel Yaskevich
66ad2a97b9 [CSApply] NFC: Simplify solution application to try expressions
Since `try!` now forces l-value -> r-value conversion during
CSGen, let's simplify solution application to `try` expressions
by coercing sub-expression to a type of a `try` itself which
would introduce all necessary loads.
2025-10-30 00:02:44 -07:00
Mike Ash
e1d20db8a2 [Runtime] Temporarily remove swift_release_preservemost_weak_placeholder.
This is breaking embedded due to its use of weak definitions for embedded versions of the runtime functions. The presence of a weak export in libswiftCore allows any strong symbol in libswiftCore to override a weak symbol elsewhere. Remove while we work out how to reconcile the two.

rdar://163578646
2025-10-29 22:32:43 -04:00
Slava Pestov
778281ace9 Merge pull request #84951 from jamieQ/fix-address-only-DI
[SILGen]: ban forward captures of let temporary allocations
2025-10-29 22:23:42 -04:00
Guillaume Lessard
4b96f38864 Adjust test to be more resilient regarding inlining. 2025-10-29 17:38:15 -07:00
Alexis Laferrière
94113f4a83 SE-496: Remove references to features CDecl and CImplementation 2025-10-29 17:31:20 -07:00