Commit Graph

7655 Commits

Author SHA1 Message Date
Ben Rimmington
7d3b2ef7d1 [stdlib] Update documentation of {U}Int128 types 2024-06-27 14:19:13 +01:00
Guillaume Lessard
8897ba3bf5 Merge pull request #74710 from glessard/rdar128709914-again
[stdlib] remove more deprecations added by SE-0426
2024-06-26 16:08:11 -07:00
Alejandro Alonso
3285f56dad Ignore argc 2024-06-26 10:54:57 -07:00
Guillaume Lessard
a707b6849c [stdlib] remove more deprecations added by SE-0426 2024-06-25 14:43:19 -07:00
Kuba (Brecka) Mracek
fb0a1b96ae Merge pull request #73870 from kubamracek/embedded-libraries-cmake
[embedded] Add a embedded-libraries CMake target to simplify the test dependencies
2024-06-24 08:39:50 -07:00
Kuba Mracek
6eeef12849 [embedded] Add a embedded-libraries CMake target to simplify the test dependencies 2024-06-23 13:08:01 -07:00
Kuba (Brecka) Mracek
7d8a62a9a0 Merge pull request #74642 from kubamracek/embedded-fix-warnings
[embedded] Fix 3 compilation warnings in embedded stdlib
2024-06-22 06:54:13 -07:00
Kuba Mracek
1d9cebeb22 [embedded] Fix 3 compilation warnings in embedded stdlib 2024-06-21 21:28:33 -07:00
Alejandro Alonso
dd8a21e69f Merge pull request #74523 from Azoy/int128-attributes
[stdlib] Apply @_transparent consistently for (U)Int128
2024-06-20 18:28:34 -07:00
Karoy Lorentey
470a04cca3 Merge pull request #73807 from lorentey/stdlib-noncopyable-additions
[stdlib] API additions for basic noncopyable primitives
2024-06-20 13:32:23 -07:00
Alejandro Alonso
87a8edb368 Microoptimize _low and _high and remove else branch
Update UInt128.swift
2024-06-18 16:08:41 -07:00
Alejandro Alonso
f8f7d0c6d3 Make _low and _high public 2024-06-18 15:03:30 -07:00
Alejandro Alonso
839c49bec3 Microoptimize _lowWord and fix else branch 2024-06-18 15:03:13 -07:00
Alejandro Alonso
68952e8281 It is remainder, not remainer 2024-06-18 13:46:57 -07:00
Alejandro Alonso
95ce270a77 Get rid of remaining uses of precondition 2024-06-18 12:45:16 -07:00
Alejandro Alonso
b059766481 Apply @_transparent consistently for (U)Int128 2024-06-18 10:47:48 -07:00
Alejandro Alonso
95195c60af Mark UInt128.Words as frozen 2024-06-17 17:40:30 -07:00
Karoy Lorentey
9d947e4de0 [stdlib] Add missing overload of extracting for UnboundedRange
I keep forgetting that `some RangeExpression<Element>` does not cover the `UnboundedRange` form.
2024-06-17 15:03:12 -07:00
Kuba (Brecka) Mracek
03b0f0cc57 Merge pull request #74442 from kubamracek/embedded-string-to-pointer
[embedded] Implement missing _convertConstStringToUTF8PointerArgument to support string to pointer conversion
2024-06-17 10:45:39 -07:00
Kuba Mracek
92a39fce2f [embedded] Implement missing _convertConstStringToUTF8PointerArgument to support string to pointer conversion 2024-06-14 15:32:25 -07:00
Karoy Lorentey
5e95c6e3c5 [stdlib] Define _StdlibVersion.v6_1_0 and set it as the current version 2024-06-13 18:00:45 -07:00
Karoy Lorentey
d4564e4328 [stdlib] Define availability for SwiftStdlib 6.0 2024-06-13 16:35:42 -07:00
eeckstein
6debc33128 Merge pull request #74332 from eeckstein/swift_dynamiccastclass
embedded: add swift_dynamicCastClass runtime function
2024-06-13 07:31:44 +02:00
Kavon Farvardin
ec4a125f3e NCGenerics: ext's might not infer invertible req's
If the extension adds conformance to an invertible protocol, it's
confusing for people to also infer conditional requirements on the
generic parameters for those invertible protocols. This came up in the
review of SE-427.
2024-06-12 14:44:22 -07:00
Erik Eckstein
13ecb51612 embedded: add swift_dynamicCastClass runtime function
To enable dynamic class casts

