Skip to content

Commit bdbfc42

Browse files
---
yaml --- r: 294583 b: refs/heads/tensorflow c: 7d8c543 h: refs/heads/master i: 294581: 3c38756 294579: aa29292 294575: 3d2bd53
1 parent cd2d93d commit bdbfc42

File tree

357 files changed

+3076
-7981
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

357 files changed

+3076
-7981
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -816,7 +816,7 @@ refs/tags/swift-DEVELOPMENT-SNAPSHOT-2018-04-25-a: 22f738a831d43aff2b9c9773bcb65
816816
refs/tags/swift-DEVELOPMENT-SNAPSHOT-2018-05-08-a: 7d98cc16689baba5c8a3b90a9329bdcc1a12b4e9
817817
refs/heads/cherr42: a566ad54b073c2c56ac0a705d0a5bed9743135a5
818818
"refs/heads/codable_test_comment_fix": fc8f6824f7f347e1e8db55bff62db385c5728b5a
819-
refs/heads/tensorflow: 22e64f05be125934eb44fb3a8a177dc42f212735
819+
refs/heads/tensorflow: 7d8c54329c6cb40a982fffe1f904b9510f4ac956
820820
refs/tags/swift-4.1-DEVELOPMENT-SNAPSHOT-2018-05-11-a: 8126fd7a652e2f70ad6d76505239e34fb2ef3e1a
821821
refs/tags/swift-4.1-DEVELOPMENT-SNAPSHOT-2018-05-12-a: b3fd3dd84df6717f2e2e9df58c6d7e99fed57086
822822
refs/tags/swift-4.1-DEVELOPMENT-SNAPSHOT-2018-05-13-a: 71135119579039dc321c5f65d870050fe36efda2

branches/tensorflow/.mailmap

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,12 @@ Daniel Duan <[email protected]> <[email protected]>
2929
Dante Broggi <[email protected]>
3030
3131
32+
3233
3334
3435
35-
36-
David Rönnqvist <[email protected]>
36+
37+
David Rönnqvist <[email protected]>
3738
3839
3940
@@ -42,8 +43,10 @@ Davide Italiano <[email protected]> <[email protected]>
4243
4344
4445
46+
4547
4648
Erik Eckstein <[email protected]>
49+
4750
4851
Ewa Matejska <[email protected]>
4952
@@ -127,13 +130,15 @@ Ross Bayer <[email protected]>
127130
128131
129132
133+
130134
131135
Stephen Canon <[email protected]>
132136
133137
Sukolsak Sakshuwong <[email protected]>
134138
135139
136140
141+
137142
138143
139144

branches/tensorflow/CMakeLists.txt

Lines changed: 6 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -117,11 +117,13 @@ endif()
117117

118118
set(SWIFT_ANALYZE_CODE_COVERAGE FALSE CACHE STRING
119119
"Build Swift with code coverage instrumenting enabled [FALSE, NOT-MERGED, MERGED]")
120+
set_property(CACHE SWIFT_ANALYZE_CODE_COVERAGE PROPERTY
121+
STRINGS FALSE "NOT-MERGED" "MERGED")
120122

121123
# SWIFT_VERSION is deliberately /not/ cached so that an existing build directory
122124
# can be reused when a new version of Swift comes out (assuming the user hasn't
123125
# manually set it as part of their own CMake configuration).
124-
set(SWIFT_VERSION "5.1")
126+
set(SWIFT_VERSION "5.0")
125127

126128
set(SWIFT_VENDOR "" CACHE STRING
127129
"The vendor name of the Swift compiler")
@@ -169,20 +171,8 @@ endif()
169171

170172
set(SWIFT_STDLIB_BUILD_TYPE "${CMAKE_BUILD_TYPE}" CACHE STRING
171173
"Build type for the Swift standard library and SDK overlays [Debug, RelWithDebInfo, Release, MinSizeRel]")
172-
# Allow the user to specify the standard library CMAKE_MSVC_RUNTIME_LIBRARY
173-
# value. The following values are valid:
174-
# - MultiThreaded (/MT)
175-
# - MultiThreadedDebug (/MTd)
176-
# - MultiThreadedDLL (/MD)
177-
# - MultiThreadedDebugDLL (/MDd)
178-
if(CMAKE_BUILD_TYPE STREQUAL Debug)
179-
set(SWIFT_STDLIB_MSVC_RUNTIME_LIBRARY_default MultiThreadedDebugDLL)
180-
else()
181-
set(SWIFT_STDLIB_MSVC_RUNTIME_LIBRARY_default MultiThreadedDLL)
182-
endif()
183-
set(SWIFT_STDLIB_MSVC_RUNTIME_LIBRARY
184-
${SWIFT_STDLIB_MSVC_RUNTIME_LIBRARY_default}
185-
CACHE STRING "MSVC Runtime Library for the standard library")
174+
set_property(CACHE SWIFT_STDLIB_BUILD_TYPE PROPERTY
175+
STRINGS "Debug" "RelWithDebInfo" "Release" "MinSizeRel")
186176

