Skip to content

Commit 4dc7c2c

Browse files
committed
---
yaml --- r: 340351 b: refs/heads/rxwei-patch-1 c: f79eb3b h: refs/heads/master i: 340349: dad9b75 340347: 35acc4b 340343: e9b10ad 340335: d93e375 340319: e456e42 340287: c276422 340223: 83858fa
1 parent 23df554 commit 4dc7c2c

File tree

291 files changed

+1414
-3456
lines changed

Some content is hidden

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

291 files changed

+1414
-3456
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1015,7 +1015,7 @@ refs/tags/swift-DEVELOPMENT-SNAPSHOT-2018-08-18-a: b10b1fce14385faa6d44f6b933e95
10151015
refs/heads/rdar-43033749-fix-batch-mode-no-diags-swift-5.0-branch: a14e64eaad30de89f0f5f0b2a782eed7ecdcb255
10161016
refs/heads/revert-19006-error-bridging-integer-type: 8a9065a3696535305ea53fe9b71f91cbe6702019
10171017
refs/heads/revert-19050-revert-19006-error-bridging-integer-type: ecf752d54b05dd0a20f510f0bfa54a3fec3bcaca
1018-
refs/heads/rxwei-patch-1: f9324d88ea16ffe0740e33d8ec09783d42dd35d1
1018+
refs/heads/rxwei-patch-1: f79eb3b8d034a2ccd734cbd26e1c4cb6272501ad
10191019
refs/heads/shahmishal-patch-1: e58ec0f7488258d42bef51bc3e6d7b3dc74d7b2a
10201020
refs/heads/typelist-existential: 4046359efd541fb5c72d69a92eefc0a784df8f5e
10211021
refs/tags/swift-4.2-DEVELOPMENT-SNAPSHOT-2018-08-20-a: 4319ba09e4fb8650ee86061075c74a016b6baab9

branches/rxwei-patch-1/CMakeLists.txt

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -223,17 +223,6 @@ option(SWIFT_STDLIB_ENABLE_SIB_TARGETS
223223
"Should we generate sib targets for the stdlib or not?"
224224
FALSE)
225225

