Skip to content

Resolve conflicts with upstream master #1563

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

Merged
merged 56 commits into from
Aug 11, 2020
Merged

Conversation

MaxDesiatov
Copy link

Closes #1561

YOCKOW and others added 30 commits December 13, 2019 14:24
This just returns isCompatibleWith(v.getOwnershipKind()). Just makes some code
easier to write.
Put them in __objc_data instead of __objc_const. rdar://problem/66630432
…rameters.

Specifically:

1. I made methods, variables camelCase.
2. I expanded out variable names (e.x.: bb -> block, predBB -> predBlocks, U -> wrappedUse).
3. I changed typedef -> using.
4. I changed a few c style for loops into for each loops using llvm::enumerate.

NOTE: I left the parts needed for syncing to LLVM in the old style since LLVM
needs these to exist for CRTP to work correctly for the SILSSAUpdater.
…osure matches

Diagnose situations when trailing closure has been matched to a specific
parameter via a deprecated backward scan.

```swift
func multiple_trailing_with_defaults(
  duration: Int,
  animations: (() -> Void)? = nil,
  completion: (() -> Void)? = nil) {}

multiple_trailing_with_defaults(duration: 42) {} // picks `completion:`
```
There is no guarantee that Mach ticks and nanoseconds have a 1:1
relationship.  Use the `uptimeNanoseconds` field which will convert the
raw value (which is in Mach ticks) to the time unit of nanoseconds.
This was caught by the Dispatch stridable test in the Swift test suite.

rdar://problem/56623421
Use the proper `swift_only_stable_abi` check to ensure that the tests do
not run on targets that do not support the pre-stable ABI.

Thanks to @slavapestov for pointing out that there was a better way!
…66693249

Temporarily disable failing test
…st-rdar66693249

Revert "Temporarily disable failing test"
…66644853

Temporarily disable failing test
test: use the `swift_only_stable_abi` feature instead of adhoc checks
…t-const

IRGen: ObjC method lists are not const.
Dispatch: correct `DispatchTimeInterval` calculation on ASi
Just declaring a default in the standard library works fine.
ARM64 generates a `brk #0x1` for `unreachable` which generates a
SIGTRAP.  On x86, we would generate a `ud2` rather than `int 3` which
are treated as `SIGILL` and `SIGTRAP` respectively.
Remove the target specific binary and instead compile a test binary on
the fly.  Because this test is restricted to macOS platforms, we know
that we assume that we will have a compatible Objective-C runtime at our
disposal.  Use that to create a stub library for testing
`NSClassFromString`.

This allows this test to execute on ARM64.
The conversion of the naonseconds to Mach ticks in multiples of Mach
timebase units alters the time.  This would fail on ASi where mach ticks
are not synonymous with nanoseconds.
Kyle Macomber and others added 24 commits August 7, 2020 15:39
SR-10689: Fix bugs of DataProtocol's firstRange(of:in:)/lastRange(of:in:).
…iftlang#33218)

Pullback generation now supports `switch_enum` and `switch_enum_addr`
instructions for `Optional`-typed operands.

Currently, the logic is special-cased to `Optional`, but may be generalized in
the future to support enums following general rules.
…e-needs-bool

[SR-13262][Sema] Adding contextual type purpose for where clause expression in constraint system
[Tests] Codesign the binary before executing the test
…31921009e2ec94c12c22075

[sil] Define ValueOwnershipKind::isCompatibleWith(SILValue v).
…all-cases

Sema: Don't need to derive CaseIterable's AllCases associated type
when we have an optional type. This uncovered an error with unresolved member lookup where we allowed an unresolved value member constraint to fail if lookup failed in an optional type wrapping a type variable.

This resolves SR-13357.
test: repair Interpreter/SDK/interpreter_with_options on ASi
test: repair Interpreter/bridged_casts_folding on ASi
…e02117c55a3d0f8989fa231

[ssa-updater] Modernize style before adding support for guaranteed parameters
several more places to use getOrCreateHelperFunction.

This means that several of these places are now emitting
shared functions rather than private ones, which I've
verified is okay.  There are some other places where
privacy is still unfortunately necessary.

I've also fixed the name of the store-extra-inhabitants
helper function to say "store" instead of "get", which
is longstanding (but harmless because it's private).

Fixes rdar://66707994.
…lpers

Add default IR attributes to helper functions
[Sema] Allow inference of binding to differing lvalue-ness type var…
The order of attribution was swapped which failed on platforms which use
`comdat` (i.e. Windows).
test: repair Serialization.autolinking after swiftlang#33379
…ng#33203)

Co-authored-by: Robert Widmann <devteam.codafi@gmail.com>
Co-authored-by: Dmitri Gribenko <gribozavr@gmail.com>
AssociatedTypeInference: Stop skipping the current protocol when looking for a fixed type witness
…conflicts

# Conflicts:
#	lib/IRGen/GenKeyPath.cpp
#	lib/IRGen/MetadataRequest.cpp
@MaxDesiatov MaxDesiatov marked this pull request as ready for review August 10, 2020 18:56
@kateinoigakukun kateinoigakukun merged commit aa6f357 into swiftwasm Aug 11, 2020
@MaxDesiatov MaxDesiatov deleted the maxd/master-conflicts branch August 11, 2020 10:12
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.