Alex Martini
4d53ce470e
Make pseudocode look less like real code.
...
Generalizes the change in aac6d97f3f .
2022-08-25 15:48:36 -07:00
Guillaume Lessard
1bba62ec13
Merge pull request #60613 from glessard/pointer-arithmetic-overflow-checks
...
[stdlib] add overflow checks for some pointer arithmetic
2022-08-25 14:37:44 -06:00
Alex Martini
1a7146fb04
Merge pull request #58867 from amartini51/binaryString_93165742
...
Correct the expected output in an example
2022-08-24 13:56:49 -07:00
Alex Martini
8556e8337a
Merge pull request #60178 from amartini51/doc_fixes
...
Documentation fixes
2022-08-24 13:53:24 -07:00
Guillaume Lessard
fd4e98a51e
Merge pull request #60634 from glessard/rdar98851696-wMR-error-messages
...
@DougGregor approved the identical https://github.com/apple/swift/pull/60632 for the 5.7 branch.
2022-08-24 09:38:24 -06:00
Nate Cook
7ce1f3e722
[stdlib] Document stable sort guarantee
...
Changes the documentation of the stdlib `sort`/`sorted` methods
to provide a stability guarantee. No changes to behavior.
2022-08-23 11:05:30 -05:00
Guillaume Lessard
45b81f6456
[stdlib] add overflow checks for some pointer arithmetic
...
- Overflow checks added for recent additions to pointer arithmetic (rounding and property pointers).
- The basic `advanced(by:)` functions will need to be dealt with separately.
2022-08-22 09:51:10 -06:00
Guillaume Lessard
92087a8f62
[stdlib] add explanations to _debugPrecondition calls
2022-08-18 15:37:25 -06:00
Joe Groff
4ea98f92d2
Merge pull request #39119 from kateinoigakukun/katei/fix-internal-cc-mismatch
...
[stdlib] Fix cc mismatch violation on swift_isClassType
2022-08-18 10:00:01 -07:00
Arnold Schwaighofer
e5a35f9819
Merge pull request #60560 from aschwaighofer/always_inline_sprinkle_range_index_after
...
stdlib: Sprinkle an __always inline onto Range.index(after:)
2022-08-15 17:54:42 -07:00
Arnold Schwaighofer
48b4d3a73d
stdlib: Sprinkle an __always inline onto Range.index(after:)
...
After moving to the new llvm pass pipeline this function no longer gets
inlined. Leading to 150% regressions in ObjectiveCBridge benchmarks.
rdar://98533158
2022-08-15 11:09:42 -07:00
swift-ci
85f48aeb15
Merge remote-tracking branch 'origin/main' into rebranch
2022-08-09 18:53:20 -07:00
swift-ci
7701ddc054
Merge pull request #60428 from Catfish-Man/tag-youre-it
...
Handle long tagged NSStrings
2022-08-09 18:47:39 -07:00
Alex Martini
4d35aae50e
Incorporate tech review from @stephentyrone.
2022-08-09 12:45:36 -07:00
swift-ci
0409774802
Merge remote-tracking branch 'origin/main' into rebranch
2022-08-08 16:56:17 -07:00
Alex Martini
36114194c3
Fix missing word.
...
Co-authored-by: Ben Rimmington <me@benrimmington.com >
2022-08-08 15:40:58 -07:00
Alex Martini
bfba8d17ea
Fix link markup.
...
Co-authored-by: Ben Rimmington <me@benrimmington.com >
2022-08-08 15:40:47 -07:00
Michael Gottesman
366e7ae64d
[move-keyword] Remove the old stdlib entrypoint.
2022-08-08 12:50:42 -07:00
David Smith
e0dd80fe3b
Handle long tagged NSStrings
2022-08-05 19:02:37 -07:00
swift-ci
7f1b32c123
Merge remote-tracking branch 'origin/main' into rebranch
2022-08-01 15:33:49 -07:00
DylanPerry5@gmail.com
512b499406
Issue #59903 - Removing _decodeScalar function that isn't being used
2022-07-29 19:51:52 -04:00
swift-ci
c3be41258e
Merge remote-tracking branch 'origin/main' into rebranch
2022-07-26 15:54:31 -07:00
Anthony Latsis
6f87d02949
Merge pull request #59933 from AnthonyLatsis/rm-foundation-spi
...
stdlib: Mark some deprecated corelibs-foundation SPI that are no longer used as unavailable
2022-07-27 01:54:08 +03:00
Anthony Latsis
a12106963b
stdlib: Mark some deprecated corelibs-foundation SPI that are no longer used as unavailable
...
This keeps them around in the ABI while preventing actual usage as we build
up confidence to finally remove them.
2022-07-26 04:29:57 +03:00
Alex Martini
c0abd3a3e8
Remove unused link destination.
...
See also commit 93c350dff7
2022-07-21 11:31:36 -07:00
swift-ci
d919357e5f
Merge remote-tracking branch 'origin/main' into rebranch
2022-07-13 16:13:25 -07:00
Guillaume Lessard
bee4eaefc4
Merge pull request #60025 from glessard/rdar96841899
...
[stdlib] fix unaligned loads of large SIMD vectors on x86_64
2022-07-13 17:04:32 -06:00
Guillaume Lessard
b5cc4121d7
[stdlib] fix unaligned loads of 16-byte (and up) SIMD types
...
- this is a temporary workaround
2022-07-13 10:29:58 -06:00
Guillaume Lessard
1b78a1f356
[stdlib] change String’s SIMD bits to load using loadUnaligned
2022-07-13 10:29:58 -06:00
Guillaume Lessard
4f87f0caa8
[gardening] fix code indentation
2022-07-12 14:50:17 -06:00
swift-ci
6eee460618
Merge remote-tracking branch 'origin/main' into rebranch
2022-07-11 12:33:22 -07:00
Karoy Lorentey
5788a2cada
Merge pull request #59959 from lorentey/duration-components-crash
...
[stdlib] Duration: Fix rare overflow trap in Int128.multipliedFullWidth
2022-07-11 12:30:44 -07:00
swift-ci
80161c6d49
Merge remote-tracking branch 'origin/main' into rebranch
2022-07-11 11:53:51 -07:00
David Smith
bcfa805635
Zero trailing bytes of SmallStrings more efficiently ( #59823 )
2022-07-11 11:46:15 -07:00
swift-ci
02d9592432
Merge remote-tracking branch 'origin/main' into rebranch
2022-07-08 22:53:31 -07:00
Karoy Lorentey
95a45dbc3d
[stdlib] Duration: Fix rare overflow trap in Int128.multipliedFullWidth
...
Int128.multipliedFullWidth fails to account for an overflow case, which lead `Duration.components` trapping when the duration is a multiple of 512s.
rdar://96362510
2022-07-07 18:34:15 -07:00
Erik Eckstein
1fa0120926
stdlib: remove the inout-violation check from Array bounds checking
...
As we have exclusivity checking since a long time, this "explicit" check for inout violations is not needed anymore.
The `_checkInoutAndNativeTypeCheckedBounds` function must remain in the library for backward compatibility.
The remaining relevant subscript index checking from that function is now simply inlined in into the caller.
2022-07-07 16:53:55 +02:00
Alex Martini
8f6289745b
Add per-architecture availability note.
...
The documentation publication pipeline doesn't have a way to expose
per-architecture availability, like how it it shows per-platform
availability. So add this in prose instead.
Fixes <rdar://77649895>
2022-07-06 17:18:03 -07:00
Alex Martini
e46a285a98
Reference doesn't allow code voice in abstract.
...
Fixes <rdar://86212313>
2022-07-06 17:07:45 -07:00
swift-ci
3c548ea858
Merge remote-tracking branch 'origin/main' into rebranch
2022-07-06 14:15:10 -07:00
Karoy Lorentey
64a57e3ade
[stdlib] Switch to using unchecked buffer subscript in low-level Unicode helpers
...
We expect indices to be already validated by the time these are
called, and UBP’s debug-mode checks are compiled into opaque parts
of the stdlib.
(The big exception is that Swift <5.7 used to not do proper index
validation and allowed out-of-bounds accesses. We emulate this
behavior for code that was compiled with such a release, and it turns
out that these UnsafeBufferPointer checks are interfering with the
intended (undefined) behavior.)
rdar://93707276
2022-07-05 18:33:51 -07:00
swift-ci
cfb7f4be53
Merge remote-tracking branch 'origin/main' into rebranch
2022-07-03 13:52:53 -07:00
Jager-yoo
eaff73b15c
[stdlib] Fix func signature spacing
...
- standardizes spacing of an operator(==) func signature in Equatable.swift
2022-07-03 02:16:09 +09:00
Alex Martini
deed208b7b
Add an example and cross reference to TSPL.
...
Fixes <rdar://79689446>
2022-06-30 12:34:47 -07:00
Alex Martini
93c350dff7
Reference style doesn't allow links in abstracts.
...
Fixes <rdar://93208475>
2022-06-30 12:34:40 -07:00
swift-ci
aeb93f5420
Merge remote-tracking branch 'origin/main' into rebranch
2022-06-29 22:53:27 -07:00
swift-ci
f542ca9a76
Merge pull request #59797 from glessard/aeic-mangled-names
...
[stdlib] Improve the mangled names of some @_alwaysEmitIntoClient functions
2022-06-29 22:46:23 -07:00
Guillaume Lessard
a74f22dadf
[docs] fix a repeated typo
2022-06-29 18:19:34 -06:00
Guillaume Lessard
e353e2f568
[stdlib] document compatibility entry point silgen names better
2022-06-29 16:21:55 -06:00
Guillaume Lessard
6d36a36dd9
[stdlib] improve silgen names and better document intention
2022-06-29 16:20:34 -06:00