Commit Graph

2525 Commits

Author SHA1 Message Date
Doug Gregor
7952a19f31 [Mangling] Introduce known manglings for many more standard library types.
Since the mangling scheme and set of standard library types is effectively
fixed now, introduce known mangling substitutions for a number of new
standard library types, filling out the S[A-Za-z] space.

Reduces standard library binary size by ~195k.
2018-06-19 23:24:38 -07:00
David Ungar
20e761b0c2 External dependencies refer to files. 2018-06-15 15:50:24 -07:00
David Ungar
d2e5239b00 Add sentences clarifying “external” dependencies. 2018-06-15 11:12:25 -07:00
Josh Ceciliani
f0d4fb4629 Updated introduction
Added introduction and made minor text fixes
2018-06-11 12:26:50 -06:00
Slava Pestov
4e0e462d23 Rename a few remaining @_inlineable => @inlinable, @_versioned => @usableFromInline 2018-06-09 22:41:54 -07:00
swift-ci
869931ceaf Merge pull request #17065 from sparkasaurusRex/doc-windowscrosscompile 2018-06-08 10:43:18 -07:00
Ellis Hoag
3a919b60b7 Building macOS SDK is also required for cross compiling 2018-06-08 09:28:51 -07:00
swift-ci
4b9373622f Merge pull request #17012 from sparkasaurusRex/doc-windowscrosscompile 2018-06-07 18:09:04 -07:00
Ellis Hoag
3b3b8cbc98 Clarify directions in building on Linux 2018-06-07 13:19:08 -07:00
Ellis Hoag
cd9d234a81 macOS cmake options needs ARCH specific variables 2018-06-07 11:38:16 -07:00
Erik Little
863f3a19ff Rename @effects to @_effects
@effects is too low a level, and not meant for general usage outside
the standard library. Therefore it deserves to be underscored like
other such attributes.
2018-06-06 12:53:03 -04:00
Ellis Hoag
cef68c7cd7 Add docs for cross compiling for Windows on Linux
These are the cmake options that I used to build swift for Windows
on Linux. I also added an extra step because it was not obvious.
2018-06-06 08:57:17 -07:00
Ellis Hoag
c335de1605 Help make documentation less confusing
I reversed the order of the copies to match the order of the
environment variables above. This makes the directions much
easier to follow.
2018-06-05 17:45:22 -07:00
Benjamin Herzog
07d4303b40 Merge pull request #16444 from BenchR267/feature/add-metrics-to-driver-output
[Driver] Added process information to emitted task messages
2018-05-25 16:49:09 -07:00
Benjamin Herzog
ac10fb3462 [Driver] Added process information to emitted messages
When providing the -parseable-output flag to the swift compiler, it will provide json formatted messages about tasks that run.
I added some optional usage information in form of user time, system time and maxrss to the output. This can be used by other tools using the compiler to get some insights about time and memory usage.
Since the output does not longer match processes run (in batch mode), I also added a real_pid field so the client could reason about jobs that belong together if needed.

rdar://39798231
2018-05-25 13:12:57 -07:00
Joe Shajrawi
93c036a77d Documentation: add entry for value_to_bridge_object 2018-05-22 17:15:43 -07:00
Nate Cook
7a4e0a32f6 [stdlib] Revise documentation
This includes various revisions to the APIs landing in Swift 4.2, including:
- Random and other randomness APIs
- Hashable changes
- MemoryLayout.offset(of:)
2018-05-18 11:31:54 -05:00
Andrew Trick
e1baf91ae1 Merge pull request #16595 from atrick/accessfold
[Exclusivity] Access Enforcement Folding Optimization
2018-05-15 13:27:52 -07:00
Raj Barik
e215abc3fa Add ExistentialToGeneric mangling and demangling code 2018-05-14 15:26:18 -07:00
Andrew Trick
24c94f78fc Document begin/end access marker flags in SIL.rst. 2018-05-14 10:51:18 -07:00
Graydon Hoare
39fdf5d4e5 [BatchMode] <rdar://39981525> Emit parseable output for each job, using quasi-PIDs. 2018-05-10 20:34:33 -07:00
swift-ci
03de7ad3b4 Merge pull request #15862 from lanza/andoc 2018-05-06 11:30:33 -07:00
Slava Pestov
e24fbbbc17 Fix formatting in SIL.rst 2018-05-01 17:40:53 -06:00
Arnold Schwaighofer
1f65ee25f6 Distinguish between withoutActuallyEscaping and passing @noescape
Objective C closures when reporting that a closure has escaped

