Commit Graph

4421 Commits

Author SHA1 Message Date
Saleem Abdulrasool
083e2d5329 Merge pull request #38526 from apple/compnerd/foundation-libxml2-flags
Update WindowsBuild.md
2021-07-21 09:28:56 -07:00
Min-Yih Hsu
377bdfaf12 [SIL][DebugInfo][Patch 1/2] Initial SIL DIExpression support
Currently the debug info infrastructure inside SIL can only associate a
source variable with a single (simple) SSA value. Which is insufficient
to preserve (correct) debug info across SIL-level optimizations -- for
example, SROA that decompose or even eliminate aggregate-type obejcts.

By adding DIExpression into SIL, we are able to reconstruct the
connection between a source variable and its SSA value counterpart, even
across optimizations. This patch adds such support into in-memory
representation for SIL instructions and the SILParser/Printer. The
following patch will add changes for the IRGen part.
2021-07-21 09:26:45 -07:00
Saleem Abdulrasool
fb0ceeffc6 Update WindowsBuild.md
When building against released libxml2 versions from upstream, we need to explicitly specify the static flag.  This should help make the builds reproducible by others.
2021-07-20 16:45:15 -07:00
John McCall
b9ce658b69 Mark new file as an orphan 2021-07-20 17:00:52 -04:00
Saleem Abdulrasool
08a5c95654 Merge pull request #38449 from apple/compnerd/vs-bootstrapper
Update WindowsBuild.md
2021-07-19 21:03:01 -07:00
Alastair Houghton
2dab086b1b [Docs] Added a calling convention summary document.
Added a summary of x86-64 and ARM64 calling conventions, with links.
2021-07-19 09:50:21 +01:00
Saleem Abdulrasool
fb9c585812 Update WindowsBuild.md
Be more explicit about the Visual Studio installer bootstrapper.  This was pointed out as being unclear by @slavapestov.
2021-07-16 15:15:33 -07:00
zoecarver
a13c57c360 Bump CMake version to 3.19.6.
Updates the CMake version for Swift and the Swift Benchmarks to 3.19.6.
Updates the docs to reflect this change. Does not modify the required version for building the stdlib.
2021-07-12 08:57:35 -07:00
swift-ci
c35330eb66 Merge pull request #38296 from varungandhi-apple/vg-doc-availability-limitations 2021-07-07 17:59:10 -07:00
Varun Gandhi
aa59101926 [docs] Note library evolution limitations around availability.
In https://github.com/apple/swift/pull/36327, trying to compile
library code where a struct has an unavailable stored property
or an enum with an unavailable case with associated values was made
into a hard error. Update the docs to reflect this limitation
for library authors shipping new versions of dylibs to older OSes.
2021-07-07 14:34:24 -07:00
Mishal Shah
843739f926 Update the Linux dependencies (#38170) 2021-07-05 23:30:23 -07:00
Ikko Ashimine
6105452b9a [docs] Fix typo in DebuggingTheCompiler.md
preceeding -> preceding
2021-07-02 18:26:45 +09:00
Min-Yih Hsu
d00a6cc0e3 [SIL][Frontend] Simplify debug info generation flow for SIL files
- If any of the `-g<kind>` flag is given -- except `-gnone`, debug
   info will be printed into every generated SIL files.
 - The `-gsil` is deprecated in favor of `-sil-based-debuginfo`. The
   SILDebugInfoGenerator Pass now generates intermediate SIL file with
   name "<output file>.sil_dbg_<n>.sil". Other functionalities of that
   Pass remain the same.
2021-06-30 17:21:58 -07:00
Anthony Latsis
6d7c4e5fdf Merge pull request #35849 from AnthonyLatsis/fix-debug-cycles 2021-06-25 05:32:09 +03:00
Saleem Abdulrasool
deaf33b236 Merge pull request #38080 from apple/compnerd/dispatch-location
Update WindowsBuild.md
2021-06-24 14:15:41 -07:00
Konrad `ktoso` Malawski
eada7df0e4 Ban classes from extending Actor and DistributedActor protocol explicitly (#38050)
* [Concurrency,Distributed] ban inheriting Actor and DistActor explicitly by class

* [Distributed] AnyActor can be a marker protocol
2021-06-25 06:06:35 +09:00
Saleem Abdulrasool
f50e9804dd Update WindowsBuild.md
Update the path setting for the new location of libdispatch builds.
2021-06-24 08:41:21 -07:00
Alastair Houghton
e547c06717 Merge pull request #38003 from al45tair/old-mangling
[Docs] Added OldMangling.rst (a copy of part of the old ABI.rst)
2021-06-24 13:10:14 +01:00
Butta
c673023f94 [docs] Add basic build-script command for Linux and corelibs flag 2021-06-24 04:30:57 +05:30
Alastair Houghton
f9d93adf6d [Docs] Added OldMangling.rst (a copy of part of the old ABI.rst)
We still have code that generates the old mangling (in OldRemangler.cpp), so we
could really do with keeping the documentation for the old mangling scheme
around, at least for now.  To that end, I've fetched ABI.rst as at 76820edda9,
removed things not relating to mangling and moved it to ABI/OldMangling.rst.
2021-06-23 09:24:55 +01:00
Saleem Abdulrasool
671d6e380e Update WindowsBuild.md
Add a note about reducing parallel link operations for memory exhaustion when building.  Thanks to @BradLarson for pointing out that this may be something that may not be obvious to all users.
2021-06-17 17:39:00 -07:00
swift-ci
92580800e2 Merge pull request #35949 from fwcd/android-lib-path 2021-06-13 13:22:58 -07:00
swift-ci
38a8b008bc Merge pull request #37857 from 3405691582/FixImplicitImport 2021-06-12 19:02:08 -07:00
3405691582
b708ed5f45 Fix broken implicit import conditional rename.
In #37686 `SWIFT_IMPLICIT_CONCURRENCY_IMPORT` was introduced alongside
the existing `SWIFT_ENABLE_EXPERIMENTAL_CONCURRENCY`, but the
`#cmakedefine` for this preprocessor symbol was renamed to the former
instead of a new `#cmakedefine` being introduced.

This means the `#ifdef` conditional referred in this commit was broken.
Instead of just introducing the old symbol back again, let's rename it
as it probably was intended here.

However, the semantics of this symbol is slightly different: this now
requires prospective builders to explicitly turn this off on platforms
where Dispatch is unavailable. To address this, the docs are updated to
match. Caveat: I have not ran the procedure in the doc recently, but
this hopefully should suffice to guide the reader until I get around to
doing so.
2021-06-09 22:43:13 -04:00
Doug Gregor
58f49692ed Add mangling, metadata, and reflection support for "isolated" parameters.
Isolated parameters are part of function types. Encode them in function
type manglings and metadata, and ensure that they round-trip through
the various mangling and metadata facilities. This nails down the ABI
for isolated parameters.
2021-06-08 00:00:11 -07:00
swift-ci
8254e6cb84 Merge pull request #36750 from apple/owenv-man-page-fix 2021-06-06 13:12:40 -07:00
Doug Gregor
b814e225dd Implement (de-)mangling and type metadata for global actor function types.
Implement name mangling, type metadata, runtime demangling, etc. for
global-actor qualified function types. Ensure that the manglings
round-trip through the various subsystems.

Implements rdar://78269642.
2021-06-02 23:34:22 -07:00
Doug Gregor
b57a73ab42 [Concurrency ABI] Add standard substitutions for _Concurrency types.
Introduce a second level of standard substitutions to the mangling,
all of the form `Sc<character>`, and use it to provide standard
substitutions for most of the _Concurrency types.

This is a precursor to rdar://78269642 and a good mangling-size
optimization in its own right.
2021-06-01 17:15:02 -07:00
Holly Borla
e50010de61 Merge pull request #36783 from filip-sakel/filip-sakel-SE0293-gardening
[SE-0293] Update Library-Evolution Documentation
2021-06-01 13:53:39 -07:00
filip-sakel
b02dc12093 Remove unnecessary code examples. 2021-05-31 01:13:01 +03:00
Joe Groff
109d6c5beb Merge pull request #37584 from jckarter/actor-to-async-closure-conversion
Allow conversions from actor-bound sync function type to unbound async function type.
2021-05-24 11:49:08 -07:00
Joe Groff
92f56e7ec8 Allow conversions from actor-bound sync function type to unbound async function type.
For `async` function types, an actor constraint can be enforced by the callee by hopping executors,
unlike with `sync` functions, so doesn't need to influence the outward type of the function.

rdar://76248452
2021-05-21 14:17:50 -07:00
Robert Widmann
4fc7fc319e Merge pull request #37439 from apple/AnthonyLatsis-patch-1
Lexicon: Split "existential" into two terms for clarity
2021-05-21 13:55:12 -07:00
Ben Rimmington
8a41c59dd8 [docs] Update SwiftLocalRefactoring.md (#37475) 2021-05-18 14:00:40 +01:00
Ben Rimmington
0e2e11d1d2 [docs] Update Testing.md (#37399) 2021-05-17 19:42:52 +01:00
Anthony Latsis
62fa76fa5f Lexicon: Split "existential" into two terms for clarity 2021-05-15 04:20:56 +03:00
Artem Chikin
6f44ba4ff1 Merge pull request #37122 from artemcm/BringBackNewDriver
Revert "Merge pull request #37114 from apple/revert-36377-NewDriverDefault"
2021-05-07 09:42:38 -07:00
filip-sakel
91180a74f3 Merge branch 'main' into filip-sakel-SE0293-gardening 2021-05-07 02:34:08 +03:00
filip-sakel
f7aecbbe10 Simplify property-wrapper-attribute argument rules 2021-05-07 02:21:11 +03:00
Max Desiatov
65fa3742a7 docs: convert weak.rst document to Markdown (#37259)
Converts one of the doc files from reStructuredText to Markdown.

Continues work on SR-7454.
2021-05-05 11:54:48 +01:00
Max Desiatov
0f1d5e872e docs: convert AccessControl.rst to Markdown (#37217)
Converts one of the doc files from reStructuredText to Markdown.

Continues work on SR-7454.
2021-05-04 17:00:31 +01:00
Mishal Shah
54fea46059 Update the CI Docs for validation testing 2021-05-03 18:23:13 -07:00
Mishal Shah
0b483d447d Update the docs for CI testing
We no longer run tvOS simulator part of validation test (@swift-ci Please test) to reduce time.
2021-05-03 18:21:59 -07:00
filip-sakel
92caac34e5 Update examples for wrapper arguments. 2021-04-30 14:06:43 +03:00
filip-sakel
be7d761c81 Show that PP arguments change API significance. 2021-04-30 14:03:03 +03:00
filip-sakel
e560deda83 Typo fix. 2021-04-30 13:21:35 +03:00
filip-sakel
523bb7c91c Mark adding/removing PP arguments as ABI-breaking. 2021-04-30 13:18:22 +03:00
Artem Chikin
ae2e856f9b Revert "Merge pull request #37114 from apple/revert-36377-NewDriverDefault"
This reverts commit 937e1a365c, reversing
changes made to a5440a8abd.
2021-04-28 15:11:36 -07:00
Artem Chikin
1e44ed00eb Revert "Always build SwiftDriver and use it as default compiler driver" 2021-04-28 11:20:21 -07:00
filip-sakel
df048e38a5 Add property-wrapper examples. 2021-04-28 16:00:42 +03:00