Doug Gregor
0d568a93d4
[SE-0289] Update diagnostics & many other strings to "result builders"
2020-10-20 21:44:09 -07:00
Michelle Casbon
a5034bc22b
Correct path in Windows build guide
2020-10-19 20:23:50 +00:00
Hans Harck Tønning
f2f7cc6fb2
[docs] Fix a typo in CppInteroperabilityManifesto.md ( #34345 )
...
The "bridging-std-string" section contained a typo in the C++ header example, compared to the imported Swift header.
2020-10-19 19:10:55 +01:00
Andrew Trick
fd8f723f60
Merge pull request #34126 from atrick/add-accesspath
...
Add an AccessPath abstraction and formalize memory access
2020-10-19 10:17:27 -07:00
Andrew Trick
712e1abec6
AccessedStorage and AccessPath documentation.
2020-10-16 15:00:10 -07:00
Mishal Shah
bd6cc586d5
Update the Xcode version in Getting Started doc
2020-10-16 14:42:42 -07:00
Mishal Shah
23cde90b29
Update the Xcode version in How to Guides
2020-10-16 14:41:14 -07:00
Max Desiatov
8b452ac4b5
docs: convert Serialization.rst to Markdown ( #34279 )
...
Converts one more doc file from `.rst` to Markdown for consistency.
2020-10-13 17:16:15 +01:00
Arnold Schwaighofer
b994bf3191
Add support for _specialize(exported: true, ...)
...
This attribute allows to define a pre-specialized entry point of a
generic function in a library.
The following definition provides a pre-specialized entry point for
`genericFunc(_:)` for the parameter type `Int` that clients of the
library can call.
```
@_specialize(exported: true, where T == Int)
public func genericFunc<T>(_ t: T) { ... }
```
Pre-specializations of internal `@inlinable` functions are allowed.
```
@usableFromInline
internal struct GenericThing<T> {
@_specialize(exported: true, where T == Int)
@inlinable
internal func genericMethod(_ t: T) {
}
}
```
There is syntax to pre-specialize a method from a different module.
```
import ModuleDefiningGenericFunc
@_specialize(exported: true, target: genericFunc(_:), where T == Double)
func prespecialize_genericFunc(_ t: T) { fatalError("dont call") }
```
Specially marked extensions allow for pre-specialization of internal
methods accross module boundries (respecting `@inlinable` and
`@usableFromInline`).
```
import ModuleDefiningGenericThing
public struct Something {}
@_specializeExtension
extension GenericThing {
@_specialize(exported: true, target: genericMethod(_:), where T == Something)
func prespecialize_genericMethod(_ t: T) { fatalError("dont call") }
}
```
rdar://64993425
2020-10-12 09:19:29 -07:00
Mishal Shah
00501fcaab
Update GettingStarted doc to use --scheme for update-checkout script
...
https://bugs.swift.org/browse/SR-13717
2020-10-09 16:05:37 -07:00
Michael Gottesman
6d599eaff1
Merge pull request #34185 from gottesmm/pr-2fab41ee8cd610aa53f2b2f7af6e7cf4113c9000
...
[DebuggingTheCompiler] Document a few flags for dumping llvm-ir.
2020-10-06 14:42:09 -05:00
Robert Widmann
2d09bc3fb0
Merge pull request #34181 from regexident/fix-docs-link-to-rust
...
Fixed docs link to Rust's demand-driven compilation guide
2020-10-06 09:14:35 -07:00
ladd
b23b335ac8
Update CompilerPerformance.md
...
Typo fix, and fix parameter `--raw-clang-ast`
2020-10-05 14:16:59 -07:00
Mishal Shah
161899d490
Merge pull request #34133 from porglezomp-misc/twist-it-bop-it-sccache-it
...
[build-script] Add a flag for sccache
2020-10-05 11:16:29 -07:00
Michael Gottesman
e7761cf997
[DebuggingTheCompiler] Document a few flags for dumping llvm-ir.
...
I needed to use these and realized they were not documented here. I had them in
my brain, but others may not, so seemed good to do.
2020-10-05 11:27:56 -05:00
Vincent Esche
6ab35727cf
Fixed docs link to Rust's demand-driven compilation guide
2020-10-05 15:00:47 +02:00
Ben Rimmington
ac061482c0
[Docs] Update the documentation contents and index ( #34157 )
...
* Update docs/README.md
* Update docs/contents.rst
2020-10-02 06:46:52 +01:00
Holly Borla
62a6a46059
Merge pull request #34150 from hborla/type-checker-doc
...
[Docs] Convert TypeChecker.rst to Markdown
2020-10-01 16:01:28 -07:00
Holly Borla
91fd19d6db
[Docs] Correct a few code blocks in TypeChecker.md
2020-10-01 13:05:32 -07:00
Holly Borla
6173d7ec04
[Docs] Convert TypeChecker.rst to Markdown
2020-10-01 13:01:12 -07:00
Cassie Jones
6d92486c9a
[build-script] Add SWIFT_ prefix to USE_SCCACHE env var
2020-09-30 19:37:25 -04:00
Cassie Jones
e01893cb56
[build-script] Add a flag for sccache
...
This adds a flag to enable sccache in order to simplify the build-script
invocation, particularly for new contributors.
2020-09-30 16:49:34 -04:00
Doug Gregor
d96ea282c3
Merge pull request #34093 from DougGregor/concurrency-mangle-sil-async
...
[Concurrency] (De-)mangling for SIL @async function types.
2020-09-26 08:20:22 -07:00
Doug Gregor
81f0f37acc
[Concurrency] (De-)mangling for SIL @async function types.
2020-09-25 22:45:45 -07:00
Mishal Shah
956b7a931c
Merge pull request #34041 from apple/shahmishal/update-branch-doc
...
Update doc and links to support new main branch
2020-09-23 22:48:03 -07:00
Joe Groff
13f8641410
Merge pull request #33994 from jckarter/sil-async-documentation
...
SIL.rst: Add documentation for async function representation.
2020-09-23 07:45:53 -07:00
Mishal Shah
40024718ac
Update doc and links to support new main branch
2020-09-22 23:53:29 -07:00
Joe Groff
e4b6f8bcca
More feedback: ownership of bbargs, begin -> get_async_continuation
2020-09-22 15:22:58 -07:00
Joe Groff
e2dfe3a334
Add example of withUnsafeContinuation lowering to SIL
2020-09-21 15:29:28 -07:00
Joe Groff
29587ac766
Revise with feedback from John and Andy
2020-09-21 14:21:47 -07:00
Robert Widmann
41b976f8f9
Drop "cascading" and "private" dependency from the lexicon
...
This is no longer a meaningful distinction.
2020-09-21 14:47:39 -06:00
Joe Groff
57215cb17f
SIL.rst: Add documentation for async function representation.
...
Unlike our existing coroutines, async functions run independently within an async coroutine context, and don't
directly yield values back and forth. They therefore mostly behave like normal functions with only an `@async` annotation
to indicate the presence of async suspend points. The `withUnsafeContinuation` primitive requires some instructions
to represent the operation that prepares the continuation to be resumed, which will be represented by
`begin_async_continuation`...`await_async_continuation` regions.
2020-09-18 16:57:07 -07:00
swift-ci
6508a18cae
Merge pull request #33850 from varungandhi-apple/vg-doc-link-jordan-blog-posts
2020-09-17 20:27:59 -07:00
tbkka
c80477b119
Clarify the behavior of _SwiftValue (without naming it) ( #33951 )
...
Clarify the function of `__SwiftValue` (used when casting to AnyObject) but remove the actual name.
The name and layout of this type is an internal implementation detail that is not guaranteed and should not be relied on by any code outside of the runtime.
2020-09-16 09:17:55 -07:00
Android Dev Notes
b137ddee12
Fix grammatical errors ( #33940 )
2020-09-15 22:22:51 +01:00
3405691582
a51db090fb
[docs] Build instructions for OpenBSD. ( #33934 )
...
Swift now builds cleanly out of the box as of OpenBSD 6.8-beta.
While there are still more unit test tweaks to be made, document the
preparation and other quirk flags necessary to get a clean build on this
system.
2020-09-15 22:20:13 +01:00
Ben Rimmington
0c6129daf2
[docs] Fix broken links in the documentation index ( #33829 )
2020-09-15 19:39:05 +01:00
Richard Wei
8df2d34603
Address review comment.
2020-09-14 12:45:22 -07:00
Richard Wei
4fe8dda893
[AutoDiff] [Docs] Clarify 'Differentiable' derived conformances conditions.
...
Clarify `Differentiable` derived conformances synthesis conditions.
2020-09-11 23:07:41 -07:00
swift-ci
d9a13bc923
Merge pull request #33883 from dan-zheng/fix-typos
2020-09-11 11:05:48 -07:00
Brent Royal-Gordon
f2249e9af5
[NFC] Define “access path” in the lexicon
2020-09-10 19:08:29 -07:00
swift-ci
c3f801b4a4
Merge pull request #33878 from varungandhi-apple/vg-doc-address-review-comments
2020-09-10 17:36:43 -07:00
Varun Gandhi
23b65ede3b
[docs] Properly reflect diversity in Swift programmers in emoji.
2020-09-10 13:22:21 -07:00
stevapple
0e68e4de9a
Fix WindowsBuild.md
2020-09-10 22:16:56 +08:00
Dan Zheng
5dad735896
[docs] Fix typos in CppInteroperabilityManifesto.md.
...
- `specilalizations` -> `specializations`
- Mark a setter method as `mutating`.
2020-09-09 17:01:41 -07:00
Varun Gandhi
b6558fd9ed
[docs] Describe using git grep in FAQ.
...
Also changed the grep example to use long flag names for clarity.
2020-09-09 13:42:31 -07:00
Varun Gandhi
58fcc4602d
[docs] Fix typos and broken links.
2020-09-09 13:41:48 -07:00
Argyrios Kyrtzidis
5f98d39dd4
Merge pull request #33867 from benrimmington/docs-refactoring-placeholder
...
[docs] Remove the /docs/Refactoring.md file
2020-09-09 10:10:31 -07:00
Varun Gandhi
d50bc21bcb
Merge pull request #33786 from varungandhi-apple/vg-doc-new-starter-guides
...
[docs] Add First Pull Request guide and Getting Started guide.
2020-09-09 08:43:24 -07:00
Ben Rimmington
ba06cfacae
[docs] Remove the /docs/Refactoring.md file
2020-09-09 14:53:07 +01:00