Commit Graph

22 Commits

Author SHA1 Message Date
Kuba Mracek
b057417e52 [embedded] Make embedded swift_once thread-safe 2023-10-29 20:33:43 -07:00
Kuba Mracek
6900efe42c [embedded] Fix an LLVMARCOpts crash by avoiding direct calls to swift_retain/swift_release 2023-10-18 14:44:18 -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
e9961323d8 [embedded] Avoid using Optional in the forward declared free() function in EmbeddedRuntime 2023-10-03 11:29:11 -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 Mracek
d579c62fee [embedded] Resolve empty -sdk path warning in embedded stdlib build, take 3 2023-10-02 17:55:02 -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
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 Mracek
b9613368f6 [embedded] Check for refcount underflow in embeddded runtime 2023-09-28 09:50:25 -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
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