Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge main 2022-09-01 #4848

Merged
merged 36 commits into from
Sep 1, 2022
Merged

Conversation

kateinoigakukun
Copy link
Member

No description provided.

slavapestov and others added 30 commits August 24, 2022 00:24
In the task-to-thread model, there are no threading mechanisms by which
work could be offloaded onto another thread.  As such, callback based
asynchronous APIs which are not Swift async do not make sense.

rdar://99047747
Previously we would cache the result of the first
query, with any further query of
`ResultBuilder::supports` ignoring the
`checkAvailability` parameter. Separate out the
availability checking such that we compute the
information up front, and adjust the result
depending on `checkAvailability`.
If `buildBlock` is also unavailable, or the
builder itself is unavailable, continue to solve
using `buildPartialBlock` to get better
diagnostics.

This behavior technically differs from what is
specified in SE-0348, but only affects the invalid
case where no builder methods are available to use.

In particular, this improves diagnostics for
RegexComponentBuilder when the deployment target
is too low. Previously we would try to solve using
`buildBlock` (as `buildPartialBlock` is unavailable),
but RegexComponentBuilder only defines `buildBlock`
for the empty body case, leading to unhelpful
diagnostics that ultimately preferred not to use
the result builder at all.

rdar://97533700
…find the libc header path

`getToolChain()` and `AddClangSystemIncludeArgs()` don't parse the arguments to set the
sysroot, so set it directly instead. Also, remove a redundant check for a valid directory.

Fixes apple#60224
With a properly prepared sysroot and toolchain file, these changes permit
cross-compilation of Swift as well as LLVM, CMark, and Dispatch (picking,
as usual, apple/swift-corelibs-libdispatch#556) from a Linux host
generating OpenBSD binaries.

The toolchain file must be specified as an environment variable to
`build-script` and discussion on how to properly set up the sysroot and
toolchain file will be handled later.
Co-authored-by: Saleem Abdulrasool <compnerd@compnerd.org>
…hen computing override substitutions

Fixes rdar://problem/98404650.
The loop at the end is meant to fill in substitutions from the local
context with corresponding context archetypes, but we can end up
here if the getSuperclassForDecl() class failed above. In this case,
fill in the replacement types with ErrorType instead to avoid
surfacing archetypes from the wrong environment.
Properties like `unownedExecutor` that are implicitly injected into
a type should not be managed by a type wrapper.
Otherwise it cannot be used as a protocol requirement witness.
This is the same algorithm as pruned liveness but assumes that one is tracking
liveness from an address and uses the same scheme as DI to track liveness as a
bit vector.
[Print as C++] Don't crash on sugared types
[ClangImporter] Add the sysroot directly to the clang Driver used to find the libc header path
…ng (apple#60728)

Refactor the logic so to have a single target to reference the
compatibility libraries for the host, and use that when needed.

The main driver for this change is supporting the cross-compilation of
x86-64 on Apple Silicon.

Supports rdar://90307965
[Freestanding] Disable checked continuations.
AST: Work around shortcoming in abstract conformance representation when computing override substitutions
…elf-super-init

Sema: Fix existential opening for arguments to self.init/super.init delegation
Preliminary Linux-OpenBSD cross-compile support.
…var-internal

[Sema] TypeWrappers: Set `$_storage` access level to `internal`
ahoppen and others added 6 commits August 31, 2022 20:11
…gnostics

[SwiftSyntax] Add a human readable name for diagnostics to all nodes
…f9b47f851d787746754

[pruned-liveness] Implement FieldSensitiveAddressPrunedLiveness.
Move OwnershipLowering to just before SimplifyCFG
[Interop][SwiftToCxx] Support enum creation from Cxx
[Sema] TypeWrappers: Don't try to manage compiler synthesized properties
@kateinoigakukun kateinoigakukun marked this pull request as ready for review September 1, 2022 18:17
@kateinoigakukun kateinoigakukun merged commit e661e7d into swiftwasm Sep 1, 2022
@kateinoigakukun kateinoigakukun deleted the katei/merge-main-2022-09-01 branch September 1, 2022 18:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet