Commit Graph

4421 Commits

Author SHA1 Message Date
Yuta Saito
9fd1baf666 docs/WebAssembly.md: Add instructions for building Swift SDK for WebAssembly
Also update the notes on the relative pointers in WebAssembly to
reflect the current implementation.
2024-09-17 12:28:03 +00:00
Konrad `ktoso` Malawski
7d1ce789ad Revert "Revert "Isolated synchronous deinit"" 2024-09-17 17:35:38 +09:00
Becca Royal-Gordon
6aa5afe813 Cover -verify-additional-prefix in docs/Diagnostics.md
This handy feature was added in #68195.
2024-09-13 16:25:12 -07:00
Kuba (Brecka) Mracek
510a5b2901 [embedded] Clarify (missing) support for parameter packs 2024-09-11 22:58:14 -07:00
Meghana Gupta
a7518ac3d9 Merge pull request #76255 from meg-gupta/disablemangling
Delete lifetime dependence mangling
2024-09-09 19:59:16 -07:00
Ellis Hoag
20bca94b6f [docs] Fix links to dockerfiles
It seems that the `master/` directory in these paths have been renamed to `main`.
2024-09-06 15:58:26 -07:00
Meghana Gupta
10057523ec Delete lifetime dependence mangling
Mangling this information for future directions like component lifetimes
becomes complex and the current mangling scheme isn't scalable anyway.

Deleting this support for now.
2024-09-05 22:03:58 -07:00
Alejandro Alonso
e0f2b812e8 Add serialization and parser tests for SIL 2024-09-04 15:13:47 -07:00
Alejandro Alonso
f4f60f4344 Remove Value requirement Add GenericTypeParamKind 2024-09-04 15:13:43 -07:00
Alejandro Alonso
f66beffb80 Fix unittest compile error 2024-09-04 15:13:29 -07:00
Alejandro Alonso
75c2cbf593 Implement value generics
Some requirement machine work

Rename requirement to Value

Rename more things to Value

Fix integer checking for requirement

some docs and parser changes

Minor fixes
2024-09-04 15:13:25 -07:00
Alex Hoppen
c5aa49ba64 Revert "Isolated synchronous deinit" 2024-09-03 18:11:26 -07:00
Konrad `ktoso` Malawski
c55ad6fa88 Merge branch 'main' into mpokhylets/isolated-deinit 2024-09-02 23:16:17 +09:00
Valeriy Van
f4fe6da5ce Minor punctuation fix 2024-08-31 11:12:24 +02:00
Slava Pestov
b769332c56 docs: Update generics.tex 2024-08-30 15:58:01 -04:00
Allan Shortlidge
8502c89234 SIL: Print thunk kind attribute for @backDeployed thunks.
As promised in the FIXME, update the SIL printer and parser to handle the new
thunk kind for `@backDeployed` thunks.

