Commit Graph

7182 Commits

Author SHA1 Message Date
Guillaume Lessard
26e5c43aa3 [se-0370] update documentation to track proposal
for the functions involving `fromContentsOf:`.
2022-08-26 17:36:40 -06:00
Guillaume Lessard
d63747f13d [stdlib] remove the single-element update functions
- as per an update to the proposal
2022-08-26 17:36:40 -06:00
Guillaume Lessard
254a8d4af5 [stdlib] fix inconsistency with storeBytes on slices 2022-08-26 17:36:40 -06:00
Guillaume Lessard
6550fb109c [stdlib] add loading and storing to and from raw buffer slices 2022-08-26 17:36:40 -06:00
Guillaume Lessard
c78cc93977 [gardening] typo fix 2022-08-26 17:36:40 -06:00
Guillaume Lessard
9cbc9eb000 [stlib] remove Slice<UMRBP>.copyMemory 2022-08-26 17:36:40 -06:00
Guillaume Lessard
75f64e731f [stdlib] implement slice operations without protocols 2022-08-26 17:36:40 -06:00
Guillaume Lessard
359e69d67e [stdlib] make more additions non-abi 2022-08-26 17:36:40 -06:00
Guillaume Lessard
00aaa07daf [stdlib] improve doc-comments 2022-08-26 17:36:40 -06:00
Guillaume Lessard
831a87fd36 [stdlib] make additions non-abi 2022-08-26 17:36:40 -06:00
Guillaume Lessard
fcd10c3efc [stdlib] partial buffer initialization (better buffer slices) 2022-08-26 17:36:40 -06:00
Guillaume Lessard
cc16a9f997 [stdlib] assign → update 2022-08-26 17:36:40 -06:00
Guillaume Lessard
2e3b5e6655 [stdlib] more memory initialization functions for UMRBP 2022-08-26 17:36:40 -06:00
Guillaume Lessard
bef793dd45 [stdlib] add single-element version of initializeMemory to UMRP 2022-08-26 17:36:40 -06:00
Guillaume Lessard
cff3012b37 [stdlib] additions to UMBP
- add initialization from a Collection
- assign to a UMBP from a Sequence or a Collection
- add `moveInitialize` and `moveAssign` to UMBP
- deinitialize UMBP
- add single-element memory state functions in a buffer
2022-08-26 17:36:40 -06:00
Guillaume Lessard
94d53871af [gardening] remove outdated recommendation 2022-08-26 17:36:39 -06:00
Guillaume Lessard
99d957fa1e [gardening] improve summary line 2022-08-26 17:36:39 -06:00
Guillaume Lessard
a7326d0353 [gardening] improve doc-comments in UnsafeMutablePointer 2022-08-26 17:36:39 -06:00
Guillaume Lessard
304a422c3e [stdlib] add single-element assign to UnsafeMutablePointer 2022-08-26 17:36:39 -06:00
Alejandro Alonso
284f8d4fdd Fix Substring.removeSubrange for entire substring (#60744)
fix start and end

fix test
2022-08-25 16:08:33 -07:00
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