Skip to content

Commit 758b31d

Browse files
Merge remote-tracking branch 'apple/main' into katei/merge-main-2023-04-06
2 parents 6e29584 + d5fdfa7 commit 758b31d

File tree

251 files changed

+5202
-2196
lines changed

Some content is hidden

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

251 files changed

+5202
-2196
lines changed

benchmark/cxx-source/CxxSetToCollection.swift

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ public let benchmarks = [
3636
runFunction: run_CxxSetOfU32_to_Set,
3737
tags: [.validation, .bridging, .cxxInterop],
3838
setUpFunction: makeSetOnce),
39+
BenchmarkInfo(
40+
name: "CxxSetU32.forEach",
41+
runFunction: run_CxxSetOfU32_forEach,
42+
tags: [.validation, .bridging, .cxxInterop],
43+
setUpFunction: makeSetOnce),
3944
]
4045

4146
func makeSetOnce() {
@@ -58,4 +63,13 @@ public func run_CxxSetOfU32_to_Set(_ n: Int) {
5863
}
5964
}
6065

66+
@inline(never)
67+
public func run_CxxSetOfU32_forEach(_ n: Int) {
68+
for _ in 0..<n {
69+
set.forEach {
70+
blackHole($0)
71+
}
72+
}
73+
}
74+
6175
#endif

docs/ContinuousIntegration.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,6 @@ macOS platform | @swift-ci Please smoke benchmark | S
9595
Linux platform | @swift-ci Please test Linux platform | Swift Test Linux Platform (smoke test)<br>Swift Test Linux Platform
9696
Linux platform | @swift-ci Please clean test Linux platform | Swift Test Linux Platform (smoke test)<br>Swift Test Linux Platform
9797
macOS platform | @swift-ci Please ASAN test | Swift ASAN Test macOS Platform
98-
Ubuntu 18.04 | @swift-ci Please test Ubuntu 18.04 platform | Swift Test Ubuntu 18.04 Platform
99-
Ubuntu 20.04 | @swift-ci Please test Ubuntu 20.04 platform | Swift Test Ubuntu 20.04 Platform
100-
CentOS 7 | @swift-ci Please test CentOS 7 platform | Swift Test CentOS 7 Platform
101-
CentOS 8 | @swift-ci Please test CentOS 8 platform | Swift Test CentOS 8 Platform
102-
Amazon Linux 2 | @swift-ci Please test Amazon Linux 2 platform | Swift Test Amazon Linux 2 Platform
10398

10499
The core principles of validation testing is that:
105100

docs/DebuggingTheCompiler.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ constraints and present the final type checked solution, e.g.:
164164

165165
```
166166
---Constraint solving at [test.swift:3:1 - line:3:1]---
167+
167168
---Initial constraints for the given expression---
168169
(integer_literal_expr type='$T0' location=test.swift:3:1 range=[test.swift:3:1 - line:3:1] value=0 builtin_initializer=**NULL** initializer=**NULL**)
169170
@@ -172,14 +173,14 @@ Type Variables:
172173
($T0 [attributes: [literal: integer]] [with possible bindings: (default type of literal) Int]) @ locator@0x13e009800 [[email protected]:3:1]
173174
174175
Inactive Constraints:
175-
$T0 literal conforms to ExpressibleByIntegerLiteral [[locator@0x13e009800 [[email protected]:3:1]]];
176+
$T0 literal conforms to ExpressibleByIntegerLiteral @ locator@0x13e009800 [[email protected]:3:1]
176177
177178
(Potential Binding(s):
178179
($T0 [attributes: [literal: integer]] [with possible bindings: (default type of literal) Int])
179180
(attempting type variable $T0 := Int
180-
(considering -> $T0 literal conforms to ExpressibleByIntegerLiteral [[locator@0x13e009800 [[email protected]:3:1]]];
181+
(considering: $T0 literal conforms to ExpressibleByIntegerLiteral @ locator@0x13e009800 [[email protected]:3:1]
181182
(simplification result:
182-
(removed constraint: $T0 literal conforms to ExpressibleByIntegerLiteral [[locator@0x13e009800 [[email protected]:3:1]]];)
183+
(removed constraint: $T0 literal conforms to ExpressibleByIntegerLiteral @ locator@0x13e009800 [[email protected]:3:1])
183184
)
184185
(outcome: simplified)
185186
)
@@ -188,7 +189,7 @@ Inactive Constraints:
188189
> $T0 := Int
189190
)
190191
(Removed Constraint:
191-
> $T0 literal conforms to ExpressibleByIntegerLiteral [[locator@0x13e009800 [[email protected]:3:1]]];
192+
> $T0 literal conforms to ExpressibleByIntegerLiteral @ locator@0x13e009800 [[email protected]:3:1]
192193
)
193194
)
194195
(found solution: <default 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0>)

0 commit comments

Comments
 (0)