Guillaume Lessard
77431f5217
[stdlib] add MutableSpan.mutableBytes
2025-04-10 10:31:05 -07:00
Meghana Gupta
fc90619254
Add @_transparent to some integer operations in the stdlib
...
@_transparent will ensure there are inlined in MandatoryInlining which runs before OSLogOptimization.
OSLogOptimization does not look through their calls because they are not marked with
@_semantics("constant_evaluable") which requires them to also be annotated as @_optimize(none)
rdar://148256435
2025-04-10 07:24:02 -07:00
Slava Pestov
822083872b
Merge pull request #80678 from slavapestov/visionos-stdlib
...
CompatibilitySpan: Fix stdlib build on visionOS
2025-04-10 07:55:49 -04:00
Guillaume Lessard
5c54e3aea5
Merge pull request #80257 from glessard/rdar137710901-addressable-span-properties
...
[SE-0456, -0467] enable span properties for inline-storage types
2025-04-09 19:51:46 -07:00
Kuba Mracek
55f12fe13a
[embedded] Add back LosslessStringConvertible to Bool and integer types
2025-04-09 10:08:58 -07:00
Guillaume Lessard
79fb06faf3
[stdlib] update lifetime annotation syntax
2025-04-09 09:56:06 -07:00
Guillaume Lessard
f931d296a2
[stdlib] add InlineArray.mutableSpan
2025-04-09 09:56:06 -07:00
Guillaume Lessard
b90a6fcb41
[stdlib] add CollectionOfOne.mutableSpan
2025-04-09 09:56:06 -07:00
Slava Pestov
17868a7b50
CompatibilitySpan: Fix stdlib build on visionOS
...
Swift CI tests visionOS, but PR testing does not. Oops.
2025-04-09 12:37:45 -04:00
Slava Pestov
8c11d78672
Merge pull request #80510 from slavapestov/mutable-span-compat
...
CompatibilitySpan: Add MutableRawSpan.swift, MutableSpan.swift
2025-04-08 15:03:59 -04:00
Slava Pestov
43da773685
stdlib: Update {Mutable,}{Raw,}Span availability for backward deployment
2025-04-07 21:32:48 -04:00
Slava Pestov
4c8c3aab4f
CompatibilitySpan: Add MutableRawSpan.swift, MutableSpan.swift
2025-04-07 21:32:44 -04:00
Meghana Gupta
90324721ad
[NFC] Update comment
2025-04-07 16:49:37 -07:00
Guillaume Lessard
7dd029c372
Revert "[temporary] disable spans over inline elements"
...
This reverts commit e5c7dfc430 .
2025-04-04 14:50:51 -07:00
Meghana Gupta
ef1e94577f
Revert "Merge pull request #80540 from swiftlang/revert-80452-lifetimeinout"
...
This reverts commit 6eaa07a880 , reversing
changes made to e75ee3f4cf .
2025-04-04 09:50:13 -07:00
Artem Chikin
39e1791b67
Revert "Add support for inout lifetime dependence"
2025-04-04 09:00:09 -07:00
Doug Gregor
b850395611
Merge pull request #80518 from DougGregor/resurrect-allow-unsafe-attribute
...
[stdlib] Reinstate AllowUnsafeAttribute experimental feature on libraries
2025-04-04 05:20:27 -07:00
Meghana Gupta
50ea777936
Merge pull request #80452 from meg-gupta/lifetimeinout
...
Add support for inout lifetime dependence
2025-04-04 02:04:53 -07:00
Doug Gregor
0100104ff7
[stdlib] Reinstate AllowUnsafeAttribute experimental feature on libraries
...
We need this so that older compilers can handle the .swiftinterface
files we generate. It's unnecessary for newer compilers and can be
removed later.
Fixes rdar://148529962.
2025-04-03 18:07:19 -07:00
Meghana Gupta
f4a980d62d
Update stdlib
2025-04-03 17:32:09 -07:00
Allan Shortlidge
14e0eed88f
stdlib: Address unreachable code warnings.
2025-04-03 10:19:46 -07:00
Allan Shortlidge
d32310fb76
stdlib: Address new #StrictMemorySafety warnings.
2025-04-03 10:18:39 -07:00
Alejandro Alonso
06937d89a6
[stdlib] Update availability of EnumeratedSequence collection conformance ( #80471 )
2025-04-03 14:48:05 +01:00
Guillaume Lessard
aedb869c69
Merge pull request #80116 from glessard/rdar137710901-utf8view-span-notsmol
...
[SE-0456] Span properties over utf8 views
2025-04-03 01:02:14 -07:00
Guillaume Lessard
7539366c46
[stdlib] rename internal and private symbols
2025-04-02 17:53:13 -07:00
Guillaume Lessard
278f76b666
[stdlib] remove a repetition
2025-04-02 17:53:13 -07:00
Guillaume Lessard
5eab44651d
[stdlib] document performance limitations on String’s span
2025-04-02 17:53:13 -07:00
Guillaume Lessard
f3a01663ac
[stdlib] document limitations for Substring’s span
2025-04-02 17:53:13 -07:00
Guillaume Lessard
bde7a1871c
[stdlib] harden bounds checking in Substring’s span
2025-04-02 17:53:12 -07:00
Guillaume Lessard
0bbec0c6d8
[stdlib] a less public association key
...
- with tweaks in associated object code
2025-04-02 17:53:12 -07:00
Guillaume Lessard
0976b61ecc
Apply suggestions from code review
...
Co-authored-by: Karoy Lorentey <klorentey@apple.com >
2025-04-02 17:53:12 -07:00
Guillaume Lessard
ea44ff9fc9
[temporary] disable small-string support
2025-04-02 17:53:12 -07:00
eeckstein
6c0b7782f5
Merge pull request #80404 from eeckstein/optimize-floating-point
...
Optimizer: add some floating point optimizations
2025-04-02 13:06:25 +02:00
David Smith
f800fdf3d2
Adopt indirect tagged strings ( #80425 )
...
Fixes rdar://142991821
2025-04-01 12:53:29 -07:00
Erik Eckstein
3f6f163598
stdlib: annotate some floating point functions with "optimize.sil.inline.constant.arguments"
2025-04-01 18:12:45 +02:00
Kuba (Brecka) Mracek
a1cdd336f0
Merge pull request #80420 from kubamracek/embedded-drop-mach-apple
...
[embedded] Stop using -D__APPLE__ and -D__MACH__
2025-04-01 06:25:44 -07:00
Allan Shortlidge
d2e8edfc93
stdlib: Address StrictMemorySafety warnings in Span related code.
2025-03-31 16:45:08 -07:00
Allan Shortlidge
dbd3d40c07
stdlib: Address StrictMemorySafety warnings in KeyPath related code.
2025-03-31 16:45:08 -07:00
Allan Shortlidge
60e66f3613
stdlib: Address StrictMemorySafety warnings in String related code.
2025-03-31 16:45:08 -07:00
Allan Shortlidge
b3038e6d81
stdlib: Address StrictMemorySafety warnings in Set related code.
2025-03-31 16:45:08 -07:00
Allan Shortlidge
87db90c0da
stdlib: Address StrictMemorySafety warnings in Dictionary related code.
2025-03-31 16:45:08 -07:00
Allan Shortlidge
322443d91d
stdlib: Address StrictMemorySafety warnings in Array related code.
2025-03-31 16:43:01 -07:00
Kuba Mracek
6d71f45101
[embedded] Stop using -D__APPLE__ and -D__MACH__
2025-03-31 15:07:11 -07:00
Guillaume Lessard
e3234f8ae2
[stdlib] a better pointer as associated object id
2025-03-31 12:05:50 -07:00
Guillaume Lessard
6059be4bca
[stdlib] simplify spans of bridged substrings
2025-03-31 12:05:50 -07:00
Guillaume Lessard
85a9be6a1b
[stdlib] spans over bridged Substring instances
2025-03-31 12:05:50 -07:00
Guillaume Lessard
9ae58c992b
[stdlib] span properties for bridged String instances
2025-03-31 12:05:50 -07:00
Guillaume Lessard
af0aa94c18
[stdlib] lazy-eager bridging for non-UTF8 NSString instances
2025-03-31 12:05:50 -07:00
Guillaume Lessard
a061425aae
[stdlib] add storage property to Substring.UTF8View
2025-03-31 12:05:50 -07:00
Guillaume Lessard
3015bf522d
[stdlib] add storage property to String.UTF8View
2025-03-31 12:05:50 -07:00