rdar://39682865
2018-05-01 07:24:19 -07:00
Arnold Schwaighofer
678a99e76a Add a copy_block_without_escaping %block withoutEscaping %closure instruction
Mandatory pass will clean it up and replace it by a copy_block and
is_escaping/cond_fail/release combination on the %closure in follow-up
patches.

The instruction marks the dependence of a block on a closure that is
used as an 'withoutActuallyEscaping' sentinel.

rdar://39682865
2018-05-01 07:24:19 -07:00
Andrew Breckenridge
31c92855fd windows/docs: remove 2 hour estimate
This could take much longer, let's not lie
2018-04-27 11:26:06 -07:00
Saleem Abdulrasool
4aaa60dd4d build: add documentation for building lldb on Windows
Add documentation to enable building lldb on Windows to debug swift code.
2018-04-26 13:05:52 -07:00
Michael Gottesman
f5d358f3db [docs][ubuntu-14.04] Update URL of cmake-3.5.2 tar ball
The original URL now 301s to the new URL. Update the documentation.
2018-04-18 23:37:25 -07:00
swift-ci
76eceb088b Merge pull request #15976 from harlanhaskins/its-just-semantics 2018-04-17 09:44:18 -07:00
Harlan
646bba188a Add 'Sema' to Lexicon
Adds a small but useful definition of 'Sema' to the Lexicon. I personally thought it had something to do with Semaphores when I started contributing.
2018-04-17 14:16:12 +02:00
Arnold Schwaighofer
28a869a916 Fix typo 2018-04-16 08:59:47 -07:00
Arnold Schwaighofer
b5308a6287 Add doc for convert_escape_to_noescape attributes 2018-04-13 14:26:33 -07:00
Nathan Lanza
bdf4f02576 Update docs/Android.md 2018-04-11 00:16:09 +00:00
Saleem Abdulrasool
dc7df33a37 docs: correct CMake variable name for Windows build
The windows build cannot be built with `build-script` as that is written in bash.  Correct the documentation to use the right variable name.
2018-04-10 09:52:58 -07:00
John McCall
6e81c68477 Merge pull request #15685 from rjmccall/metadocs-docs-fixes
Revise per review, and some assorted other fixes.
2018-04-02 15:22:02 -04:00
swift-ci
38d56eed83 Merge pull request #15628 from kastiglione/lldb-sequence-command 2018-04-02 11:35:10 -07:00
John McCall
31e474d0f3 Revise per review, and some assorted other fixes. 2018-04-02 13:45:20 -04:00
John McCall
625c37e2d5 Describe the technical design of metadata states and cycle resolution. 2018-04-02 01:32:35 -04:00
John McCall
50f8519954 Update the type-metadata document at least a little bit.
The section on nominal type descriptors is badly out of date,
but now at least it says so in bold at the top of the section.
2018-04-02 01:31:28 -04:00
Slava Pestov
e1f50b2d36 SE-0193: Rename @_inlineable to @inlinable, @_versioned to @usableFromInline 2018-03-30 21:55:30 -07:00
Dave Lee
f9cc272d95 Mention sequence in DebuggingTheCompiler 2018-03-30 13:31:18 -07:00
swift-ci
a55b4dc29f Merge pull request #15613 from vedantk/lldb-docs 2018-03-29 21:45:07 -07:00
Vedant Kumar
a57ba2b0c2 [docs] Explain how to define custom lldb commands 2018-03-29 20:53:14 -07:00
Slava Pestov
be0736693c Update Mangling.rst for recent changes
- Outlined value operations are now 'WO' and not 'W'
- Protocol witness table pattern 'Wp'
- Resilient protocol witness table 'Wr'
- Protocol requirement table 'WR'
2018-03-29 15:23:20 -07:00
Davide Italiano
b4a19cc6ac [Mangler] Fix mangling for associated types. 2018-03-27 11:06:15 -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
Xiaodi Wu
2cca78bb4f [gardening] Address a typo and some punctuation in WindowsBuild.md 2018-03-22 23:22:21 -05:00
Saleem Abdulrasool
dd8c544609 Merge pull request #15295 from AndrewSB/more-win🐶-cleanup
docs/Windows: More cleanup
2018-03-22 23:52:27 -04:00
Mike Ash
cf3ee980a8 Merge pull request #14283 from mikeash/fix-urc-overflow-to-side-table-in-deinit
[Runtime] Fix unowned refcount overflow to side table during deinit.
2018-03-22 09:15:20 -07:00
Mike Ash
f2b89d1b94 Merge branch 'master' into fix-urc-overflow-to-side-table-in-deinit 2018-03-21 15:32:01 -07:00