Commit Graph

2345 Commits

Author SHA1 Message Date
Michael Gottesman
6a6efd9f4e Merge pull request #11463 from KingOfBrian/documentation/DeveloperOnboarding
Update README.md
2017-08-21 14:00:33 -07:00
Andrew Trick
5aac427ee0 SIL Ownership: Remove consumptionKind from SIL unconditional cast and related logic.
Remove the cast consumption kind from all unconditional casts. It
doesn't make sense for unconditional casts, complicates SIL ownership,
and wasn't fully supported for all variants. Copies should be
explicit.
2017-08-18 20:44:54 -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
ematejska
a7b27a5071 Merge pull request #11507 from ematejska/update_version_to_4_1
Updating compiler versions (4.1, 3.3, able to do swift-version 5)
2017-08-18 17:48:20 -07:00
Ewa Matejska
1272cd3aac Making master call itself 4.1, updating the swift 3 compatiblity mode to be 3.3 (from 3.2), adding ability to pass swift-version 5. Importer work not done yet. 2017-08-17 20:57:01 -07:00
Brian King
28de02ea8b Remove day-to-day language. 2017-08-17 20:39:43 -04:00
Deyton Sehn
b7d9eac792 [Docs] Note that commit access is required to trigger CI
I couldn't find this documented anywhere else.
2017-08-16 15:31:07 -07:00
Brian King
49bb53a0e3 Change from SWIFT_BUILD_ROOT to SWIFT_BUILD_DIR in examples. SWIFT_BUILD_ROOT means something else in the build script. 2017-08-15 20:31:32 -04:00
Brian King
797c0939f2 Emphasize lit testing 2017-08-14 19:37:45 -04:00
Brian King
22fc53c660 Move note on writing long tests into the section on writing tests 2017-08-14 19:26:46 -04:00
Amr Aboelela
fbdc597c50 [docs] Update Android instructions for icu. (#11404)
You will also need to push the icu libraries, to be able to run the "Hello Android" application, in Android devices.
2017-08-11 15:32:19 -07:00
George Karpenkov
efe143c2f4 Adding support for -sanitize=fuzzer flag (#11381)
Similarly to Clang, the flag enables coverage instrumentation, and links
`libLLVMFuzzer.a` to the produced binary.
Additionally, this change affects the driver logic, and enables the
concurrent usage of multiple sanitizers.
2017-08-07 18:16:51 -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
swift-ci
14b4dd08f8 Merge pull request #11302 from jckarter/key-path-abi-doc 2017-08-01 16:58:46 -07:00
Joe Groff
548aab55d0 Add document describing layout of KeyPath objects. 2017-08-01 16:13:39 -07:00
Robert Widmann
ca7b141b30 [Gardening] Remove one last dangling link 2017-07-31 17:46:36 -07:00
Joe Groff
26a9eed2c5 ABI/TypeMetadata.rst: Remove dangling link 2017-07-31 16:22:19 -07:00
Joe Groff
7c71b3263f Break docs/ABI.rst into a subdirectory of documents.
There's a lot of information here for one document, so I think another layer of organization is warranted. This commit only breaks up the existing content by heading, it does not update or otherwise change any content.
2017-07-31 11:26:41 -07:00
Ted Kremenek
fa2f2bd457 Add header for priorities for ABI stability. 2017-07-28 09:36:27 -07:00
Ted Kremenek
22ce7c706e Minor formatting tweaks to call out important terms more. 2017-07-28 09:17:05 -07:00
Jordan Rose
d23a85e942 [docs] Mention update-checkout in Branches.md. (#11169) 2017-07-25 11:33:47 -07:00
Robert Widmann
4babbe95e1 Push __shared into the mangling and down thru to codegen
This does not lower to @guaranteed as of yet.
2017-07-23 21:47:25 -07:00
Jordan Rose
cc1a0ed4cb [docs] Branches.md: If you commit at llvm.org, you should cherry-pick. 2017-07-21 19:12:25 -07:00
Jordan Rose
de1cab803e [docs] Describe the Swift, LLVM, and LLDB branch structure. 2017-07-20 19:51:46 -07:00
Andrew Trick
4db2a46cff Add SIL instruction: open_existential_box_value.
This has the same semantics as open_existential_box, but returns an object value
instead of an address.

This is used in SIL opaque values mode. Attempting to reuse open_existential_box
in this mode causes SIL type inconsistencies that are too difficult to work
around. Adding this instruction allows for consistent handling of opaque values.

The original versions of several of these currently redundant instructions will
be removed once the SIL representation stabilizes.
2017-07-17 23:46:41 -07:00
Andrew Trick
f657ad2d3a Rename *ExistentialOpaque instructions to *ExistentialValue.
These instructions have the same semantics as the *ExistentialAddr instructions
but operate directly on the existential value, not its address.

This is in preparation for adding ExistentialBoxValue instructions.
The previous name would cause impossible confusion with "opaque existentials"
and "opaque existential boxes".
2017-07-17 23:46:41 -07:00
swift-ci
40a403ddd2 Merge pull request #10743 from gottesmm/viewcfg_docs 2017-07-17 11:52:19 -07:00
Michael Gottesman
e5dc0d1128 [docs] Use `` around @noescape and @autoclosure like we do in other places in SIL.rst. 2017-07-10 10:36:09 -07:00
Andrew Trick
0236c985c3 Document @swift-ci smoke benchmark. 2017-07-05 13:14:17 -07:00
Michael Gottesman
2289e5c509 [gardening] Convert Testing.rst to markdown and rename to Testing.md 2017-07-04 23:33:04 -07:00
Michael Gottesman
25b25bbc85 [docs] Add some useful lit commandline flags to the Testing documentation. 2017-07-04 21:54:55 -07:00
Michael Gottesman
50f0accf39 [viewcfg] Reformulate, expand the docs on viewcfg.
Specifically, I tried to make it clearer that viewcfg does not rely on any type
information or declarations (i.e. it can dump raw textual CFGs). This also means
that it can be used in an editor to dump CFGs at your cursor?!

Thanks Erik for showing me this!
2017-06-30 22:03:27 -07:00
swift-ci
6bf18eaece Merge pull request #10241 from contraultra/SR-3281 2017-06-27 12:04:23 -07:00
contraultra
c3c53e4ebc [SR-3281] Update swift man page
For future reference, please refer to the following man pages:

- PERLDOC(1)
- PERLPODSPEC(1)
- PODCHECKER(1)
2017-06-27 10:54:47 -07:00
Arnold Schwaighofer
48e889b51b IRGen: EmptyBoxType's representation cannot be nil because of a conflict with extra inhabitant assumption in indirect enums (#10326)
* IRGen: EmptyBoxType's representation cannot be nil because of a conflict with extra inhabitant assumption in indirect enums

We map nil to the .None case of Optional. Instead use a singleton object.

SR-5148
rdar://32618580
2017-06-17 09:33:41 -07:00
Jordan Rose
2bd5295f3f [docs] Add "build czar" to Lexicon.rst. 2017-06-16 10:08:26 -07:00
Jordan Rose
813eacd026 [docs] Add a document concerning Swift diagnostics style. (#10138)
A handful of people have recently asked me if such a thing existed;
now it does. There's certainly more that can be added here, but I
wanted to dump a bunch of the information in my brain into doc form.
2017-06-08 07:40:36 -07:00
Robert Widmann
6509f78f13 tests: replace remaining 'mkdir -p' calls with %empty-directory(...)'
These changes were made manually.
2017-06-04 11:08:39 -07:00
Dmitri Gribenko
d54e5b2326 lit.cfg: add a new substitution '%empty-directory(directory-name)' 2017-06-04 11:08:39 -07:00
Roman Levenstein
956c556cb6 [docs] Add the description of @_semantics("optimize.sil.specialize.generic.partial.never") and the new @_specialized syntax 2017-06-03 11:15:21 -07:00
Dave Abrahams
8e1c7bde19 Revert "[docs] Add the description of @_semantics("optimize.sil.specialize.generic.partial.never") and the new @_specialized syntax" 2017-06-02 13:41:36 -07:00
Roman Levenstein
99077692ea [docs] Add the description of @_semantics("optimize.sil.specialize.generic.partial.never") and the new @_specialized syntax 2017-06-02 12:21:08 -07:00
Jordan Rose
c1c4f5243b [Mangling] Include private discriminators in constructor manglings. (#9880)
Previously, two constructors with the same full name and argument
types would get identical manglings even if they were declared
'private' or 'fileprivate' in different files. This would lead to
symbol collisions in whole-module builds. Add a new mangling node for
private discriminators on base-name-less decls to make this unique.

This still doesn't fix the existing issue with private members, named
or not, conflicting when they're in the /same/ file, but since Swift 4
makes those members visible to one another (SE-0169) that's only an
issue in Swift 3 mode anyway, and as such probably won't get fixed at
all.

rdar://problem/27758199
2017-06-01 16:42:17 -07:00
Pavol Vaskovic
68199f24d5 Document the added lit substitution swift_src_root
`%swift_src_root`: absolute path to the directory where the Swift source code is stored.
2017-05-31 16:27:49 +02:00
Robert Widmann
9f0b2c7da4 Update latex_paper_size to latex_elements.papersize 2017-05-30 13:19:31 -07:00