Skip to content

Commit c8f248c

Browse files
author
George
committed
---
yaml --- r: 340667 b: refs/heads/rxwei-patch-1 c: 3391b74 h: refs/heads/master i: 340665: c1f9dbd 340663: f6398cd
1 parent 174c2a4 commit c8f248c

File tree

1,160 files changed

+15108
-31926
lines changed

Some content is hidden

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

1,160 files changed

+15108
-31926
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: 047749a745906f634e081e8b98a8a134a7c833b4
1018+
refs/heads/rxwei-patch-1: 3391b746d9fb36d7bbf428bdc3f5f69e2bb9ac6f
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/CHANGELOG.md

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -26,28 +26,6 @@ CHANGELOG
2626
Swift Next
2727
----------
2828

29-
* [SR-8974][]:
30-
31-
Duplicate tuple element labels are no longer allowed, because it leads
32-
to incorrect behavior. For example:
33-
34-
```
35-
let dupLabels: (foo: Int, foo: Int) = (foo: 1, foo: 2)
36-
37-
enum Foo { case bar(x: Int, x: Int) }
38-
let f: Foo = .bar(x: 0, x: 1)
39-
```
40-
41-
will now be diagnosed as an error.
42-
43-
Note: You can still use duplicate labels when declaring functions and
44-
subscripts, as long as the internal labels are different. For example:
45-
46-
```
47-
func foo(bar x: Int, bar y: Int) {}
48-
subscript(a x: Int, a y: Int) -> Int {}
49-
```
50-
5129
* [SR-6118][]:
5230

5331
Subscripts can now declare default arguments:
@@ -7718,6 +7696,5 @@ Swift 1.0
77187696
[SR-7799]: <https://bugs.swift.org/browse/SR-7799>
77197697
[SR-8109]: <https://bugs.swift.org/browse/SR-8109>
77207698
[SR-8546]: <https://bugs.swift.org/browse/SR-8546>
7721-
[SR-8974]: <https://bugs.swift.org/browse/SR-8974>
77227699
[SR-9043]: <https://bugs.swift.org/browse/SR-9043>
77237700
[SR-9827]: <https://bugs.swift.org/browse/SR-9827>

branches/rxwei-patch-1/CMakeLists.txt

Lines changed: 10 additions & 22 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
#
@@ -845,18 +834,14 @@ if("${CMAKE_SYSTEM_NAME}" STREQUAL "Darwin" AND NOT CMAKE_CROSSCOMPILING)
845834
set(CMAKE_OSX_DEPLOYMENT_TARGET "")
846835
endif()
847836

848-
if(SWIFT_INCLUDE_TOOLS)
849-
message(STATUS "Building host Swift tools for ${SWIFT_HOST_VARIANT_SDK} ${SWIFT_HOST_VARIANT_ARCH}")
850-
message(STATUS " Build type: ${CMAKE_BUILD_TYPE}")
851-
message(STATUS " Assertions: ${LLVM_ENABLE_ASSERTIONS}")
852-
message(STATUS " LTO: ${SWIFT_TOOLS_ENABLE_LTO}")
853-
message(STATUS "")
854-
else()
855-
message(STATUS "Not building host Swift tools")
856-
message(STATUS "")
857-
endif()
837+
message(STATUS "Building host Swift tools for ${SWIFT_HOST_VARIANT_SDK} ${SWIFT_HOST_VARIANT_ARCH}")
838+
message(STATUS " Build type: ${CMAKE_BUILD_TYPE}")
839+
message(STATUS " Assertions: ${LLVM_ENABLE_ASSERTIONS}")
840+
message(STATUS " LTO: ${SWIFT_TOOLS_ENABLE_LTO}")
841+
message(STATUS "")
842+
843+
if (SWIFT_BUILD_STDLIB OR SWIFT_BUILD_SDK_OVERLAY)
858844

859-
if(SWIFT_BUILD_STDLIB OR SWIFT_BUILD_SDK_OVERLAY)
860845
message(STATUS "Building Swift standard library and overlays for SDKs: ${SWIFT_SDKS}")
861846
message(STATUS " Build type: ${SWIFT_STDLIB_BUILD_TYPE}")
862847
message(STATUS " Assertions: ${SWIFT_STDLIB_ASSERTIONS}")
@@ -865,9 +850,12 @@ if(SWIFT_BUILD_STDLIB OR SWIFT_BUILD_SDK_OVERLAY)
865850
message(STATUS "Building Swift runtime with:")
866851
message(STATUS " Leak Detection Checker Entrypoints: ${SWIFT_RUNTIME_ENABLE_LEAK_CHECKER}")
867852
message(STATUS "")
853+
868854
else()
855+
869856
message(STATUS "Not building Swift standard library, SDK overlays, and runtime")
870857
message(STATUS "")
858+
871859
endif()
872860

