Commit Graph

21 Commits

Author SHA1 Message Date
Varun Gandhi
2488f4801c [docs] Add a DevelopmentTips.md file. (#28248) 2019-11-18 10:39:14 -08:00
Andrew Trick
0b3255fe2c Correct my minor typo in the stdlib programmer guide. 2019-08-02 17:14:27 -07:00
Andrew Trick
e75f551268 Add unsafeBitCast documentation to the Standard Library Programmer's Guide
Explaining the many other ways that one can cast references.
2019-07-17 19:40:25 -07:00
Bob Wilson
ef1d9bc7f8 Stop using the _branchHint function
LLVM r355981 changed various intrinsic functions, including expect,
to require immediate arguments. Swift's _branchHint function has an
expected value that is passed in as an argument, so that it cannot
use LLVM's expect intrinsic. The good news is that _branchHint is only
ever used with immediate arguments, so we can just move the intrinsic
into _fastPath and _slowPath and use those instead of _branchHint.

As was noted in the documentation, the _fastPath and _slowPath names are
confusing but we have passed the point where we can simply rename them.
We could add new names but would still need to keep the old ones around
for binary compatibility, and it is not clear that it is worth the
trouble. I have removed that note from the documentation.
2019-03-17 22:13:51 -07:00
Jordan Rose
ef04b24136 [docs] Describe the Curiously Recursive Inlinable Switch Pattern (#22643) 2019-02-19 10:33:14 -08:00
Michael Ilseman
2c550d0220 _sanityCheck is now _internalInvariant 2018-12-10 11:17:52 -08:00
Erik Eckstein
c6eb5fe82a minor follow-ups for remove pinning in utilities and docs 2018-08-25 11:14:18 -07:00
Slava Pestov
e1f50b2d36 SE-0193: Rename @_inlineable to @inlinable, @_versioned to @usableFromInline 2018-03-30 21:55:30 -07:00
Michael Ilseman
977a0e0d86 [docs] Add productivity hacks to stdlib progman (#15403)
[docs] Add productivity hacks to stdlib prog man

Small section about using ninja to more efficiently work on the standard library.
2018-03-24 16:22:27 -07:00
John Eismeier
6cfc648d2a Fix spacing 2018-02-16 15:00:59 -05:00
John Eismeier
09452396cc Propose fixing some typos 2018-02-15 14:37:51 -05:00
Greg Parker
da14cd79a6 [runtime] Clean up symbol exports in libc functions. (#13202) 2017-12-01 17:49:11 -08:00
Michael Ilseman
9d444aefd9 [docs] stdlib prog-man: Document @_silgen_name use (#12125)
Add a description of `@_silgen_name` to the standard library programmer's manual.
2017-09-27 17:18:03 -07:00
Michael Ilseman
15a8403f33 Update StandardLibraryProgrammersManual.md
Document @unsafe_no_objc_tagged_pointer
2017-09-12 15:28:09 -07:00
Michael Ilseman
fc8cbc4750 [docs] Additions/structure for stdlib programmer's manual
Flesh out more sections of the manual, restructure the wants and TODOs.
2017-08-18 17:56:25 -07:00
Michael Ilseman
c6da08a384 [docs] Document _unsafelyUnwrappedUnchecked 2017-08-07 13:22:20 -07:00
Michael Ilseman
a078f7f715 [docs] Document @_transparent in stdlib manual 2017-08-07 13:05:01 -07:00
Michael Ilseman
461f66da01 [docs] document _fixLifetime 2017-08-04 11:55:21 -07:00
Michael Ilseman
e29916dbca [docs] Documentation for stdlib precondition checking 2017-08-04 11:32:10 -07:00
Michael Ilseman
02dcd8aa9d [docs] Describe _fastPath et al. 2017-08-04 11:32:10 -07:00
Michael Ilseman
bce472be1b [docs] Initial (empty) standard library programmer's guide 2017-08-04 11:32:10 -07:00