rdar://129672994
2024-06-12 18:23:38 +02:00
Kuba Mracek
5e1721dd4a [embedded] Make Mirror present but unavailable 2024-06-10 13:40:36 -07:00
Karoy Lorentey
ab51f1630c [stdlib] API additions for basic noncopyable primitives
- Add `exchange(_:with:)`
- Add `Optional.take()`
- Add `Unsafe[Mutable]BufferPointer.extracting(_:)`
- Finish generalizing `withExtendedLifetime`
- Radically simplify the implementation of `swap(_:_:)`
2024-06-07 14:09:53 -07:00
Alex Lorenz
c8b5344d3e Merge pull request #72014 from compnerd/android
utils: support building android SDKs on Windows
2024-06-07 12:37:00 -07:00
Alex Lorenz
30dbf3a4aa do not add ObjectIdentifier+DebugDescription.swift for android builds 2024-06-06 11:19:44 -07:00
Alejandro Alonso
676b8e7bae Update stdlib/public/core/DictionaryBuilder.swift
Co-authored-by: Karoy Lorentey <klorentey@apple.com>
2024-06-04 20:46:11 +00:00
Alejandro Alonso
551acb3d4b Guard for empty singleton in dictionary builder 2024-06-04 13:30:03 -07:00
Guillaume Lessard
dabd99d798 Revert "[stdlib] Mark some UnsafePointer APIs as transparent" 2024-06-03 09:40:37 -07:00
Alejandro Alonso
1ec03e133b Merge pull request #74017 from Azoy/pointer-transparent
[stdlib] Mark some UnsafePointer APIs as transparent
2024-05-31 12:59:05 -07:00
Rintaro Ishizaki
5824d88362 Merge pull request #74032 from rintaro/stdlib-plugin-path
[stdlib] Use -plugin-path for building the standard library
2024-05-31 09:42:05 -07:00
Karl
7a57bd8ae4 [stdlib] Refactor Unicode normalization (#73590)
* [stdlib] Refactor Unicode normalization

* Tweak inlining
2024-05-31 08:22:37 -06:00
Rintaro Ishizaki
299167420a [stdlib] Use -plugin-path for building the standard library
`-external-plugin-path` requires `swift-plugin-server` exectuable, but
there was no dependency. Instead of adding the dependency, use
`-plugin-path` that doesn't require the plugin-server.
2024-05-30 14:02:12 -07:00
Alejandro Alonso
d5f67eb479 Mark some UnsafePointer APIs as transparent 2024-05-30 10:32:14 -07:00
Holly Borla
135e3f2ee9 Merge pull request #73889 from hborla/deprecate-anyactor
[Concurrency] Deprecate `AnyActor`.
2024-05-30 09:36:35 -07:00
Guillaume Lessard
da65626beb Merge pull request #73947 from glessard/rdar128709914 2024-05-29 12:42:55 -07:00
Guillaume Lessard
4fc82f895a [stdlib] remove deprecations added by SE-0426 2024-05-28 11:05:31 -07:00
Guillaume Lessard
511e619268 Merge pull request #73900 from glessard/rdar128543858
[stdlib] add failure explanations to debug preconditions
2024-05-28 09:21:28 -07:00
Kuba (Brecka) Mracek
545c2434c0 Merge pull request #70446 from kubamracek/embedded-string
[embedded] Port Swift.String to embedded Swift
2024-05-26 12:59:01 -07:00
nate-chandler
c0af25c069 Merge pull request #73890 from nate-chandler/rdar128661878
[BitwiseCopyable] Drop req from SIMD/Storage.
2024-05-24 18:10:57 -07:00
Guillaume Lessard
71258c4a2a [stdlib] add failure explanations to debug preconditions
addresses rdar://128543858
2024-05-24 14:02:57 -07:00
Nate Chandler
746cf2ff5b [BitwiseCopyable] Drop req from SIMD/Storage.
There are conformers to SIMDStorage (like that in the added test case)
which involve an Array (a type that can't conform to BitwiseCopyable).
So lift the constraint on SIMDStorage.  This in turn requires lifting
the constraint on SIMD (otherwise, e.g. `SIMD8<Scalar>` would fail to
conform since it has as a member some SIMD8Storage which is only
constrained to conform to `SIMDStorage`; the `SIMD8Storage`
associatedtype also cannot be constrained to `BitwiseCopyable` because
that storage may again not conform as in the test example).

rdar://128661878
2024-05-24 12:32:10 -07:00
Holly Borla
2590b2d7ac [Concurrency] Obsolete a few deprecated typealiases to Sendable in
Swift 6.
2024-05-24 08:58:41 -07:00
Alex Martini
65a5216a7b Merge pull request #73238 from amartini51/copyable_126377559
Add reference for Copyable

Fixes: rdar://126377559
2024-05-22 15:55:47 -07:00
eeckstein
7c69bec9b4 Merge pull request #73782 from eeckstein/static-arrays-in-embedded
IRGen: support read-only statically initialized arrays in embedded swift
2024-05-22 19:34:42 +02:00
Alejandro Alonso
4221d9f76a Merge pull request #73734 from Azoy/bitwisecopyable-atomic-reps
[stdlib] Enforce that atomic representations are BitwiseCopyable
2024-05-22 08:19:06 -07:00
Erik Eckstein
162139364e IRGen: support read-only statically initialized arrays in embedded swift
Arrays buffers need to be initialized with a (minimal) metatype and with an immortal reference count.
2024-05-21 18:04:10 +02:00