873861
#

branches/rxwei-patch-1/README.md

Lines changed: 9 additions & 9 deletions
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.
@@ -98,7 +98,7 @@ Instructions for installing CMake and Ninja directly can be found [below](#build
9898

9999
For Ubuntu, you'll need the following development dependencies:
100100

101-
sudo apt-get install git cmake ninja-build clang python uuid-dev libicu-dev icu-devtools libedit-dev libxml2-dev libsqlite3-dev swig libpython-dev libncurses5-dev pkg-config libcurl4-openssl-dev systemtap-sdt-dev tzdata rsync
101+
sudo apt-get install git cmake ninja-build clang python uuid-dev libicu-dev icu-devtools libbsd-dev libedit-dev libxml2-dev libsqlite3-dev swig libpython-dev libncurses5-dev pkg-config libblocksruntime-dev libcurl4-openssl-dev systemtap-sdt-dev tzdata rsync
102102

103103
**Note:** LLDB currently requires at least `swig-1.3.40` but will successfully build
104104
with version 2 shipped with Ubuntu.
@@ -141,26 +141,26 @@ more environments.
141141

142142
To build using Ninja, run:
143143

144-
swift/utils/build-script --release-debuginfo
144+
utils/build-script --release-debuginfo
145145

146146
When developing Swift, it helps to build what you're working on in a debug
147147
configuration while building the rest of the project with optimizations. Below
148148
are some examples of using debug variants:
149149

150-
swift/utils/build-script --release-debuginfo --debug-swift # Swift frontend built in debug
151-
swift/utils/build-script --release-debuginfo --debug-swift-stdlib # Standard library built in debug
152-
swift/utils/build-script --release-debuginfo --debug-swift --force-optimized-typechecker # Swift frontend sans type checker built in debug
150+
utils/build-script --release-debuginfo --debug-swift # Swift frontend built in debug
151+
utils/build-script --release-debuginfo --debug-swift-stdlib # Standard library built in debug
152+
utils/build-script --release-debuginfo --debug-swift --force-optimized-typechecker # Swift frontend sans type checker built in debug
153153

154154
Limiting the amount of debug code in the compiler has a very large impact on
155155
Swift compile times, and in turn the test execution time. If you want to build
156156
the entire project in debug, you can run:
157157

158-
swift/utils/build-script --debug
158+
utils/build-script --debug
159159

160160
For documentation of all available arguments, as well as additional usage
161161
information, see the inline help:
162162

163-
swift/utils/build-script -h
163+
utils/build-script -h
164164

165165
#### Xcode
166166

@@ -223,7 +223,7 @@ script is used by swift.org's CI to produce snapshots and can allow for one to
223223
locally reproduce such builds for development or distribution purposes. E.x.:
224224

225225
```
226-
$ ./swift/utils/build-toolchain $BUNDLE_PREFIX
226+
$ ./utils/build-toolchain $BUNDLE_PREFIX
227227
```
228228

229229
where ``$BUNDLE_PREFIX`` is a string that will be prepended to the build
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/scripts/compare_perf_tests.py

Lines changed: 51 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -547,6 +547,15 @@ def __init__(self, comparator, changes_only,
547547
self.changes_only = changes_only
548548
self.single_table = single_table
549549

550+
MARKDOWN_DETAIL = """
551+
<details {3}>
552+
<summary>{0} ({1})</summary>
553+
{2}
554+
</details>
555+
"""
556+
GIT_DETAIL = """
557+
{0} ({1}): {2}"""
558+
550559
PERFORMANCE_TEST_RESULT_HEADER = ('TEST', 'MIN', 'MAX', 'MEAN', 'MAX_RSS')
551560
RESULT_COMPARISON_HEADER = ('TEST', 'OLD', 'NEW', 'DELTA', 'RATIO')
552561

@@ -580,26 +589,16 @@ def values(result):
580589
def markdown(self):
581590
"""Report results of benchmark comparisons in Markdown format."""
582591
return self._formatted_text(
583-
label_formatter=lambda s: ('**' + s + '**'),
584-
COLUMN_SEPARATOR=' | ',
585-
DELIMITER_ROW=([':---'] + ['---:'] * 4),
586-
SEPARATOR='&nbsp; | | | | \n',
587-
SECTION="""
588-
<details {3}>
589-
<summary>{0} ({1})</summary>
590-
{2}
591-
</details>
592-
""")
592+
ROW='{0} | {1} | {2} | {3} | {4} \n',
593+
HEADER_SEPARATOR='---',
594+
DETAIL=self.MARKDOWN_DETAIL)
593595

594596
def git(self):
595597
"""Report results of benchmark comparisons in 'git' format."""
596598
return self._formatted_text(
597-
label_formatter=lambda s: s.upper(),
598-
COLUMN_SEPARATOR=' ',
599-
DELIMITER_ROW=None,
600-
SEPARATOR='\n',
601-
SECTION="""
602-
{0} ({1}): \n{2}""")
599+
ROW='{0} {1} {2} {3} {4} \n',
600+
HEADER_SEPARATOR=' ',
601+
DETAIL=self.GIT_DETAIL)
603602

