Commit Graph

4421 Commits

Author SHA1 Message Date
Slava Pestov
e809fbd11d Draft proposal for out-of-process heap object introspection
Swift SVN r31938
2015-09-14 21:53:01 +00:00
Jordan Rose
feef4be2e4 [docs] Remove CInteroperability.rst.
It has one piece of advice in it and I'm not even sure that advice is correct.

Swift SVN r31859
2015-09-10 21:15:30 +00:00
Jordan Rose
255d58431a [docs] Modernize the Access Control doc.
- Add a note about protocol extension members being used for conformances.
- Phrase in present tense.
- Remove references to "Swift 1.0".
- Replace "accessibility" with "access level". "Accessibility" has another
  meaning for app developers, so we avoid the term now in the compiler.
- 'required' and 'final' are now modifiers.
- 'internal' declarations don't show up in generated headers for frameworks.
- Remove the section on unit tests. We now have @testable.
- Remove the section on transparent functions, which isn't fully designed.

Swift SVN r31858
2015-09-10 21:15:30 +00:00
Jordan Rose
aab9094c94 [docs] Reflow Access Control document for 80 columns.
No textual changes.

Swift SVN r31857
2015-09-10 21:15:27 +00:00
Ted Kremenek
8741999517 Update Swift version for docs to 2.1
Swift SVN r31853
2015-09-10 06:41:30 +00:00
Slava Pestov
06b89dbc9c Fix typos
Swift SVN r31689
2015-09-04 02:08:57 +00:00
Slava Pestov
977a0876f2 Documentation pages still had "Swift 1.0" in the title
Swift SVN r31688
2015-09-04 02:08:56 +00:00
Slava Pestov
f12ccd584d Proposal for @c attribute on function, struct and enum declarations
Swift SVN r31687
2015-09-04 01:50:07 +00:00
Jordan Rose
7e452c0c44 [docs] Bring the Driver docs reasonably up to date.
Swift SVN r31566
2015-08-29 01:31:19 +00:00
Joe Groff
43d620c7e0 IRGen: Export direct metadata symbols at the address point of the metadata object.
This is more resilient, since we want to be able to add more information behind the address point of type objects. The start of the metadata object is now an internal "full metadata" symbol.

Note that we can't do this for known opaque metadata from the C++ runtime, since clang doesn't have a good way to emit offset symbol aliases, so for non-nominal metadata objects we still emit an adjustment inline. We also aren't able to generate references to aliases within the same module due to an MC bug with alias refs on i386 and armv7 (rdar://problem/22450593).

Swift SVN r31523
2015-08-27 05:18:38 +00:00
Joe Groff
f705c561e3 Revert "IRGen: Export direct metadata symbols at the address point of the metadata object."
This reverts commit r31515. It causes an LLVM error on the release bots.

Swift SVN r31516
2015-08-27 01:44:56 +00:00
Joe Groff
8e2ce60f5b IRGen: Export direct metadata symbols at the address point of the metadata object.
This is more resilient, since we want to be able to add more information behind the address point of type objects, and also makes IR a lot less cluttered. The start of the metadata object is now an internal "full metadata" symbol.

Note that we can't do this for known opaque metadata from the C++ runtime, since clang doesn't have a good way to emit offset symbol aliases, so for non-nominal metadata objects we still emit an adjustment inline.

Swift SVN r31515
2015-08-27 01:34:22 +00:00
Erik Eckstein
2f2c7d571d Verify that a SILFunction has not multiple throw instructions.
...and document it.



Swift SVN r31351
2015-08-19 21:47:09 +00:00
Erik Eckstein
33d7324161 Removed/changed some outdated info in the Arrays.rst document.
Swift SVN r31317
2015-08-18 23:23:43 +00:00
Erik Eckstein
4306502d0f Update graphics in array doc.
The new graphics reflects the current implementation of Array.
(I added the .graffle file long time ago, but it was never referenced from the rst file).



Swift SVN r31311
2015-08-18 22:02:19 +00:00
Joe Groff
2111b6bea8 WIP proposal for addressing heterogeneous comparison in the stdlib
I plan to send this out for comment once DaveA is back and we have bandwidth to think about it. Nothing to see here for now.

Swift SVN r31305
2015-08-18 19:09:14 +00:00
Doug Gregor
447b9094d3 Fix a few ReST issues.
Swift SVN r31304
2015-08-18 19:06:53 +00:00
Doug Gregor
e78b3dd44e Proposed new architecture for the declaration type checker.
Swift SVN r31296
2015-08-18 17:57:34 +00:00
Ben Langmuir
b38067ba97 Revert "Teach SILPrinter/Parser how to parse the conformances associated with an init_existential_metatype."
This broke some validation tests.

This reverts commit r31277.

Swift SVN r31282
2015-08-17 23:55:07 +00:00
Michael Gottesman
b1f336b0cf Teach SILPrinter/Parser how to parse the conformances associated with an init_existential_metatype.
Now we can IRGen Richards.sil produced via a *.sib file.

rdar://22302277

Swift SVN r31277
2015-08-17 21:05:53 +00:00
Joe Groff
17dbf6f4aa Mark proposal as :orphan:
Swift SVN r31269
2015-08-17 17:54:45 +00:00
Joe Groff
7e4d792c66 Proposal for revamping enum style
Swift SVN r31266
2015-08-17 17:13:25 +00:00
Mark Lacey
91f51cd683 Minor tweak to referenced filename.
Swift SVN r31193
2015-08-12 22:15:32 +00:00
Erik Eckstein
388bc31ba7 Add a nothrow flag to the SIL apply_inst.
If the compiler can prove that a throwing function actually does not throw it can
replace a try_apply with an "apply [nothrow]". Such an apply_inst calls a function
with an error result but does not have the overhead of checking for the error case.

