Skip to content

Merging swift-DEVELOPMENT-SNAPSHOT-2019-06-17-a into tensorflow #25599

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 347 commits into from
Jun 19, 2019

Conversation

burmako
Copy link

@burmako burmako commented Jun 19, 2019

For apple/swift: merge e4e009f (from 2019-06-17).
For all other repositories: merge swift-DEVELOPMENT-SNAPSHOT-2019-06-17-a .

David Ungar and others added 30 commits June 10, 2019 18:06
…hether literal could be initialized via coercion

Currently logic to transform call into coercion uses `conformsToProtocol`
to validate that type conforms to one of the ExpressibleBy*Literal protocols.

That function doesn't handle unbound generic parameters and would result in
an infinite loop or a crash when not all of the generic parameters were
explicitly specified for one of the types in the chain e.g. `A.B(42)`
where `A` has at least one generic parameter.

Resolves: rdar://problem/50007727
We have nondeterministic test failures indicating a memory safety issue in ModelIO’s overlay. This switches the overlay’s property implementations to use the new `Array(unsafeUninitializedCount:,initializedWith:)` initializer rather than the potentially unreliable `&values[0]` pattern.

rdar://problem/50449570
The output can be interleaved differently.  Accept either ordering.
change OSLogOptimization pass so that inlining is not performed.
This fixes targets which do FP64 rather than FP80.
for 'VarDecl' or if we don't know the kind of the decl.
Property delegate allows arbitrary type name (with `@propertyDelegate`
attr).
Includes code anticipating property delegates in part because it's
been largely stolen from Doug's PR for that.
Turn the generic CustomAttrTypeRequest into a helper function and
introduce a FunctionBuilderTypeRequest that starts from a ParamDecl.
This has better caching characteristics and also means we only need to
do a single cache lookup in order to resolve the type in the normal path.
It also means we don't need as much parameterization in the cache.

In addition, check that the parameter has function type in the request,
not just when late-checking the attribute, and add a check that it isn't
an autoclosure.
Provide a place where we can capture more information about the parameters
from a declaration being called.
When calling a function whose parameter specifies a function builder
with a multi-statement closure argument, transform the closure into
a single expression via the function builder. Should the result
type checker, replace the closure body with the single expression.
If a function builder contains a buildIf function, then "if" statements
will be supported by passing an optional of the "then" branch.
"if" statements with an "else" statement are unsupported at present.
Use the opened type from the callee declaration to open up references to
generic function builders that contain type parameters. This allows general
use of generic function builders.
nkcsgexi and others added 22 commits June 16, 2019 13:00
With module stability from the compiler, we can now use an earlier version
of the SDK as the baseline and compare the new SDK with it. This patch
adds a new -bsdk flag to the tool to specify the baseline SDK path.
Use the appropriate CMake functions to adjust the build flags rather
than touching the user-controlled `CMAKE_C_FLAGS` and `CMAKE_CXX_FLAGS`.
This is needed to ensure that we get the correct modulemap file for
Android on certain versions of CMake.
Failing sporadically in CI: https://ci.swift.org/job/oss-swift_tools-RA_stdlib-RDA_test-simulator/1827

Disabling until we can investigate fully.

rdar://51804988
Disable tsan-norace-deinit-run-time.swift temporarily
Revert " [CastOptimizer] Set the correct debug scope for the SILBuilder. "
This is a recommit with a change to only run the test for
optimized stdlib [as the bug reproduces only there [as the bug reproduces only there]
…25432)

...by crawling it and looking for module interfaces. This is the tool
Apple is using for the "prebuilt-modules" directory in the toolchain
in Xcode.app, which avoids even a first-use cost for importing modules
from Apple SDKs as long as the SDKs haven't changed. We've been
landing changes to support this model on the compiler side, so the
tool to generate the "prebuilt" compiled modules belongs in the
compiler repo too. (In theory this could be used with open-source
toolchains as well, or for alternate SDKs.)
…80 data type. (#25502)

* Fixes issue addressed Float80 data type. Float80 is disabled for Intel architectures (i.e. Android Simulator).

* More precise condition check.
[SDK] Add overlay shims for ClockKit framework
[Foundation] Set correct availability on NSValue.value(of:)
`-print-resource-dir` is not available with `clang-cl` which is required
for building the standard library for Windows on Windows.  Use the
`/clang:-print-resource-dir` spelling instead.  This allows us to build
the standalone runtime for Windows on Windows.
swift-api-digester: teach the tool to compare two SDKs directly
@burmako burmako added the tensorflow This is for "tensorflow" branch PRs. label Jun 19, 2019
@burmako
Copy link
Author

burmako commented Jun 19, 2019

@swift-ci Please clean test tensorflow

@burmako burmako requested a review from saeta June 19, 2019 15:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tensorflow This is for "tensorflow" branch PRs.
Projects
None yet
Development

Successfully merging this pull request may close these issues.