187177
is_build_type_optimized("${SWIFT_STDLIB_BUILD_TYPE}" swift_optimized)
188178
if(swift_optimized)
@@ -272,15 +262,9 @@ option(SWIFT_RUNTIME_CRASH_REPORTER_CLIENT
272262
set(SWIFT_DARWIN_XCRUN_TOOLCHAIN "XcodeDefault" CACHE STRING
273263
"The name of the toolchain to pass to 'xcrun'")
274264

275-
set(SWIFT_DARWIN_STDLIB_INSTALL_NAME_DIR "/usr/lib/swift" CACHE STRING
265+
set(SWIFT_DARWIN_STDLIB_INSTALL_NAME_DIR "@rpath" CACHE STRING
276266
"The directory of the install_name for standard library dylibs")
277267

278-
# We don't want to use the same install_name_dir as the standard library which
279-
# will be installed in /usr/lib/swift. These private libraries should continue
280-
# to use @rpath for now.
281-
set(SWIFT_DARWIN_STDLIB_PRIVATE_INSTALL_NAME_DIR "@rpath" CACHE STRING
282-
"The directory of the install_name for the private standard library dylibs")
283-
284268
set(SWIFT_DARWIN_DEPLOYMENT_VERSION_OSX "10.9" CACHE STRING
285269
"Minimum deployment target version for OS X")
286270

branches/tensorflow/README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@
2525
|**[macOS 10.13 (TensorFlow)](https://github.com/apple/swift-community-hosted-continuous-integration/blob/master/nodes/x86_64_macos_high_sierra_tensorflow.json)** | x86_64 |[![Build Status](https://ci-external.swift.org/job/oss-swift-RA-macOS-tensorflow/lastCompletedBuild/badge/icon)](https://ci-external.swift.org/job/oss-swift-RA-macOS-tensorflow)|
2626
|**[Ubuntu 16.04 (TensorFlow with GPU)](https://github.com/apple/swift-community-hosted-continuous-integration/blob/master/nodes/x86_64_ubuntu_16_04_tensorflow_gpu.json)** | x86_64 |[![Build Status](https://ci-external.swift.org/job/oss-swift-RA-linux-ubuntu-16.04-tensorflow-gpu/lastCompletedBuild/badge/icon)](https://ci-external.swift.org/job/oss-swift-RA-linux-ubuntu-16.04-tensorflow-gpu)|
2727
|**[Debian 9.5](https://github.com/apple/swift-community-hosted-continuous-integration/blob/master/nodes/x86_64_debian_9.5.json)** | x86_64 | [![Build Status](https://ci-external.swift.org/job/oss-swift-RA-linux-debian-9_5/lastCompletedBuild/badge/icon)](https://ci-external.swift.org/job/oss-swift-RA-linux-debian-9_5)|
28-
|**[Windows 2019](https://github.com/apple/swift-community-hosted-continuous-integration/blob/master/nodes/x86_64_windows_2019.json)** | x86_64 | [![Build Status](https://ci-external.swift.org/job/oss-swift-windows-x86_64/lastCompletedBuild/badge/icon)](https://ci-external.swift.org/job/oss-swift-windows-x86_64)|
2928

3029

3130
## Welcome to Swift

branches/tensorflow/benchmark/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@ set(SWIFT_BENCH_MODULES
108108
single-source/NSError
109109
single-source/NSStringConversion
110110
single-source/NibbleSort
111-
single-source/NIOChannelPipeline
112111
single-source/NopDeinit
113112
single-source/ObjectAllocation
114113
single-source/ObjectiveCBridging

branches/tensorflow/benchmark/single-source/NIOChannelPipeline.swift

Lines changed: 0 additions & 104 deletions
This file was deleted.

branches/tensorflow/benchmark/utils/main.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ import Memset
9393
import MonteCarloE
9494
import MonteCarloPi
9595
import NibbleSort
96-
import NIOChannelPipeline
9796
import NSDictionaryCastToSwift
9897
import NSError
9998
#if os(macOS) || os(iOS) || os(watchOS) || os(tvOS)
@@ -273,7 +272,6 @@ registerBenchmark(NSErrorTest)
273272
registerBenchmark(NSStringConversion)
274273
#endif
275274
registerBenchmark(NibbleSort)
276-
registerBenchmark(NIOChannelPipeline)
277275
registerBenchmark(NopDeinit)
278276
registerBenchmark(ObjectAllocation)
279277
#if os(macOS) || os(iOS) || os(watchOS) || os(tvOS)

branches/tensorflow/cmake/modules/AddSwift.cmake

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,12 @@ function(_add_variant_swift_compile_flags
400400
list(APPEND result "-D" "SWIFT_ENABLE_RUNTIME_FUNCTION_COUNTERS")
401401
endif()
402402

403+
if(sdk STREQUAL WINDOWS)
404+
list(APPEND result "-Xcc" "-D_MT")
405+
# TODO(compnerd) handle /MT /MTd
406+
list(APPEND result "-Xcc" "-D_DLL")
407+
endif()
408+
403409
set("${result_var_name}" "${result}" PARENT_SCOPE)
404410
endfunction()
405411

@@ -738,7 +744,6 @@ function(_add_swift_library_single target name)
738744
DEPLOYMENT_VERSION_TVOS
739745
DEPLOYMENT_VERSION_WATCHOS
740746
INSTALL_IN_COMPONENT
741-
DARWIN_INSTALL_NAME_DIR
742747
MODULE_TARGET
743748
SDK)
744749
set(SWIFTLIB_SINGLE_multiple_parameter_options
@@ -867,8 +872,13 @@ function(_add_swift_library_single target name)
867872
if("${SWIFTLIB_SINGLE_ARCHITECTURE}" MATCHES arm)
868873
list(APPEND SWIFTLIB_SINGLE_SWIFT_COMPILE_FLAGS -Xcc;-D_ARM_WINAPI_PARTITION_DESKTOP_SDK_AVAILABLE)
869874
endif()
870-
list(APPEND SWIFTLIB_SINGLE_SWIFT_COMPILE_FLAGS
871-
-libc;${SWIFT_STDLIB_MSVC_RUNTIME_LIBRARY})
875+
list(APPEND SWIFTLIB_SINGLE_SWIFT_COMPILE_FLAGS -Xfrontend;-autolink-library;-Xfrontend;oldnames)
876+
# TODO(compnerd) handle /MT and /MTd
877+
if(CMAKE_BUILD_TYPE MATCHES Debug)
878+
list(APPEND SWIFTLIB_SINGLE_SWIFT_COMPILE_FLAGS -Xfrontend;-autolink-library;-Xfrontend;msvcrtd)
879+
else()
880+
list(APPEND SWIFTLIB_SINGLE_SWIFT_COMPILE_FLAGS -Xfrontend;-autolink-library;-Xfrontend;msvcrt)
881+
endif()
872882
endif()
873883

874884
# FIXME: don't actually depend on the libraries in SWIFTLIB_SINGLE_LINK_LIBRARIES,
@@ -1047,10 +1057,6 @@ function(_add_swift_library_single target name)
10471057
set(install_name_dir "@rpath")
10481058
endif()
10491059

1050-
if(SWIFTLIB_SINGLE_DARWIN_INSTALL_NAME_DIR)
1051-
set(install_name_dir "${SWIFTLIB_SINGLE_DARWIN_INSTALL_NAME_DIR}")
1052-
endif()
1053-
10541060
set_target_properties("${target}"
10551061
PROPERTIES
10561062
INSTALL_NAME_DIR "${install_name_dir}")
@@ -1603,8 +1609,7 @@ function(add_swift_target_library name)
16031609
DEPLOYMENT_VERSION_OSX
16041610
DEPLOYMENT_VERSION_TVOS
16051611
DEPLOYMENT_VERSION_WATCHOS
1606-
INSTALL_IN_COMPONENT
1607-
DARWIN_INSTALL_NAME_DIR)
1612+
INSTALL_IN_COMPONENT)
16081613
set(SWIFTLIB_multiple_parameter_options
16091614
C_COMPILE_FLAGS
16101615
DEPENDS
@@ -1905,7 +1910,6 @@ function(add_swift_target_library name)
19051910
${SWIFTLIB_TARGET_LIBRARY_keyword}
19061911
${SWIFTLIB_FORCE_BUILD_OPTIMIZED_keyword}
19071912
${SWIFTLIB_NOSWIFTRT_keyword}
1908-
DARWIN_INSTALL_NAME_DIR "${SWIFTLIB_DARWIN_INSTALL_NAME_DIR}"
19091913
INSTALL_IN_COMPONENT "${SWIFTLIB_INSTALL_IN_COMPONENT}"
19101914
DEPLOYMENT_VERSION_OSX "${SWIFTLIB_DEPLOYMENT_VERSION_OSX}"
19111915
DEPLOYMENT_VERSION_IOS "${SWIFTLIB_DEPLOYMENT_VERSION_IOS}"

branches/tensorflow/cmake/modules/StandaloneOverlay.cmake

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,6 @@ if(DEFINED SWIFT_MASTER_LOADED
99
endif()
1010

1111

12-
list(APPEND CMAKE_MODULE_PATH
13-
"${SWIFT_SOURCE_ROOT}/llvm/cmake/modules"
14-
"${PROJECT_SOURCE_DIR}/../../../../cmake/modules"
15-
"${PROJECT_SOURCE_DIR}/../../../cmake/modules")
16-
17-
1812
# -----------------------------------------------------------------------------
1913
# Preconditions
2014

@@ -65,12 +59,21 @@ option(SWIFT_ENABLE_PARSEABLE_MODULE_INTERFACES
6559
set(SWIFT_STDLIB_BUILD_TYPE "${CMAKE_BUILD_TYPE}" CACHE STRING
6660
"Build type for the Swift standard library and SDK overlays.")
6761

62+
set_property(CACHE SWIFT_STDLIB_BUILD_TYPE PROPERTY
63+
STRINGS
64+
"Debug" "RelWithDebInfo" "Release" "MinSizeRel")
65+
6866
# -----------------------------------------------------------------------------
6967
# Constants
7068

7169
set(CMAKE_INSTALL_PREFIX
7270
"${SWIFT_DEST_ROOT}${TOOLCHAIN_DIR}/usr")
7371

72+
list(APPEND CMAKE_MODULE_PATH
73+
"${SWIFT_SOURCE_ROOT}/llvm/cmake/modules"
74+
"${PROJECT_SOURCE_DIR}/../../../../cmake/modules"
75+
"${PROJECT_SOURCE_DIR}/../../../cmake/modules")
76+
7477

7578
set(SWIFT_APPLE_PLATFORMS
7679
OSX IOS IOS_SIMULATOR TVOS TVOS_SIMULATOR WATCHOS WATCHOS_SIMULATOR)
@@ -80,7 +83,6 @@ set(SWIFT_APPLE_PLATFORMS
8083
set(BUILD_STANDALONE TRUE)
8184
set(SWIFT_BUILD_STANDALONE_OVERLAY TRUE)
8285

83-
set(SWIFT_STDLIB_LIBRARY_BUILD_TYPES "SHARED")
8486
set(SWIFT_SDK_OVERLAY_LIBRARY_BUILD_TYPES "SHARED")
8587

8688

branches/tensorflow/docs/ARCOptimization.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -439,8 +439,8 @@ In the following we assume that all loops are canonicalized such that:
439439
2. The loop has one backedge.
440440
3. All exiting edges have a unique exit block.
441441

442-
Motivation
443-
----------
442+
Motiviation
443+
-----------
444444

445445
Consider the following simple loop::
446446

branches/tensorflow/include/swift/AST/ASTContext.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ namespace clang {
5050
namespace swift {
5151
class ASTContext;
5252
enum class Associativity : unsigned char;
53-
class AvailabilityContext;
5453
class BoundGenericType;
5554
class ClangNode;
5655
class ConstructorDecl;
@@ -585,9 +584,6 @@ class ASTContext final {
585584
void addDestructorCleanup(T &object) {
586585
addCleanup([&object]{ object.~T(); });
587586
}
588-
589-
/// Get the runtime availability of the opaque types language feature for the target platform.
590-
AvailabilityContext getOpaqueTypeAvailability();
591587

592588
//===--------------------------------------------------------------------===//
593589
// Diagnostics Helper functions

branches/tensorflow/include/swift/AST/ASTPrinter.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,8 @@ void printEnumElementsAsCases(
337337
llvm::DenseSet<EnumElementDecl *> &UnhandledElements,
338338
llvm::raw_ostream &OS);
339339

340-
void getInheritedForPrinting(const Decl *decl, const PrintOptions &options,
340+
void getInheritedForPrinting(const Decl *decl,
341+
llvm::function_ref<bool(const Decl*)> shouldPrint,
341342
llvm::SmallVectorImpl<TypeLoc> &Results);
342343

343344
} // namespace swift

0 commit comments

Comments
 (0)