Commit Graph

21434 Commits

Author SHA1 Message Date
Yuta Saito
1e5f69b3ee Merge pull request #69101 from kateinoigakukun/yt/wasm-stdlib-product-pr
[wasm][build] Build stdlib and test IRGen for WebAssembly
2023-10-24 22:23:54 -07:00
Konrad `ktoso` Malawski
370fa50132 Merge pull request #69093 from ktoso/wip-distributed-effective-label 2023-10-25 10:40:17 +09:00
Arnold Schwaighofer
235c27b749 Don't keep generic versions of PtrAuth functions alive
We don't support generating code for ptrauth builtins with generic
inputs (or non-constant inputs). We rely on specialization/inlining for
such code to work.

After a recent commit (#68843 ) code in IRGen keeps internal unreferenced
functions alive for debugging purposes.

This is a problem for the generic functions in PtrAuth.swift using
ptrauth builtins.

Opt out of this new behavior by sprinkling some pixie dust.

Fixes debug swift standard library builds targeting arm64e.

rdar://117411740
2023-10-24 11:52:47 -07:00
Augusto Noronha
708f059652 Merge pull request #69341 from augusto2112/mangle-name-typeref
Add a method that produces a string from a TypeRef
2023-10-24 09:48:38 -07:00
Tim Kientzle
3bdbbb5048 Merge pull request #68952 from tbkka/tbkka-rdar111422725-more-SwiftValue-casting
[Casting] Make more casts look inside `__SwiftValue`
2023-10-24 07:15:57 -07:00
Yuta Saito
35120a110f [wasm] Exclude builtin headers from WASILibc system module
stable/20230725 now rejects including builtin headers in modulemap by
default to avoid module cycles on non-Apple platforms. Builtin headers
are now part of their own `_Builtin_XXX` modules.

See:
- https://github.com/apple/llvm-project/pull/7618
- https://reviews.llvm.org/D159483
- https://reviews.llvm.org/D159064
2023-10-24 00:07:32 +00:00
Augusto Noronha
e2fa23a49d Add a method that produces a string from a TypeRef 2023-10-23 16:10:21 -07:00
Mike Ash
fc6cfbbf32 [Runtime] Have MetadataCacheKey::operator== try memcmp before deeper comparison.
Experiment shows that the vast majority (~99.99%) of keys with equal hashes have equal bytes. Fast-path that case by doing a memcmp before doing the deeper comparison.

rdar://110478978
2023-10-23 13:04:28 -04:00
Mishal Shah
aa6a588f45 Merge pull request #69163 from apple/rebranch
Merge `rebranch` into `main` to support `stable/20230725` llvm-project branch
2023-10-23 09:26:37 -07:00
Harlan Haskins
4ac34a40ea @retroactive conformance syntax and checking (#36068) 2023-10-20 14:27:03 -07:00
Alex Martini
f2c5fa2716 Merge pull request #69297 from apple/optimize/kyle/pointer_doc_fix
Fix copy/paste error in UnsafeMutablePointer documentation
2023-10-20 08:41:48 -07:00
Kyle
f96ae2f2db [Documentation] Fix UnsafeMutablePointer's documentation 2023-10-20 10:54:44 +08:00
Ben Barham
360c5d8465 Merge remote-tracking branch 'origin/main' into 20231019-merge-main
Conflicts:
  - `lib/AST/TypeCheckRequests.cpp` renamed `isMoveOnly` which requires
    a static_cast on rebranch because `Optional` is now a `std::optional`.
2023-10-19 16:16:23 -07:00
Kuba Mracek
83c9181d87 [embedded] Avoid building the embedded stdlib when BOOTSTRAPPING=OFF 2023-10-19 13:36:19 -07:00
Kuba (Brecka) Mracek
ed105d02f4 Merge pull request #69256 from kubamracek/embedded-arc-crash
[embedded] Fix an LLVMARCOpts crash by avoiding direct calls to swift_retain/swift_release
2023-10-19 09:14:30 -07:00
Kuba Mracek
db10e78eb2 [embedded] Start diagnosing metatype/value_metatype instructions in embedded Swift 2023-10-18 16:51:10 -07:00
Philippe Hausler
e9b01a35d8 [Embedded] Include OptionSet as part of the embedded build (#69197)
* [Embedded] Include OptionSet as part of the embedded build

* [Embedded] Include SetAlgebra as part of the embedded build
2023-10-18 15:49:08 -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
Ian Anderson
e364b23aa7 Merge pull request #69221 from ian-twilightcoder/overlay-dependents
[CMake] [Darwin] Don't add the Darwin overlay as a dependency if the overlays aren't being built
2023-10-18 12:20:40 -07:00
Eric Miotto
03c490cc11 [CMake] add option to generate API descriptors for the standard library (#69228)
This would be needed to stop using `swift-api-extract` in some
internal configurations.

Given the limited scope, only add this as a CMake flag.

Addresses rdar://117019309
2023-10-18 07:23:27 -07:00
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
Kuba (Brecka) Mracek
ef18fb0d1f Merge pull request #69217 from kubamracek/embedded-stdlib-build-option
[embedded] Don't gate embedded stdlib build behind SWIFT_BUILD_STDLIB
2023-10-17 19:15:22 -07:00
Ian Anderson
4dbc58723a [CMake] [Darwin] Don't add the Darwin overlay as a dependency if the overlays aren't being built
Allow for the overlays to not be built in Darwin by respecting SWIFT_BUILD_SDK_OVERLAY.
2023-10-17 11:03:57 -07:00
Kuba Mracek
6da4a05d72 [embedded] Don't gate embedded stdlib build behind SWIFT_BUILD_STDLIB 2023-10-16 15:30:13 -07:00
Mishal Shah
3594f8ecaf Merge remote-tracking branch 'origin/main' into rebranch
Conflicts:
	test/IRGen/opaque-pointer-llvm.swift
2023-10-15 23:49:40 -07:00
Kuba (Brecka) Mracek
7e9013dd52 Merge pull request #69090 from kubamracek/embedded-actors-and-async-let
[embedded] Add support for actors and async let into the embedded Concurrency runtime
2023-10-15 13:37:35 -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 (Brecka) Mracek
bfb95f3fde Merge pull request #69185 from kubamracek/embedded-retain-n-rawpointer
[embedded] Use Builtin.RawPointer as the argument type on swift_release_n
2023-10-14 11:31:34 -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
Dario Rexin
3979d61caf Merge pull request #69173 from drexin/wip-renames
[Runtime] Cleanup function names in BytecodeLayouts.cpp
2023-10-13 19:01:16 -07:00
Kuba (Brecka) Mracek
e719e239f1 Merge pull request #69172 from kubamracek/embedded-concurrency-fragile
[embedded] Mark embedded Concurrency as IS_FRAGILE (no library evolution)
2023-10-13 18:32:26 -07:00
Kuba Mracek
3646c32b45 [embedded] Move _CustomStringConvertibleOrNone/_LosslessStringConvertibleOrNone to avoid detaching doccomments from their declarations 2023-10-13 15:31:30 -07:00
Kuba (Brecka) Mracek
d8bfa5a9fa Merge pull request #69165 from kubamracek/embedded-concurrency-bootstrapping
[embedded] Don't build embedded Concurrency without SwiftCompilerSources
2023-10-13 14:04:50 -07:00
Dario Rexin
0c36e44f2e [Runtime] Cleanup function names in BytecodeLayouts.cpp 2023-10-13 10:22:02 -07:00
Kuba Mracek
04344c9a7e [embedded] Mark embedded Concurrency as IS_FRAGILE (no library evolution) 2023-10-13 10:15:24 -07:00
Kuba Mracek
f0f4aaf120 [embedded] Don't build embedded Concurrency without SwiftCompilerSources 2023-10-13 09:02:31 -07:00
swift-ci
36242019b3 Merge remote-tracking branch 'origin/main' into rebranch 2023-10-12 03:55:00 -07:00
Alastair Houghton
fd6a4947e6 Merge pull request #69092 from al45tair/eng/PR-116485713
[Build] Fix dependency problems when bootstrapping.
2023-10-12 11:50:15 +01:00
swift-ci
86fe683dbf Merge remote-tracking branch 'origin/main' into rebranch 2023-10-11 12:53:54 -07:00
Pavel Yaskevich
b853189388 Merge pull request #69114 from xedin/rdar-101980108
[SE-0331][stdlib] Mark unsafe pointer conformances to Sendable as explicitly unavailable
2023-10-11 11:24:08 -07:00
swift-ci
0e69757c8f Merge remote-tracking branch 'origin/main' into rebranch 2023-10-11 08:54:27 -07:00
Alejandro Alonso
2a92eac2e4 Merge pull request #69115 from Azoy/revert-thing
Revert "Merge pull request #68844 from Azoy/gather-no-parameters"
2023-10-11 08:53:55 -07:00
swift-ci
ebd4bb6f0c Merge remote-tracking branch 'origin/main' into rebranch 2023-10-11 07:37:15 -07:00
Egor Zhdan
10537ec11f Merge pull request #68240 from CrazyFanFan/feature/crazy_fan/std_u32string
[cxx-interop] Provide similar support for std::u32string as std::string and std::u16string.
2023-10-11 15:26:50 +01: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
Alejandro Alonso
de8233a5d6 Revert "Merge pull request #68844 from Azoy/gather-no-parameters"
This reverts commit ccaf427fc3, reversing
changes made to bf45c55530.
2023-10-10 19:36:20 -07:00
swift-ci
d0e5c4fa85 Merge remote-tracking branch 'origin/main' into rebranch 2023-10-10 11:17:38 -07:00