Commit Graph

4294 Commits

Author SHA1 Message Date
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
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
Carl Peto
ee57481d7c [AVR] AVR support - Initial PR
- Add simple support for the AVR architecture, as a supported conditional compilation value, and added to the default llvm targets to build.

(Later PRs will fix support for 16-bit pointers, which is broken in places, and any fixes needed to get the standard library to build.)

(Note: AVR as a target is expected to always be compiled with -enable-experimental-feature Embedded.)
2024-07-06 18:22:10 +01:00
Alexander Cyon
ae0e94a555 [docs] Fix typos 2024-07-06 13:16:16 +02:00
Nate Chandler
b150a484f2 [SIL] Add dead_end flag to dealloc_box. 2024-07-03 15:26:59 -07:00
Nate Chandler
a8cc3bfdda [SIL] Add dead_end flag to destroy_value. 2024-07-03 15:26:59 -07:00
Akira Hatanaka
42bc49d3fe Add a new parameter convention @in_cxx for non-trivial C++ classes that are passed indirectly and destructed by the caller (#73019)
This corresponds to the parameter-passing convention of the Itanium C++
ABI, in which the argument is passed indirectly and possibly modified,
but not destroyed, by the callee.

@in_cxx is handled the same way as @in in callers and @in_guaranteed in
callees. OwnershipModelEliminator emits the call to destroy_addr that is
needed to destroy the argument in the caller.

rdar://122707697
2024-06-27 09:44:04 -07:00
Anthony Latsis
86ff1f9626 Merge pull request #74664 from vanvoorden/patch-1 2024-06-26 18:45:39 +03:00
Mishal Shah
cfc7c86f0a Merge pull request #74724 from AnthonyLatsis/acer-palmatum
[docs] FirstPullRequest.md: Adjust for `swiftlang`
2024-06-25 23:53:04 -07:00
Anthony Latsis
dcbc51bfe6 [docs] FirstPullRequest.md: Adjust for swiftlang 2024-06-26 09:45:42 +03:00
Alex Hoppen
a70e81f853 Merge pull request #74686 from ahoppen/swiftlang-migration
Update links for repositories moved to the swiftlang org on GitHub
2024-06-25 21:08:35 -07:00
Kavon Farvardin
bcedccac9c Docs: discuss @_preInverseGenerics 2024-06-25 12:06:23 -07:00
Alex Hoppen
8e20a6f479 Update links for repositories moved to the swiftlang org on GitHub 2024-06-25 04:35:39 -07:00
Rick van Voorden
943b9cbe4d Update GettingStarted.md with workaround for icu error 2024-06-24 12:38:38 -07:00
Slava Pestov
6176e02aa3 docs: Update generics.tex 2024-06-23 09:30:05 -04:00
Saleem Abdulrasool
94aa0cd450 Merge pull request #73581 from swiftlang/compnerd/cross-compile-model
Create CrossCompilationModel.md
2024-06-22 11:51:42 -07:00
Saleem Abdulrasool
3e6aa1741f Create CrossCompilationModel.md
Add some documentation to describe the proposed model for cross-compilation, associated flags, and the reasoning for the structure. This should allow us to have a reference for the design allowing us to evolve the model.

Co-authored-by: Evan Wilde <ewilde@apple.com>
Co-authored-by: Alexander Smarus <bender@readdle.com>
Co-authored-by: Danielle <dani@builds.terrible.systems>
2024-06-21 14:11:25 -07:00
Michael Gottesman
3f39bdc1ed [sending] closure literals that are passed as sending parameters are now inferred to be nonisolated.
Consider the following piece of code and what the isolation is of the closure
literal passed to doSomething():

```swift
func doSomething(_ f: sending () -> ()) { ... }

@MyCustomActor
func foo() async {
  doSomething {
    // What is the isolation here?
  }
}
```

In this case, the isolation of the closure is @MyCustomActor. This is because
non-Sendable closures are by default isolated to their current context (in this
case @MyCustomActor since foo is @MyCustomActor isolated). This is a problem
since

1. Our closure is a synchronous function that does not have the ability to hop
to MyCustomActor to run said code. This could result in a concurrency hole
caused by running the closure in doSomething() without hopping to
MyCustomActor's executor.

2. In Region Based Isolation, a closure that is actor isolated cannot be sent,
so we would immediately hit a region isolation error.

To fix this issue, by default, if a closure literal is passed as a sending
parameter, we make its isolation nonisolated. This ensures that it is
disconnected and can be transferred safely.

In the case of an async closure literal, we follow the same semantics, but we
add an additional wrinkle: we keep support of inheritActorIsolation. If one
marks an async closure literal with inheritActorIsolation, we allow for it to be
passed as a sendable parameter since it is actually Sendable under the hood.
2024-06-21 02:24:03 -07:00
Antoine Bollengier
e50a6c47f4 Few typos in docs/EmbeddedSwift/UserManual.md (#74311) 2024-06-14 19:27:17 -07:00
Michael Gottesman
045c214522 [docs] Add a little section about Disabling PCH Verification. 2024-06-12 10:59:43 -07:00
Kuba (Brecka) Mracek
7047809301 Merge pull request #73961 from kubamracek/embedded-docs6
[embedded] Add a summary of the Embedded Swift ABI
2024-06-10 17:07:00 -07:00
Kuba (Brecka) Mracek
bc147aea15 Merge pull request #73944 from kubamracek/embedded-docs5
[embedded] Add a section on Strings into the User Manual
2024-06-10 16:50:38 -07:00
Kuba Mracek
772e066238 [embedded] Add 'sorting strings' to the list of ops that need Unicode data tables 2024-06-10 13:38:32 -07:00
Kuba Mracek
cab0eeed65 [embedded] Expand ABI docs on C/C++ interop 2024-06-10 13:34:03 -07:00
Egor Zhdan
a3e3079fb6 [docs] Suggest --skip-xros in the Getting Started guide
The Getting Started guide offers a build-script command that new contributors can use to quickly build a debug compiler on their local machine. The command already has `--skip-tvos` and `--skip-watchos` flags since most compiler contributors don't need to build for those platforms. This change adds `--skip-xros` flag to the command.
2024-06-10 16:22:36 +01:00
Nate Chandler
2a5d07522d [SIL] Add extend_lifetime instruction.
It indicates that the value's lifetime continues to at least this point.
The boundary formed by all consuming uses together with these
instructions will encompass all uses of the value.
2024-06-05 16:28:26 -07:00
Alejandro Alonso
324cb2df1f Merge pull request #73955 from Azoy/show-me-those-moves
[IRGen] Add option for raw layout to move as its like type
2024-05-30 20:32:49 -07:00
Alejandro Alonso
1d941cddb4 Note that rawLayout movesAsLike should be initialized 2024-05-29 09:37:08 -07:00
Kuba Mracek
a9d149b9be [embedded] Add a summary of the Embedded Swift ABI 2024-05-28 16:21:59 -07:00