Currently this flag is not set, yet.



Swift SVN r31151
2015-08-12 00:18:36 +00:00
Michael Gottesman
40dd888e59 [docs] Fix up formatting so that we use "::" and so that we follow the flow of the document better.
Swift SVN r31124
2015-08-10 21:05:03 +00:00
Michael Gottesman
5fd76f137e [docs] Fix indentation to make sphinx happy (even though it won't match lldb exactly anymore).
Swift SVN r31123
2015-08-10 20:56:49 +00:00
Michael Gottesman
a2bcc33576 [docs] Wordsmith a little bit to make things clearer.
Swift SVN r31122
2015-08-10 20:46:21 +00:00
Michael Gottesman
3c930a4972 [docs] Move sections about LLDB usage under Advanced LLDB Usage.
This includes:

1. Using Breakpoints.
2. LLDB Scripts.
3. Determining Mangled Names.

Swift SVN r31121
2015-08-10 20:42:06 +00:00
Michael Gottesman
b92811d44f [docs] Show how to lookup the mangled name of a demangled swift function name in lldb.
Swift SVN r31118
2015-08-10 20:39:12 +00:00
Michael Gottesman
66b571c738 [docs] Change the phrase "vended ... as needed" to the more precise "lazily created ... as required".
Swift SVN r31117
2015-08-10 20:19:42 +00:00
Michael Gottesman
84252dc759 [docs] Add a section to DebuggingTheCompiler that shows how to use the '-s' command to lldb to script complex debugger workflows quickly and easily.
The example given is something that I actually used recently.

Swift SVN r31116
2015-08-10 20:19:41 +00:00
Michael Gottesman
2f91bf26bd [docs] Add the large ignore count technique to the breakpoint part of DebuggingTheCompiler.
Swift SVN r31115
2015-08-10 20:19:40 +00:00
Dave Abrahams
c358f8ee4b [stdlib] Tiny doc fixup
Swift SVN r31049
2015-08-06 15:43:03 +00:00
Michael Gottesman
c197c627ad Add some missing instructions to SIL.rst and order it more along the lines of SILNodes.def.
Swift SVN r31007
2015-08-04 21:12:59 +00:00
Dmitri Hrybenko
3a73be8b40 stdlib: add a rationale for the design of removeFirst() and removeLast()
Swift SVN r30963
2015-08-03 22:19:14 +00:00
Dmitri Hrybenko
4ed449773c Updates to the index invalidation rules: indices are composites of offsets
Swift SVN r30705
2015-07-27 23:18:27 +00:00
Arnold Schwaighofer
5d989c9b98 HighLevelSILOptimizations.rst: change Slice<T> to ArraySlice<T>
Swift SVN r30592
2015-07-24 21:12:33 +00:00
Arnold Schwaighofer
5b7ba8dfb0 HighLevelSILOptimizations docs: Clarify the semantics of check_subscript/get_count
Slices aren't (will not be) zero based instead define check_subscript's
semantics in terms of startIndex/endIndex.

Swift SVN r30591
2015-07-24 20:55:01 +00:00
Dmitri Hrybenko
0c89428575 Document more index invalidation rules
- Documented guarantees for slices.
- Added a special guarantee for MutableCollection.subscript(_: Index).

Swift SVN r30535
2015-07-23 08:33:34 +00:00
Chris Lattner
0001dc27bb remove support for the experiemental "character literals" feature.
Swift SVN r30509
2015-07-22 22:35:19 +00:00
Jordan Rose
2a2d25a68a [docs] Add a fair amount of description of the intra-module dependency system.
Swift SVN r30289
2015-07-16 23:36:36 +00:00
Erik Eckstein
b0bcad7887 Add a utility script for displaying the CFG of SIL or LLVM IR.
It is useful if you have the SIL already in a file (instead of calling viewCFG() while running the compiler in lldb).

Especially useful for vim users: see the comment in the script on how to add commands to view the CFG from inside vim.




Swift SVN r30186
2015-07-14 16:22:52 +00:00
Dmitri Hrybenko
6f797f54bc docs: rename Slice -> ArraySlice
Swift SVN r29885
2015-07-02 05:18:24 +00:00
Mark Lacey
7b8ed86672 Address some feedback on the WMO document.
Thanks to Flash for the feedback!

Swift SVN r29850
2015-07-01 20:07:41 +00:00
David Farler
dd44dad017 Add 'throws' keyword to doc comments
Adding the following to a doc comment:

- throws: ...

Will create a description about what/when the function will throw.
This should be a peer to "- returns:" and "- parameter:" and not appear
inline in the description.

rdar://problem/21621679

Swift SVN r29831
2015-07-01 02:03:25 +00:00
Mark Lacey
1ad05c01e3 Add a write-up of future work for whole module optimization.
Swift SVN r29806
2015-06-30 20:12:46 +00:00
Joe Groff
767e1ff6b3 Update SIL.rst to discuss @box types.
Swift SVN r29773
2015-06-28 17:36:30 +00:00
Mark Lacey
65edf255ba Fix typo in optimization tips document.
Swift SVN r29758
2015-06-27 04:42:23 +00:00
Dmitri Hrybenko
c83fcf0570 Rename GeneratorOf and SequenceOf in the docs
Swift SVN r29631
2015-06-24 20:41:59 +00:00
Andrew Trick
a32a0af02b Allow unchecked_trivial_bit_cast to cast to smaller types.
I'm sure this is totally safe, why wouldn't it be?

Fixes <rdar://problem/21095584> Swift: UnsafePointer on tuple works in
debug but compiles crashing binary in release

Swift SVN r29614
2015-06-24 20:25:15 +00:00