Kuba (Brecka) Mracek
1686800c26
Merge pull request #69180 from kubamracek/embedded-move-protocol-aliases
...
[embedded] Move _CustomStringConvertibleOrNone/_LosslessStringConvertibleOrNone to avoid detaching doccomments from their declarations
2023-10-17 21:45:19 -07:00
Karl
d66e06a971
Remove unnecessary import
2023-10-15 20:03:52 +02:00
Karl
e9f11d70a6
[NFC][In Both Senses] Use _NormData type instead of performing a lookup directly
2023-10-15 19:36:10 +02:00
Kuba Mracek
624df4d71b
[embedded] Make ExpressibleByStringInterpolation available in embedded Swift
2023-10-14 23:10:55 -07:00
Kuba Mracek
043a9fd15c
[embedded] Move embedded ifdefs around in ObjectIdentifier.swift to avoid detaching doccomments from their decls
2023-10-14 11:27:14 -07:00
Kuba Mracek
c8a5ac0142
[embedded] Use Builtin.RawPointer as the argument type on swift_release_n
2023-10-13 20:55:58 -07:00
Kuba Mracek
3646c32b45
[embedded] Move _CustomStringConvertibleOrNone/_LosslessStringConvertibleOrNone to avoid detaching doccomments from their declarations
2023-10-13 15:31:30 -07:00
Pavel Yaskevich
a0dfab9ab2
[SE-0331] Mark unsafe pointer conformances to Sendable as explicitly unavailable
...
This is a preferred way to make sure that Sendable inference doesn't
happen for these types because they are marked as @frozen.
2023-10-10 21:42:46 -07:00
Saleem Abdulrasool
d61b8855e9
stdlib: map wchar_t to UInt16 on Windows
...
This is an ABI breaking change for Windows. `WCHAR` on Windows is
mapped to `short` (`-fshort-wchar` makes it `unsigned short`). When C++
interop is enabled, `WCHAR` will be mapped to `wchar_t` which is then
mapped to `short` (or `unsigned short` if `-fshort-wchar` is specified).
Correct the mapping type to get the desired behaviour.
2023-10-09 20:02:48 -07:00
Kuba Mracek
809fa63b83
[embedded] Pass all default stdlib SWIFT_COMPILE_FLAGS to the embedded stdlib build too
2023-10-09 09:00:51 -07:00
Kuba Mracek
5d8c55eacb
[embedded] Initial Swift Concurrency for embedded Swift
2023-10-06 20:04:03 -07:00
Alex Martini
de18b08d18
Merge pull request #68993 from amartini51/assert_65958589
...
Replace "sanity check" in doc comments per Apple Style Guide.
https://help.apple.com/applestyleguide/#/apsge70df12b?sub=apd57d1e8d9c
Resolves rdar://65958589
2023-10-06 09:23:45 -07:00
Alex Martini
ef84aa9b39
Replace "sanity check" in doc comments.
2023-10-05 11:41:37 -07:00
nate-chandler
a9e03df58c
Revert "[Diagnostics] Require explicit releasenone."
2023-10-04 14:19:15 -07:00
Kuba Mracek
e9961323d8
[embedded] Avoid using Optional in the forward declared free() function in EmbeddedRuntime
2023-10-03 11:29:11 -07:00
Kuba (Brecka) Mracek
e3b3b47097
Merge pull request #68784 from kubamracek/embedded-roundingmode
...
[embedded] Fix a warning in stdlib build about never executed switch case
2023-10-03 09:04:20 -07:00
Kuba (Brecka) Mracek
75838507d8
Merge pull request #68929 from kubamracek/embedded-sdk3
...
[embedded] Resolve empty -sdk path warning in embedded stdlib build, take 3
2023-10-03 07:02:19 -07:00
Kuba (Brecka) Mracek
0d2f98a368
Merge pull request #68912 from kubamracek/embedded-closures-heap
...
[embedded] Support closures with captures and promoting locals to refcounted heap objects
2023-10-03 07:00:46 -07:00
Kuba (Brecka) Mracek
61be59948f
Merge pull request #68786 from kubamracek/embedded-no-swiftinterface
...
[embedded] Do not emit .swiftinterface files for fragile modules (embedded stdlib, Cxx.swiftmodule)
2023-10-02 19:34:16 -07:00
Kuba Mracek
d579c62fee
[embedded] Resolve empty -sdk path warning in embedded stdlib build, take 3
2023-10-02 17:55:02 -07:00
Kuba (Brecka) Mracek
8605da88b7
Merge pull request #68886 from kubamracek/embedded-atomic-refcount
...
[embedded] Use atomic load/store/rmw in embedded runtime refcounting implementation
2023-10-02 17:46:54 -07:00
Kuba Mracek
c6d0e4f76f
[embedded] Support closures with captures and promoting locals to refcounted heap objects
2023-10-02 09:45:45 -07:00
Kuba Mracek
268a1e3556
Revert "[embedded] Resolve empty -sdk path warning in embedded stdlib build, take 2"
...
This reverts commit a1a48b5c83 .
2023-10-02 09:35:21 -07:00
Kuba Mracek
a3f2984bf7
[embedded] Use atomics in swift_isUniquelyReferenced_nonNull_native too
2023-09-29 20:43:56 -07:00
Kuba Mracek
436f1993cb
[embedded] Use atomic load/store/rmw in embedded runtime refcounting implementation
2023-09-29 17:36:45 -07:00
Kuba (Brecka) Mracek
17ba4aefba
Merge pull request #68820 from kubamracek/embedded-static-object
...
[embedded] Add swift_initStaticObject to the embedded runtime
2023-09-29 13:16:48 -07:00
Kuba (Brecka) Mracek
967bc84d46
Merge pull request #68821 from kubamracek/embedded-retain-n
...
[embedded] Implement retain_n and release_n in the embedded runtime
2023-09-29 13:16:28 -07:00
Kuba (Brecka) Mracek
e8bbedbd08
Merge pull request #68829 from kubamracek/embedded-sdk2
...
[embedded] Resolve empty -sdk path warning in embedded stdlib build, take 2
2023-09-29 12:39:03 -07:00
Tim Kientzle
b35987fdcd
Merge pull request #68720 from tbkka/tbkka-SwiftValue-Equatable
...
Make ObjC isEqual: delegate to Equatable when Hashable isn't available
2023-09-29 12:28:56 -07:00
Kuba Mracek
b9613368f6
[embedded] Check for refcount underflow in embeddded runtime
2023-09-28 09:50:25 -07:00
Kuba Mracek
a1a48b5c83
[embedded] Resolve empty -sdk path warning in embedded stdlib build, take 2
2023-09-28 09:17:32 -07:00
Kuba Mracek
0962d826b3
Revert "[embedded] Resolve empty -sdk path warning in embedded stdlib build"
...
This reverts commit 1b1db053d5 .
2023-09-27 23:10:31 -07:00
Kuba Mracek
bcd7d3f9ec
[embedded] Implement retain_n and release_n in the embedded runtime
2023-09-27 22:55:43 -07:00
Kuba Mracek
85f3b240cf
[embedded] Add swift_initStaticObject to the embedded runtime
2023-09-27 22:21:03 -07:00
Kuba Mracek
7704674620
[embedded] Use -1 as the swift_once predicate indicator, to match Darwin expectations in the compiler
2023-09-27 19:53:38 -07:00
Kuba Mracek
1b1db053d5
[embedded] Resolve empty -sdk path warning in embedded stdlib build
2023-09-27 14:50:25 -07:00
Kuba (Brecka) Mracek
d04741937c
Merge pull request #68790 from kubamracek/embedded-toolchain
...
[embedded] Enable installing the embedded stdlib into the toolchain
2023-09-27 10:03:57 -07:00
Kuba Mracek
da7321af0c
[embedded] Enable installing the embedded stdlib into the toolchain
2023-09-26 20:15:07 -07:00
Kuba Mracek
3cacb3659d
[embedded] Do not emit .swiftinterface files for fragile modules (embedded stdlib, Cxx.swiftmodule)
2023-09-26 17:59:19 -07:00
Kuba Mracek
bb455ddf8b
[embedded] Fix a warning in stdlib build about never executed switch case
2023-09-26 17:16:05 -07:00
Kuba Mracek
b718c506da
[embedded] Fix arm64e pointer signing in embedded heap object destruction
2023-09-26 16:13:03 -07:00
Kuba Mracek
01298a0ddd
[embedded] Expand embedded runtime to handle stack promoted refcounted objects
2023-09-26 09:48:40 -07:00
Kuba Mracek
a835c6ba1f
[embedded] -O and -Osize embedded runtime
2023-09-25 21:28:37 -07:00
Kuba Mracek
cf1d19eb89
[embedded] Add immortalRefCount constant and add TODO comments about refcounting
2023-09-25 19:51:19 -07:00
Kuba Mracek
0758e7da85
[embedded] Use posix_memalign from shims instead of manual declaration
2023-09-25 19:51:19 -07:00
Kuba Mracek
86ad378928
[embedded] Add a simple Swift runtime, written in embedded Swift
2023-09-25 19:51:19 -07:00
Kuba (Brecka) Mracek
67b68d1d87
Merge pull request #68739 from kubamracek/embedded-arm64e
...
[embedded] Start building arm64e embedded stdlib
2023-09-25 19:51:02 -07:00
Kuba Mracek
e82929f65b
[embedded] Add a test showcasing a small runtime handling refcounting and class allocations written in embedded Swift
2023-09-25 13:27:34 -07:00
Kuba Mracek
d8f10f54d4
[embedded] Start building arm64e embedded stdlib
2023-09-25 10:18:49 -07:00
Kuba Mracek
0f1dff40b7
[embedded] Make Unmanaged available in embedded Swift, add a test for various types from the stdlib
2023-09-24 21:21:39 -07:00