Commit Graph

2882 Commits

Author SHA1 Message Date
swift-ci
fcfd555a23 Merge pull request #28522 from dan-zheng/docs 2019-12-02 14:43:16 -08:00
swift-ci
f4002c80ea Merge pull request #19735 from kevints/SR-8925 2019-12-02 13:15:24 -08:00
Dan Zheng
51ebf99f5d [Docs] Fix typos in differentiable programming manifesto.
- Fix `Sequential` function builder usage.
- Fix grammatical error.
- `powerful machine learning` -> `expressive machine learning`
2019-12-02 12:39:50 -08:00
swift-ci
4c00d97b99 Merge pull request #28491 from dan-zheng/docs 2019-12-02 11:05:28 -08:00
Volodymyr Sapsai
84c7b632e8 [docs] Fix Objective-C bridging attribute name. (#28495)
Correct attribute name is `objc_bridge_mutable` according to
40963b2bf0/clang/include/clang/Basic/Attr.td (L1743)
2019-12-02 10:53:08 -08:00
Robert Widmann
266f2c8912 Merge pull request #16589 from kitasuke/update_documentation_of_alloc_stack_for_sil
[Gardening] Update alloc_stack documentation in SIL.rst
2019-12-02 10:34:08 -08:00
swift-ci
9ff7485139 Merge pull request #28454 from apple/rename-differentiating-transposing 2019-12-02 10:28:29 -08:00
Dan Zheng
292d76461a [Docs] Fix typos in differentiable programming manifesto.
- `Differentiable operators` -> `Differential operators`
- Fix incorrect `gradient(at:in:)` result type.
2019-11-26 18:15:56 -08:00
yostane
2ceaa4cd98 Fix typos on Windows.md 2019-11-24 22:36:22 +01:00
yostane
f710598a98 Added WSL2 instructions
- Detailed limitations of WSL1: debug and run the Swift REPL.
- Added instructions for WSL2 that allow to debug and REPL
2019-11-23 23:23:05 +01:00
Richard Wei
7a9be4f09c Update markdown headers.
Co-Authored-By: Dan Zheng <danielzheng@google.com>
2019-11-22 23:06:46 -08:00
Richard Wei
ac16ac3b5a [Docs] [AutoDiff] Rename '@differentiating' and '@transposing' attributes.
In the code review for #28321, the main developers of AutoDiff agreed to rename `@differentiating` and `@transposing` to `@derivative(of:)` and `@transpose(of:)`, respectively.  This PR updates the manifesto to reflect this change.
2019-11-22 22:35:43 -08:00
Pavel Yaskevich
69d46015ff Merge pull request #28387 from xedin/todo-for-new-diags
[Docs] Update TypeChecker.rst with a list of not-yet-ported diagnostics
2019-11-21 15:30:07 -08:00
Pavel Yaskevich
88e38d13cf Update docs/TypeChecker.rst
Co-Authored-By: Dan Zheng <danielzheng@google.com>
2019-11-21 13:45:33 -08:00
Saleem Abdulrasool
b8be8b20fa Update WindowsBuild.md
Some minor cleanups to paths to reduce dependence on the environment variables.  Start documenting building t-s-c which is needed to bootstrap s-p-m.
2019-11-21 09:59:59 -08:00
Pavel Yaskevich
e52dc59cc4 [Docs] Update TypeChecker.rst with a list of not-yet-ported diagnostics 2019-11-20 12:35:36 -08:00
Saleem Abdulrasool
370cd9e115 Update WindowsBuild.md
Update rules for building llbuild, fix invocation for Foundation
2019-11-19 13:05:56 -08:00
swift-ci
f507e7be45 Merge pull request #13012 from anandabits/generics-manifesto 2019-11-18 16:37:11 -08:00
Robert Widmann
d9d6457177 Merge pull request #19652 from ranunez/patch-1
Update OptimizationTips.rst with consistent colon syntax
2019-11-18 12:37:07 -08:00
Varun Gandhi
2488f4801c [docs] Add a DevelopmentTips.md file. (#28248) 2019-11-18 10:39:14 -08:00
swift-ci
c239d7a70e Merge pull request #12530 from amraboelela/update-android-md 2019-11-17 16:38:39 -08:00
Dain Miller
6fe6ca0d4e Fix typo in docs 2019-11-17 15:52:10 -05:00
Richard Wei
01b53db1b2 Remove a redundant paragraph. 2019-11-16 16:28:52 -08:00
Richard Wei
fa6c07d31d [Docs] [AutoDiff] Rename '@nondiff' to '@noDerivative'.
We agreed to move to rename `@nondiff` to `@noDerivative` (in line with the `@noDerivative` declaration attribute) in #28278.
2019-11-16 16:27:10 -08:00
Saleem Abdulrasool
a9daa008a2 Merge pull request #26298 from compnerd/android-sdk-cross-compilation
docs: add initial documentation for android SDK
2019-11-16 13:00:10 -08:00
Robert Widmann
d4e097f100 Merge pull request #25175 from compnerd/build
docs: describe where the build system is evolving to
2019-11-15 23:15:27 -08:00
Jordan Rose
6db9a69e94 [docs] Move all the futurey bits of LibraryEvolution.rst to a new file (#28007)
It's not /exactly/ a manifesto but it's close enough.
2019-11-14 16:24:46 -08:00
Jordan Rose
954a14261f Merge pull request #27943 from jrose-apple/eevee
[docs] Modernize LibraryEvolution.rst, part 1
2019-11-14 16:24:20 -08:00
own2pwn
ae7723a618 [Docs] Fix typo in HighLevelSILOptimizations.rst.
`nonelement` -> `non-element`
2019-11-14 11:04:57 -08:00
Saleem Abdulrasool
c0ea564ff0 Merge pull request #28234 from apple/compnerd-import-exports
Update WindowsBuild.md
2019-11-13 18:02:19 -08:00
Aubrey Mills
cd8f545836 Update DifferentiableProgramming.md (#28230)
Changed "Numerical computing in Swift Swift is an
expressive..." to "Numerical computing in Swift is an
expressive..."
2019-11-13 10:48:30 -08:00
Saleem Abdulrasool
af75939bf6 Update WindowsBuild.md
Update rules for the Windows build after CMake 3.15 upgrade.  This simplifies the rules, relies on the export targets and removes the unnecessary variables.
2019-11-13 10:43:56 -08:00
Saleem Abdulrasool
4d923ad585 Merge pull request #28202 from apple/compnerd-patch-1
Update WindowsBuild.md
2019-11-12 07:48:02 -08:00
Dan Zheng
51d7d6aec1 [Docs] Minor edits to differentiable programming manifesto. (#28200)
Polish "zero tangent vector initialization" doc comments.
2019-11-11 18:17:52 -08:00
Saleem Abdulrasool
44bde54938 Update WindowsBuild.md
Update dispatch parameters for Foundation
2019-11-11 16:24:46 -08:00
swift-ci
526c5bf91d Merge pull request #23761 from tarleb/patch-1 2019-11-11 15:28:00 -08:00
Owen Voorhees
da7e1ca8ad [Diagnostics] Add a section to Diagnostics.md on educational notes 2019-11-07 21:19:48 -08:00
John McCall
17cc65cc38 Patch Sphinx to tell it about the Swift lexers in a somewhat simpler way. 2019-11-05 17:45:37 -05:00
Saleem Abdulrasool
7e7e09be87 Merge pull request #28004 from apple/compnerd-one-time-setup
Update WindowsBuild.md
2019-11-01 15:04:10 -07:00
Jordan Rose
6c2645a288 [docs] LibraryEvolution: make it a little more friendly
- Move the original intro into a "Background" section
- Link to SE-0193 (@inlinable) and SE-0260 (@frozen)
- Note (suggested by @Gankra) on why it's safe to add stored
  properties to a struct
- Remove some bits that reference the content removed in earlier
  commits
- Other minor copyediting
2019-11-01 14:56:30 -07:00
Brent Royal-Gordon
17169fc1fe Merge pull request #27950 from brentdax/dumpster-fire
[NFC] Standardize dump() methods in frontend
2019-10-31 20:36:26 -07:00
Brent Royal-Gordon
99faa033fc [NFC] Standardize dump() methods in frontend
By convention, most structs and classes in the Swift compiler include a `dump()` method which prints debugging information. This method is meant to be called only from the debugger, but this means they’re often unused and may be eliminated from optimized binaries. On the other hand, some parts of the compiler call `dump()` methods directly despite them being intended as a pure debugging aid. clang supports attributes which can be used to avoid these problems, but they’re used very inconsistently across the compiler.

This commit adds `SWIFT_DEBUG_DUMP` and `SWIFT_DEBUG_DUMPER(<name>(<params>))` macros to declare `dump()` methods with the appropriate set of attributes and adopts this macro throughout the frontend. It does not pervasively adopt this macro in SILGen, SILOptimizer, or IRGen; these components use `dump()` methods in a different way where they’re frequently called from debugging code. Nor does it adopt it in runtime components like swiftRuntime and swiftReflection, because I’m a bit worried about size.

Despite the large number of files and lines affected, this change is NFC.
2019-10-31 18:37:42 -07:00
Saleem Abdulrasool
c028475065 Update WindowsBuild.md
Correct paths for one-time setup
2019-10-31 15:51:37 -07:00
Saleem Abdulrasool
b4b4b9f9ef Update WindowsBuild.md
Further improvements to the text and simplifications to the directions for building on Windows.
2019-10-30 16:35:06 -07:00
Saleem Abdulrasool
8afd60c97c Merge pull request #27958 from apple/compnerd-windows-instructions
Update WindowsBuild.md
2019-10-30 12:20:12 -07:00
Dan Zheng
07880d168f [Docs] Differentiable programming manifesto. (#27034) 2019-10-30 12:14:23 -07:00
Saleem Abdulrasool
5f50f67254 Update WindowsBuild.md
- remove numbers on steps, they get out of sync and auto-numbering headers doesn't work
- correct some header titles
- re-render the tree to be ascii pretty
- split out "one-time setup" from "getting started"
- fix invocation of cmake for toolchain
- fix libdispatch build rules
- convert libdispatch build rules to be copy-paste friendly
- add libdispatch test instructions
2019-10-30 09:04:13 -07:00
Jordan Rose
312fefccc5 Merge pull request #27889 from jrose-apple/fire-water-air-metal-earth
[docs] CToSwift: Add section on methods
2019-10-29 16:58:49 -07:00
Jordan Rose
0b6d0be873 [docs] LibraryEvolution: Property wrappers, @dynamicCallable...
...and function builders, even though those haven't formally been
accepted to the language yet. (This description of property wrappers
is also a bit optimistic; at the time of this writing, they haven't
been implemented for top-level variables yet.)
2019-10-29 15:16:07 -07:00
Jordan Rose
96f99d2fb2 [docs] LibraryEvolution: Bring the per-decl restrictions up to date
And replace the term "versioned" with "ABI-public".
2019-10-29 15:16:07 -07:00