226-
227-
set(SWIFT_DARWIN_SUPPORTED_ARCHS "" CACHE STRING
228-
"Semicolon-separated list of architectures to configure on Darwin platforms. \
229-
If left empty all default architectures are configured.")
230-
231-
set(SWIFT_DARWIN_MODULE_ARCHS "" CACHE STRING
232-
"Semicolon-separated list of architectures to configure Swift module-only \
233-
targets on Darwin platforms. These targets are in addition to the full \
234-
library targets.")
235-
236-
237226
#
238227
# User-configurable Android specific options.
239228
#

branches/rxwei-patch-1/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ Please make sure you use Python 2.x. Python 3.x is not supported currently.
7676

7777
#### macOS
7878

79-
To build for macOS, you need [Xcode 11 beta](https://developer.apple.com/xcode/downloads/).
79+
To build for macOS, you need [Xcode 10.2 beta](https://developer.apple.com/xcode/downloads/).
8080
The required version of Xcode changes frequently, and is often a beta release.
8181
Check this document or the host information on <https://ci.swift.org> for the
8282
current required version.
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
Name: Accelerate
2+
Enumerators:
3+
- Name: BNNSDataTypeFloatBit
4+
Availability: nonswift
5+
- Name: BNNSDataTypeIntBit
6+
Availability: nonswift
7+
- Name: BNNSDataTypeUIntBit
8+
Availability: nonswift
9+
- Name: BNNSDataTypeIndexedBit
10+
Availability: nonswift
11+
- Name: BNNSDataTypeFloat16
12+
SwiftPrivate: true
13+
- Name: BNNSDataTypeFloat32
14+
SwiftPrivate: true
15+
- Name: BNNSDataTypeInt8
16+
SwiftPrivate: true
17+
- Name: BNNSDataTypeInt16
18+
SwiftPrivate: true
19+
- Name: BNNSDataTypeInt32
20+
SwiftPrivate: true
21+
- Name: BNNSDataTypeUInt8
22+
SwiftPrivate: true
23+
- Name: BNNSDataTypeUInt16
24+
SwiftPrivate: true
25+
- Name: BNNSDataTypeUInt32
26+
SwiftPrivate: true
27+
- Name: BNNSDataTypeIndexed8
28+
SwiftPrivate: true
29+
30+
- Name: BNNSPoolingFunctionMax
31+
SwiftPrivate: true
32+
- Name: BNNSPoolingFunctionAverage
33+
SwiftPrivate: true
34+
35+
- Name: BNNSActivationFunctionIdentity
36+
SwiftPrivate: true
37+
- Name: BNNSActivationFunctionRectifiedLinear
38+
SwiftPrivate: true
39+
- Name: BNNSActivationFunctionLeakyRectifiedLinear
40+
SwiftPrivate: true
41+
- Name: BNNSActivationFunctionSigmoid
42+
SwiftPrivate: true
43+
- Name: BNNSActivationFunctionTanh
44+
SwiftPrivate: true
45+
- Name: BNNSActivationFunctionScaledTanh
46+
SwiftPrivate: true
47+
- Name: BNNSActivationFunctionAbs
48+
SwiftPrivate: true
49+
- Name: BNNSActivationFunctionLinear
50+
SwiftPrivate: true
51+
- Name: BNNSActivationFunctionClamp
52+
SwiftPrivate: true
53+
- Name: BNNSActivationFunctionIntegerLinearSaturate
54+
SwiftPrivate: true
55+
- Name: BNNSActivationFunctionIntegerLinearSaturatePerChannel
56+
SwiftPrivate: true
57+
- Name: BNNSActivationFunctionSoftmax
58+
SwiftPrivate: true
59+
60+
- Name: BNNSFlagsUseClientPtr
61+
SwiftPrivate: true

branches/rxwei-patch-1/apinotes/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
set(sources
2+
Accelerate.apinotes
23
Dispatch.apinotes
4+
ScriptingBridge.apinotes
35
os.apinotes
46
)
57

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
Name: ScriptingBridge
3+
Classes:
4+
- Name: SBElementArray
5+
SwiftImportAsNonGeneric: true

branches/rxwei-patch-1/benchmark/single-source/RandomValues.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public func run_RandomIntegersLCG(_ N: Int) {
6363
for _ in 0 ..< 100_000 {
6464
x &+= Int64.random(in: 0...10_000, using: &generator)
6565
}
66-
blackHole(x)
66+
CheckResults(x == 498214315)
6767
}
6868
}
6969

branches/rxwei-patch-1/cmake/modules/AddSwift.cmake

Lines changed: 10 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -303,11 +303,6 @@ function(_add_variant_c_compile_flags)
303303
"-fcoverage-mapping")
304304
endif()
305305

306-
if((CFLAGS_ARCH STREQUAL "armv7" OR CFLAGS_ARCH STREQUAL "aarch64") AND
307-
(CFLAGS_SDK STREQUAL "LINUX" OR CFLAGS_SDK STREQUAL "ANDROID"))
308-
list(APPEND result -funwind-tables)
309-
endif()
310-
311306
if("${CFLAGS_SDK}" STREQUAL "ANDROID")
312307
swift_android_libcxx_include_paths(CFLAGS_CXX_INCLUDES)
313308
swift_android_include_for_arch("${CFLAGS_ARCH}" "${CFLAGS_ARCH}_INCLUDE")
@@ -932,17 +927,6 @@ function(_add_swift_library_single target name)
932927
endif()
933928
endif()
934929

935-
# Only build the modules for any arch listed in the *_MODULE_ARCHITECTURES.
936-
if(SWIFTLIB_SINGLE_SDK IN_LIST SWIFT_APPLE_PLATFORMS
937-
AND SWIFTLIB_SINGLE_ARCHITECTURE IN_LIST SWIFT_SDK_${SWIFTLIB_SINGLE_SDK}_MODULE_ARCHITECTURES)
938-
# Create dummy target to hook up the module target dependency.
939-
add_custom_target("${target}"
940-
DEPENDS
941-
"${swift_module_dependency_target}")
942-
943-
return()
944-
endif()
945-
946930
set(SWIFTLIB_INCORPORATED_OBJECT_LIBRARIES_EXPRESSIONS)
947931
foreach(object_library ${SWIFTLIB_SINGLE_INCORPORATE_OBJECT_LIBRARIES})
948932
list(APPEND SWIFTLIB_INCORPORATED_OBJECT_LIBRARIES_EXPRESSIONS
@@ -1709,6 +1693,7 @@ function(add_swift_target_library name)
17091693
if("${SWIFTLIB_TARGET_SDKS}" STREQUAL "")
17101694
set(SWIFTLIB_TARGET_SDKS ${SWIFT_SDKS})
17111695
endif()
1696+
list_replace(SWIFTLIB_TARGET_SDKS ALL_POSIX_PLATFORMS "ALL_APPLE_PLATFORMS;ANDROID;CYGWIN;FREEBSD;LINUX;HAIKU")
17121697
list_replace(SWIFTLIB_TARGET_SDKS ALL_APPLE_PLATFORMS "${SWIFT_APPLE_PLATFORMS}")
17131698

17141699
# All Swift code depends on the standard library, except for the standard
@@ -1862,13 +1847,8 @@ function(add_swift_target_library name)
18621847
list(APPEND swiftlib_link_flags_all "-Wl,-z,defs")
18631848
endif()
18641849

1865-
set(sdk_supported_archs
1866-
${SWIFT_SDK_${sdk}_ARCHITECTURES}
1867-
${SWIFT_SDK_${sdk}_MODULE_ARCHITECTURES})
1868-
list(REMOVE_DUPLICATES sdk_supported_archs)
1869-
18701850
# For each architecture supported by this SDK
1871-
foreach(arch ${sdk_supported_archs})
1851+
foreach(arch ${SWIFT_SDK_${sdk}_ARCHITECTURES})
18721852
# Configure variables for this subdirectory.
18731853
set(VARIANT_SUFFIX "-${SWIFT_SDK_${sdk}_LIB_SUBDIR}-${arch}")
18741854
set(VARIANT_NAME "${name}${VARIANT_SUFFIX}")
@@ -1990,38 +1970,11 @@ function(add_swift_target_library name)
19901970
endforeach()
19911971
endif()
19921972

1993-
if(arch IN_LIST SWIFT_SDK_${sdk}_ARCHITECTURES)
1994-
# Note this thin library.
1995-
list(APPEND THIN_INPUT_TARGETS ${VARIANT_NAME})
1996-
endif()
1973+
# Note this thin library.
1974+
list(APPEND THIN_INPUT_TARGETS ${VARIANT_NAME})
19971975
endif()
19981976
endforeach()
19991977

2000-
# Configure module-only targets
2001-
if(NOT SWIFT_SDK_${sdk}_ARCHITECTURES
2002-
AND SWIFT_SDK_${sdk}_MODULE_ARCHITECTURES)
2003-
set(_target "${name}-${SWIFT_SDK_${sdk}_LIB_SUBDIR}")
2004-
2005-
# Create unified sdk target
2006-
add_custom_target("${_target}")
2007-
2008-
foreach(_arch ${SWIFT_SDK_${sdk}_MODULE_ARCHITECTURES})
2009-
set(_variant_suffix "-${SWIFT_SDK_${sdk}_LIB_SUBDIR}-${_arch}")
2010-
set(_module_variant_name "${name}-swiftmodule-${_variant_suffix}")
2011-
2012-
add_dependencies("${_target}" ${_module_variant_name})
2013-
2014-
# Add Swift standard library targets as dependencies to the top-level
2015-
# convenience target.
2016-
if(TARGET "swift-stdlib${_variant_suffix}")
2017-
add_dependencies("swift-stdlib${_variant_suffix}"
2018-
"${_target}")
2019-
endif()
2020-
endforeach()
2021-
2022-
return()
2023-
endif()
2024-
20251978
if(NOT SWIFTLIB_OBJECT_LIBRARY)
20261979
# Determine the name of the universal library.
20271980
if(SWIFTLIB_SHARED)
@@ -2112,35 +2065,12 @@ function(add_swift_target_library name)
21122065
endforeach()
21132066
endif()
21142067

2115-
swift_is_installing_component(
2116-
"${SWIFTLIB_INSTALL_IN_COMPONENT}"
2117-
is_installing)
2118-
2119-
# Add the arch-specific library targets to the global exports.
2120-
foreach(arch ${SWIFT_SDK_${sdk}_ARCHITECTURES})
2121-
set(_variant_name "${name}-${SWIFT_SDK_${sdk}_LIB_SUBDIR}-${arch}")
2122-
if(NOT TARGET "${_variant_name}")
2123-
continue()
2124-
endif()
2125-
2126-
if(is_installing)
2127-
set_property(GLOBAL APPEND
2128-
PROPERTY SWIFT_EXPORTS ${_variant_name})
2129-
else()
2130-
set_property(GLOBAL APPEND
2131-
PROPERTY SWIFT_BUILDTREE_EXPORTS ${_variant_name})
2132-
endif()
2133-
endforeach()
2134-
2135-
# Add the swiftmodule-only targets to the lipo target depdencies.
2136-
foreach(arch ${SWIFT_SDK_${sdk}_MODULE_ARCHITECTURES})
2137-
set(_variant_name "${name}-${SWIFT_SDK_${sdk}_LIB_SUBDIR}-${arch}")
2138-
if(NOT TARGET "${_variant_name}")
2139-
continue()
2140-
endif()
2141-
2142-
add_dependencies("${lipo_target}" "${_variant_name}")
2143-
endforeach()
2068+
swift_is_installing_component("${SWIFTLIB_INSTALL_IN_COMPONENT}" is_installing)
2069+
if(NOT is_installing)
2070+
set_property(GLOBAL APPEND PROPERTY SWIFT_BUILDTREE_EXPORTS ${VARIANT_NAME})
2071+
else()
2072+
set_property(GLOBAL APPEND PROPERTY SWIFT_EXPORTS ${VARIANT_NAME})
2073+
endif()
21442074

21452075
# If we built static variants of the library, create a lipo target for
21462076
# them.

branches/rxwei-patch-1/cmake/modules/StandaloneOverlay.cmake

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -65,16 +65,6 @@ option(SWIFT_ENABLE_PARSEABLE_MODULE_INTERFACES
6565
set(SWIFT_STDLIB_BUILD_TYPE "${CMAKE_BUILD_TYPE}" CACHE STRING
6666
"Build type for the Swift standard library and SDK overlays.")
6767

68-
set(SWIFT_DARWIN_SUPPORTED_ARCHS "" CACHE STRING
69-
"Semicolon-separated list of architectures to configure on Darwin platforms. \
70-
If left empty all default architectures are configured.")
71-
72-
set(SWIFT_DARWIN_MODULE_ARCHS "" CACHE STRING
73-
"Semicolon-separated list of architectures to configure Swift module-only \
74-
targets on Darwin platforms. These targets are in addition to the full \
75-
library targets.")
76-
77-
7868
# -----------------------------------------------------------------------------
7969
# Constants
8070

branches/rxwei-patch-1/cmake/modules/SwiftConfigureSDK.cmake

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,6 @@ function(_report_sdk prefix)
5151
message(STATUS " Triple name: ${SWIFT_SDK_${prefix}_TRIPLE_NAME}")
5252
endif()
5353
message(STATUS " Architectures: ${SWIFT_SDK_${prefix}_ARCHITECTURES}")
54-
if(SWIFT_SDK_${prefix}_MODULE_ARCHITECTURES)
55-
message(STATUS " Module Architectures: ${SWIFT_SDK_${prefix}_MODULE_ARCHITECTURES}")
56-
endif()
5754
if(NOT prefix IN_LIST SWIFT_APPLE_PLATFORMS)
5855
if(SWIFT_BUILD_STDLIB)
5956
foreach(arch ${SWIFT_SDK_${prefix}_ARCHITECTURES})
@@ -144,30 +141,9 @@ macro(configure_sdk_darwin
144141
set(SWIFT_SDK_${prefix}_LIB_SUBDIR "${xcrun_name}")
145142
set(SWIFT_SDK_${prefix}_VERSION_MIN_NAME "${version_min_name}")
146143
set(SWIFT_SDK_${prefix}_TRIPLE_NAME "${triple_name}")
144+
set(SWIFT_SDK_${prefix}_ARCHITECTURES "${architectures}")
147145
set(SWIFT_SDK_${prefix}_OBJECT_FORMAT "MACHO")
148146

149-
set(SWIFT_SDK_${prefix}_ARCHITECTURES ${architectures})
150-
if(SWIFT_DARWIN_SUPPORTED_ARCHS)
151-
list_intersect(
152-
"${architectures}" # lhs
153-
"${SWIFT_DARWIN_SUPPORTED_ARCHS}" # rhs
154-
SWIFT_SDK_${prefix}_ARCHITECTURES) # result
155-
endif()
156-
157-
list_intersect(
158-
"${SWIFT_DARWIN_MODULE_ARCHS}" # lhs
159-
"${architectures}" # rhs
160-
SWIFT_SDK_${prefix}_MODULE_ARCHITECTURES) # result
161-
162-
# Ensure the architectures and module-only architectures lists are mutually
163-
# exclusive.
164-
list_subtract(
165-
"${SWIFT_SDK_${prefix}_MODULE_ARCHITECTURES}" # lhs
166-
"${SWIFT_SDK_${prefix}_ARCHITECTURES}" # rhs
167-
SWIFT_SDK_${prefix}_MODULE_ARCHITECTURES) # result
168-
169-
# Configure variables for _all_ architectures even if we aren't "building"
170-
# them because they aren't supported.
171147
foreach(arch ${architectures})
172148
# On Darwin, all archs share the same SDK path.
173149
set(SWIFT_SDK_${prefix}_ARCH_${arch}_PATH "${SWIFT_SDK_${prefix}_PATH}")

branches/rxwei-patch-1/include/swift/AST/Attr.def

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,6 @@ DECL_ATTR(_private, PrivateImport,
394394
SIMPLE_DECL_ATTR(_alwaysEmitIntoClient, AlwaysEmitIntoClient,
395395
OnVar | OnSubscript | OnAbstractFunction | UserInaccessible,
396396
83)
397-
398397
SIMPLE_DECL_ATTR(_implementationOnly, ImplementationOnly,
399398
OnImport | UserInaccessible,
400399
84)
@@ -408,10 +407,6 @@ SIMPLE_DECL_ATTR(_disfavoredOverload, DisfavoredOverload,
408407
OnAbstractFunction | OnVar | OnSubscript | UserInaccessible,
409408
87)
410409

411-
SIMPLE_DECL_ATTR(IBSegueAction, IBSegueAction,
412-
OnFunc,
413-
95)
414-
415410
#undef TYPE_ATTR
416411
#undef DECL_ATTR_ALIAS
417412
#undef CONTEXTUAL_DECL_ATTR_ALIAS

branches/rxwei-patch-1/include/swift/AST/AvailabilitySpec.h

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,12 +83,7 @@ class PlatformVersionConstraintAvailabilitySpec : public AvailabilitySpec {
8383
/// The required platform.
8484
PlatformKind getPlatform() const { return Platform; }
8585
SourceLoc getPlatformLoc() const { return PlatformLoc; }
86-
87-
/// Returns true when the constraint is for a platform that was not
88-
/// recognized. This enables better recovery during parsing but should never
89-
/// be true after parsing is completed.
90-
bool isUnrecognizedPlatform() const { return Platform == PlatformKind::none; }
91-
86+
9287
// The platform version to compare against.
9388
llvm::VersionTuple getVersion() const { return Version; }
9489
SourceRange getVersionSrcRange() const { return VersionSrcRange; }

branches/rxwei-patch-1/include/swift/AST/Decl.h

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ class alignas(1 << DeclAlignInBits) Decl {
553553
NumRequirementsInSignature : 16
554554
);
555555

556-
SWIFT_INLINE_BITFIELD(ClassDecl, NominalTypeDecl, 1+2+1+2+1+6+1+1+1+1,
556+
SWIFT_INLINE_BITFIELD(ClassDecl, NominalTypeDecl, 1+2+1+2+1+6+1+1+1,
557557
/// Whether this class requires all of its instance variables to
558558
/// have in-class initializers.
559559
RequiresStoredPropertyInits : 1,
@@ -581,11 +581,7 @@ class alignas(1 << DeclAlignInBits) Decl {
581581
AncestryComputed : 1,
582582

583583
HasMissingDesignatedInitializers : 1,
584-
HasMissingVTableEntries : 1,
585-
586-
/// Whether instances of this class are incompatible
587-
/// with weak and unowned references.
588-
IsIncompatibleWithWeakReferences : 1
584+
HasMissingVTableEntries : 1
589585
);
590586

591587
SWIFT_INLINE_BITFIELD(StructDecl, NominalTypeDecl, 1,
@@ -3864,17 +3860,6 @@ class ClassDecl final : public NominalTypeDecl {
38643860
Bits.ClassDecl.HasMissingVTableEntries = newValue;
38653861
}
38663862

3867-
/// Returns true if this class cannot be used with weak or unowned
3868-
/// references.
3869-
///
3870-
/// Note that this is true if this class or any of its ancestor classes
3871-
/// are marked incompatible.
3872-
bool isIncompatibleWithWeakReferences() const;
3873-
3874-
void setIsIncompatibleWithWeakReferences(bool newValue = true) {
3875-
Bits.ClassDecl.IsIncompatibleWithWeakReferences = newValue;
3876-
}
3877-
38783863
/// Find a method of a class that overrides a given method.
38793864
/// Return nullptr, if no such method exists.
38803865
AbstractFunctionDecl *findOverridingDecl(
@@ -6084,8 +6069,8 @@ class FuncDecl : public AbstractFunctionDecl {
60846069
/// True if the function is a defer body.
60856070
bool isDeferBody() const;
60866071

6087-
/// Perform basic checking to determine whether the @IBAction or
6088-
/// @IBSegueAction attribute can be applied to this function.
6072+
/// Perform basic checking to determine whether the @IBAction attribute can
6073+
/// be applied to this function.
60896074
bool isPotentialIBActionTarget() const;
60906075
};
60916076

0 commit comments

Comments
 (0)