Follow up to https://github.com/swiftlang/swift/pull/76135.
2024-08-29 17:26:06 -07:00
Mykola Pokhylets
e0ad7bde82 Merge branch 'main' into mpokhylets/isolated-deinit
# Conflicts:
#	include/swift/Basic/Features.def
#	lib/AST/ASTPrinter.cpp
#	lib/AST/FeatureSet.cpp
2024-08-29 11:28:43 +02:00
LamTrinh.Dev
2cd4b6973a Update wording from commandline to command line (#76121) 2024-08-28 08:39:01 -07:00
Erik Eckstein
c8e74b8393 Generic specialization: change the mangling for dropped metatype arguments
Instead of adding a "flag" (`m` in `...Tgm5`) make it more generic to allow to drop any unused argument.
Add all dropped arguments with a `t<n-1>` (where `<n-1>` is empty for n === 0). For example `...Ttt2g5`.
2024-08-26 10:43:15 +02:00
Andrew Trick
b8b0d9e740 Typo in SIL.rst: Lifetime of Enums in Memory 2024-08-19 17:46:30 -07:00
Alex Hoppen
514f7bc92d Merge pull request #75793 from ahoppen/no-editor-mode
Remove `DiagnosticsEditorMode`
2024-08-16 21:25:54 -07:00
Mykola Pokhylets
50b1313175 Merge branch 'main' into mpokhylets/isolated-deinit
# Conflicts:
#	lib/SILGen/SILGenDistributed.cpp
#	lib/Sema/TypeCheckConcurrency.cpp
2024-08-15 16:58:43 +02:00
Michael Gottesman
5bd179e5ee [docs] Move LSANFailureSymbolication information to DebuggingTheCompiler.md instead of having its own document.
This information is generally centralized in DebuggingTheCompiler.md to make it
easier to find.
2024-08-14 14:38:40 -07:00
Alex Hoppen
577727ad55 Remove DiagnosticsEditorMode
Migrate the last diagnostic to be independent of `DiagnosticEditorMode` and remove that option.

rdar://133111163
2024-08-14 11:24:31 -07:00
Andrew Savonichev
5aa9d3e29b Add partial_apply support for coroutines (#71653)
The patch adds lowering of partial_apply instructions for coroutines.

This pattern seems to trigger a lot of type mismatch errors in IRGen, because
coroutine functions are not substituted in the same way as regular functions
(see the patch 07f03bd2 "Use pattern substitutions to consistently abstract
yields" for more details). 

Other than that, lowering of partial_apply for coroutines is straightforward: we
generate another coroutine that captures arguments passed to the partial_apply
instructions. It calls the original coroutine for yields (first return) and
yields the resulting values. Then it calls the original function's continuation
for return or unwind, and forwards them to the caller as well.

After IRGen, LLVM's Coroutine pass transforms the generated coroutine (along with
all other coroutines) and eliminates llvm.coro.* intrinsics. LIT tests check
LLVM IR after this transformation.

Co-authored-by: Anton Korobeynikov <anton@korobeynikov.info>
Co-authored-by: Arnold Schwaighofer <aschwaighofer@apple.com>
2024-08-08 18:36:42 -07:00
Karoy Lorentey
56bcc8dc83 [stdlib] Remove _FixedArray16
We are no longer using this internal type; remove it from the stdlib.
2024-07-30 16:14:05 -07:00
Alejandro Alonso
ca8c90ecc0 Support movesAsLike for the array variant of @_rawLayout 2024-07-28 10:29:57 -07:00
Ben Barham
d281fb8868 Merge pull request #74883 from finagolfin/droid
[android] Enable several C++ Interop and other tests
2024-07-26 11:18:07 -07:00
Alex Hoppen
ac445d6fad [docs] Improve documentation on LSAN failure symbolication 2024-07-24 13:34:33 -07:00
Joe Groff
044d8c9f56 Merge pull request #75378 from jckarter/warn-on-runtime-function-symbol-references
Stage in a warning when trying to access symbols used by the compiler.
2024-07-24 08:18:57 -07:00
Matt Massicotte
721f5290e4 [docs] NFC: Remove redundant --sccache flag (#75390)
Following along with the Getting Started guide. I noticed that the guide specifically suggests adding the `--sccache` flag if needed, but it is included in the example invocation:

> If you installed and want to use Sccache, add --sccache to the invocation.

This means that the flag is optional and should be removed from the example invocation leaving at the user discretion to use.
2024-07-24 00:53:38 -07:00
Hamish Knight
f7cde73a02 Merge pull request #75402 from hamishknight/tweak-doc
[doc] Update `libFuzzerIntegration.md`
2024-07-23 00:15:49 +01:00
Hamish Knight
e40d762b88 [doc] Update libFuzzerIntegration.md
`-sanitize=fuzzer` no longer requires a development snapshot,
it's been part of the compiler for a good while now.
2024-07-22 21:12:39 +01:00
LamTrinh.Dev
b6239b8cee [docs] Update links to repositories moved to https://github.com/swiftlang/ 2024-07-22 12:22:43 -07:00
Finagolfin
fb7bb193ea [android][docs] Update NDK/Ubuntu versions and Swift snapshot tag to the latest 2024-07-20 17:56:51 +05:30
Joe Groff
8bc5a1f1fc Stage in a warning when trying to access symbols used by the compiler.
Attempting to bypass the compiler and access runtime functions directly has
a long history of breaking in hard-to-predict ways, and there's usually a better
way. Put up a warning to try to flush out misuses of runtime functions to see
if we can turn this into an error.
2024-07-19 16:55:11 -07:00
Anthony Latsis
5b5244f4d0 Merge pull request #75231 from AnthonyLatsis/coryphaena-hippurus
[NFC] GettingStarted: Several straightforward improvements
2024-07-18 07:03:00 +03:00
Jeremy Schonfeld
f3acbb079f Remove ICU from the toolchain (#75262)
* Remove ICU from the toolchain

* Remove icu comment from GettingStarted.md
2024-07-17 18:19:16 -07:00
Slava Pestov
c4d9e42fa9 docs: Update generics.tex 2024-07-15 22:30:56 -04:00
Anthony Latsis
1921b60ff4 [NFC] GettingStarted: Remove --skip-<os> flags from build script command
These flags are dead weight because the options they disable default to
false.
2024-07-13 18:57:46 -07:00
Anthony Latsis
688f0f4e08 [NFC] GettingStarted: Use new GitHub alert syntax
But only for top-level alerts. Nested alerts will not render. See
https://github.com/orgs/community/discussions/16925#discussioncomment-9538837.
2024-07-14 04:35:08 +03:00
Anthony Latsis
53f0a7fe2e [NFC] GettingStarted: Minor corrections & clarifications for Ninja with Xcode 2024-07-14 04:35:05 +03:00
Anthony Latsis
a864b9c241 [NFC] GettingStarted: Replace list of forum topics with search link for troubleshooting
Take advantage of the tags that we attach to such topics. Also tune
the GitHub issues link by analogy.
2024-07-14 04:25:50 +03:00
Mykola Pokhylets
816d62c972 Merge remote-tracking branch 'upstream/main' into mpokhylets/isolated-deinit
# Conflicts:
#	include/swift/Basic/Features.def
#	lib/SILGen/SILGenDestructor.cpp
#	test/Concurrency/flow_isolation.swift
#	test/abi/macOS/arm64/concurrency.swift
#	test/abi/macOS/x86_64/concurrency.swift
2024-07-11 13:11:59 +02:00
Mykola Pokhylets
b189495518 Introduced isolated deinit as a SIL entity 2024-07-11 13:09:05 +02:00
Anthony Latsis
4c1f48de1d Merge pull request #75159 from vidhupv/vidhupv-patch-1
Update Repository name in GettingStarted.md
2024-07-11 09:20:32 +03:00
Vidhu Panhavoor Vasudevan
f7bafb3548 Update Repository name in GettingStarted.md
The name of the swift repository has changed from apple/swift to swiftlang/swift
2024-07-10 21:22:56 -04:00
Meghana Gupta
7d2ff43fe3 Update mangling to support lifetime dependence in parameter position 2024-07-10 14:20:03 -07:00
Doug Gregor
fbc4e678e6 Merge pull request #74818 from carlos4242/add-target-avr
[AVR] Initial AVR support
2024-07-08 10:39:04 -07:00
Hunhee Lee
46fbbb6c78 [docs] Fix typos 2024-07-08 20:49:13 +09:00