604603
def _column_widths(self):
605604
changed = self.comparator.decreased + self.comparator.increased
@@ -615,49 +614,53 @@ def _column_widths(self):
615614
]
616615

617616
def max_widths(maximum, widths):
618-
return map(max, zip(maximum, widths))
617+
return tuple(map(max, zip(maximum, widths)))
619618

620-
return reduce(max_widths, widths, [0] * 5)
619+
return reduce(max_widths, widths, tuple([0] * 5))
621620

622-
def _formatted_text(self, label_formatter, COLUMN_SEPARATOR,
623-
DELIMITER_ROW, SEPARATOR, SECTION):
621+
def _formatted_text(self, ROW, HEADER_SEPARATOR, DETAIL):
624622
widths = self._column_widths()
625623
self.header_printed = False
626624

627625
def justify_columns(contents):
628-
return [c.ljust(w) for w, c in zip(widths, contents)]
626+
return tuple([c.ljust(w) for w, c in zip(widths, contents)])
629627

630628
def row(contents):
631-
return ('' if not contents else
632-
COLUMN_SEPARATOR.join(justify_columns(contents)) + '\n')
633-
634-
def header(title, column_labels):
635-
labels = (column_labels if not self.single_table else
636-
map(label_formatter, (title, ) + column_labels[1:]))
637-
h = (('' if not self.header_printed else SEPARATOR) +
638-
row(labels) +
639-
(row(DELIMITER_ROW) if not self.header_printed else ''))
640-
if self.single_table and not self.header_printed:
641-
self.header_printed = True
642-
return h
643-
644-
def format_columns(r, is_strong):
645-
return (r if not is_strong else
646-
r[:-1] + ('**' + r[-1] + '**', ))
629+
return ROW.format(*justify_columns(contents))
630+
631+
def header(header):
632+
return '\n' + row(header) + row(tuple([HEADER_SEPARATOR] * 5))
633+
634+
def format_columns(r, strong):
635+
return (r if not strong else
636+
r[:-1] + ('**{0}**'.format(r[-1]), ))
647637

648638
def table(title, results, is_strong=False, is_open=False):
649-
if not results:
639+
rows = [
640+
row(format_columns(ReportFormatter.values(r), is_strong))
641+
for r in results
642+
]
643+
if not rows:
650644
return ''
651-
rows = [row(format_columns(ReportFormatter.values(r), is_strong))
652-
for r in results]
653-
table = (header(title if self.single_table else '',
654-
ReportFormatter.header_for(results[0])) +
655-
''.join(rows))
656-
return (table if self.single_table else
657-
SECTION.format(
658-
title, len(results), table, 'open' if is_open else ''))
659-
660-
return '\n' + ''.join([
645+
646+
if self.single_table:
647+
t = ''
648+
if not self.header_printed:
649+
t += header(ReportFormatter.header_for(results[0]))
650+
self.header_printed = True
651+
t += row(('**' + title + '**', '', '', '', ''))
652+
t += ''.join(rows)
653+
return t
654+
655+
return DETAIL.format(
656+
*[
657+
title, len(results),
658+
(header(ReportFormatter.header_for(results[0])) +
659+
''.join(rows)),
660+
('open' if is_open else '')
661+
])
662+
663+
return ''.join([
661664
table('Regression', self.comparator.decreased, True, True),
662665
table('Improvement', self.comparator.increased, True),
663666
('' if self.changes_only else

branches/rxwei-patch-1/benchmark/scripts/run_smoke_bench

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def main():
8888
help='In addition to stdout, write the results into a markdown file')
8989
argparser.add_argument(
9090
'-threshold', type=float,
91-
help='The performance threshold in %% which triggers a re-run',
91+
help='The performance threshold in % which triggers a re-run',
9292
default=5)
9393
argparser.add_argument(
9494
'-num-samples', type=int,

0 commit comments

Comments
 (0)