Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
2218 commits
Select commit Hold shift + click to select a range
9c9191e
Merge pull request #1073 from practicalswift/swiftc-28232-swift-typec…
gribozavr Jan 24, 2016
5692cd2
Merge pull request #1072 from practicalswift/typo-fixes-20160124
gribozavr Jan 24, 2016
04ae052
[swiftc] Add test case for crash triggered in swift::TypeBase::getMem…
practicalswift Jan 24, 2016
25c916e
PEP8: Fix all violations of type "missing whitespace after ':'" (E231)
practicalswift Jan 24, 2016
4fbc28c
PEP8: Fix all violations of type "continuation line with same indent …
practicalswift Jan 24, 2016
1ac7075
Merge pull request #1074 from practicalswift/swiftc-28233-swift-typeb…
gribozavr Jan 24, 2016
84a3118
PEP8: Fix all violations of type "missing whitespace after ','" (E231)
practicalswift Jan 24, 2016
3345256
PEP8: Fix violations of type "continuation line under-indented for ha…
practicalswift Jan 24, 2016
d779842
Add "noqa" marker and corresponding TODO for PEP8 violation that span…
practicalswift Jan 24, 2016
d021aed
PEP8: Fix all violations of type "too many blank lines" (E303)
practicalswift Jan 24, 2016
679f185
PEP8: Fix all violations of type "at least two spaces before inline c…
practicalswift Jan 24, 2016
77103db
[swiftc] Add test case for crash triggered in swift::ArchetypeBuilder…
practicalswift Jan 24, 2016
eedb0aa
Merge pull request #1077 from practicalswift/swiftc-28234-swift-arche…
gribozavr Jan 24, 2016
e06e27a
Merge pull request #1076 from practicalswift/non-controversial-pep8
gribozavr Jan 24, 2016
d7bdf55
[swiftc] Add test case for crash triggered in swift::ArchetypeBuilder…
practicalswift Jan 24, 2016
a9bd064
Merge pull request #1078 from practicalswift/swiftc-28235-swift-arche…
gribozavr Jan 24, 2016
0cb9573
Bring .gyb files in line with rest of code base in terms of PEP8 comp…
practicalswift Jan 24, 2016
02d9c3e
[swiftc] Add test case for crash triggered in swift::TypeChecker::typ…
practicalswift Jan 24, 2016
e0fdba9
[gardening] Avoid unnecessary list comprehensions
practicalswift Jan 24, 2016
4b0571b
[gardening] Fix documentation typos
practicalswift Jan 24, 2016
1f0643f
Correctly resolve associated types in nested protocols
JaSpa Jan 24, 2016
c1a746b
[build-script] There can only be one host target
modocache Jan 12, 2016
72dd6f0
Merge pull request #1070 from JaSpa/dump-ostream
lattner Jan 24, 2016
2f3aa90
Merge pull request #1071 from practicalswift/matching-parameter-names
lattner Jan 24, 2016
03cd2a4
Merge pull request #1080 from practicalswift/swiftc-28236-swift-typeb…
lattner Jan 24, 2016
4023896
Merge pull request #1082 from practicalswift/fix-documentation-typos-ii
lattner Jan 24, 2016
ca46695
[swiftc] Add test case for crash triggered in swift::ArchetypeBuilder…
practicalswift Jan 24, 2016
c97a76f
[Serialization] Add failing test creating extension for nested Type t…
NachoSoto Dec 13, 2015
44936e5
[Serialization] Add failing test instantiating value of type X.Type
NachoSoto Dec 14, 2015
71e00fe
[gardening] Fix typos: "word word" (two spaces) → "word word" (one s…
practicalswift Jan 24, 2016
ce69f1d
Decl attr applied to type check now more rigorous
SquaredTiki Jan 13, 2016
73b1d08
[gardening] Fix typos: "word word" (three spaces) → "word word" (on…
practicalswift Jan 24, 2016
3094ca9
Merge pull request #1081 from practicalswift/unnecessary-list-compreh…
gribozavr Jan 24, 2016
c00e9ed
Merge pull request #1087 from practicalswift/double-spaces
gribozavr Jan 24, 2016
4d1f00e
Merge pull request #1085 from practicalswift/swiftc-28237-swift-arche…
gribozavr Jan 24, 2016
f6adbb6
Merge pull request #948 from modocache/build-script-host-target
gribozavr Jan 25, 2016
a577043
Merge pull request #527 from NachoSoto/type-extension
lattner Jan 25, 2016
782a871
SILGen: Clean up some code to use getRValueInstanceType() instead of …
slavapestov Jan 25, 2016
7fad03d
Sema: Use accessors on members of resilient value types from within @…
slavapestov Jan 23, 2016
63d0331
[swiftc] Add test case for crash triggered in swift::TypeChecker::val…
practicalswift Jan 25, 2016
c4ee22c
Added a test to check the fix-it works correctly
SquaredTiki Jan 25, 2016
d16e4b0
[CodeCompletion] Add rudimentary support for configuring allowable co…
benlangmuir Jan 23, 2016
924cc48
Add side effects for fix_lifetime
aschwaighofer Jan 20, 2016
b30f9fe
Dictionary: More guaranteedNative fast paths
aschwaighofer Jan 21, 2016
ce10cc7
A dictionary must be native if *either* the key *or* the value is gua…
aschwaighofer Jan 25, 2016
2eb028b
[test] Mark tests unsupported on all Linux flavors
modocache Jan 25, 2016
5a951f9
Merge pull request #1090 from modocache/serialization-autolinking-uns…
gribozavr Jan 25, 2016
daa2976
Merge pull request #1091 from practicalswift/swiftc-28238-swift-typec…
gribozavr Jan 25, 2016
1383612
Projection: project_box is an address projection
eeckstein Jan 25, 2016
b745691
SIL refactoring: Move some functions out of SILValue and Operand
eeckstein Jan 25, 2016
015004e
[SR-610][stdlib] Use _initialize_to in _copyCollectionToNativeArrayBu…
lorentey Jan 24, 2016
24b5c4c
Move logic into one place by merging the first loop into the second
JaSpa Jan 25, 2016
d791213
Merge pull request #1083 from JaSpa/cleanup-resolveTypeInContext
slavapestov Jan 25, 2016
14d6054
tests: workaround for rdar://problem/24330686
eeckstein Jan 25, 2016
c8ad360
[gardening] Fix recently introduced typo
practicalswift Jan 25, 2016
7573302
[swiftc] Add test case for crash triggered in swift::DeclContext::loo…
practicalswift Jan 25, 2016
fb301fd
Merge pull request #1092 from practicalswift/typo-fixes-20160125
gribozavr Jan 25, 2016
57209b1
Merge pull request #1079 from practicalswift/pep8-fixes-for-gyb-files
gribozavr Jan 25, 2016
eb25fe4
Merge pull request #1093 from practicalswift/swiftc-28239-swift-declc…
gribozavr Jan 25, 2016
735eddc
[swiftc] Add test case for crash triggered in swift::ArchetypeBuilder…
practicalswift Jan 25, 2016
b0fff50
Merge pull request #1094 from practicalswift/swiftc-28240-swift-arche…
gribozavr Jan 25, 2016
90c84cd
[swiftc] Add test case for crash triggered in swift::ValueDecl::isAcc…
practicalswift Jan 25, 2016
c6305a3
Merge pull request #1095 from practicalswift/swiftc-28241-swift-value…
gribozavr Jan 25, 2016
df0fd36
[Coverage] Fix function mapping record emission
vedantk Jan 25, 2016
8336419
Include completion source location information compound DeclNames.
DougGregor Jan 25, 2016
f18c843
SIL: remove unneeded includes
eeckstein Jan 25, 2016
5a53b31
SIL: remove use-iteration functions from SILValue.
eeckstein Jan 25, 2016
506ab98
SIL: remove getTyp() from SILValue
eeckstein Jan 25, 2016
845b3fe
SIL: remove isValid() from SILValue. NFC
eeckstein Jan 25, 2016
d3c9753
SIL: remove dump and print from SILValue
eeckstein Jan 25, 2016
aef0a11
remove some unneeded forward declearations
eeckstein Jan 25, 2016
74d44b7
SIL: remove SILValue::getDef and add a cast operator to ValueBase * a…
eeckstein Jan 25, 2016
ae920a4
Changes required for ReconstructType to be able to reconstruct types …
Jan 25, 2016
66cf479
Add an API that exactly mimics LLDB's GetTypeFromMangledTypename but …
Jan 25, 2016
544a8ef
Merge pull request #1084 from lorentey/sr-610
gribozavr Jan 26, 2016
deac756
CMake: remove stale comment
gribozavr Jan 26, 2016
2fdc875
Merge pull request #1088 from SquaredTiki/sr215-fix
gribozavr Jan 26, 2016
9e3f23f
Regenerate the generated files after the generator script was updated
gribozavr Jan 26, 2016
873e023
[docs] LibraryEvolution: Move "Versioning Internal Decls" to the end.
jrose-apple Jan 25, 2016
812dbbb
[docs] LibraryEvolution: Eliminate the @fixed property attribute.
jrose-apple Jan 25, 2016
9df9ee9
[docs] LibraryEvolution: Weaken "fixed-layout" structs to "fixed-cont…
jrose-apple Jan 25, 2016
4f4ec2c
[docs] LibraryEvolution: Bring back "fixed-size" as a perf assertion.
jrose-apple Jan 26, 2016
d046d88
Revert "[Parser] Fix-it for declaration attributes being applied to p…
gribozavr Jan 26, 2016
4f32fda
Merge pull request #1098 from apple/revert-1088-sr215-fix
gribozavr Jan 26, 2016
c497ea9
Revert "[SR-610][Stdlib] Use for-in to iterate over CollectionType el…
gribozavr Jan 26, 2016
c212e76
Merge pull request #1099 from apple/revert-1084-sr-610
gribozavr Jan 26, 2016
1ad89fb
[CMake] Always use @rpath for XCTest
benlangmuir Jan 26, 2016
546471a
Port dead store elimination and redundant load elimination to use the…
trentxintong Jan 26, 2016
4084c23
Refactor redundant load elimination. NFC
trentxintong Jan 26, 2016
f5bd3ea
Optimize compilation time for RLE and DSE with respective
trentxintong Jan 26, 2016
5034e5b
Add in some throttle logic for RLE. This is mostly intended for funct…
trentxintong Jan 26, 2016
8a1dd8a
Optimize how most derived type is computed in the new projection path…
trentxintong Jan 26, 2016
e7ebfb6
[SR-510] Make closure as enum raw value parses as normal
dduan Jan 15, 2016
339cd94
Port self cycle redundant load test case for the new RLE
trentxintong Jan 26, 2016
22a6910
Remove test/SILOptimizer/global_lsopts_crash.sil and move its test to…
trentxintong Jan 26, 2016
ebcabd7
Merge pull request #987 from dduan/SR-510-3
jrose-apple Jan 26, 2016
2dfab70
fix <rdar://24314506> QoI: Fix-it for dictionary initializer on requi…
lattner Jan 26, 2016
e983501
Don't error when lexing UTF-8 BOM
tanadeau Jan 26, 2016
22e5ad8
Merge pull request #1100 from tanadeau/sr-615
lattner Jan 26, 2016
b5694e9
fix 28241-swift-valuedecl-isaccessiblefrom.swift
lattner Jan 26, 2016
8654282
fix 28239-swift-declcontext-lookupqualified.swift, module lookup can …
lattner Jan 26, 2016
54d438e
Fix small typos in build-script help
sryze Jan 26, 2016
1ff8c03
Merge pull request #1101 from sryze/master
gribozavr Jan 26, 2016
2b02b0f
Pretty up this testcase, NFC.
lattner Jan 26, 2016
b939fde
IRGen: Refactor away MetadataAccessStrategy::Direct, NFC
slavapestov Jan 26, 2016
deadb2b
[gardening] Fix recently introduced typo: "polymorhpic" → "polymorphic"
practicalswift Jan 26, 2016
b8bac20
Merge pull request #1102 from practicalswift/typo-fixes-20160126
lattner Jan 26, 2016
bb2391a
Add -strip-field-names and -strip-field-metadata IRGen options
bitjammer Jan 23, 2016
aa57b74
Stub out FieldDescriptor LLVM type
bitjammer Jan 25, 2016
640cefd
IRGen FieldRecordFlags: Use already-defined Ownership type
bitjammer Jan 26, 2016
5f25606
Add 8-bit constant capabilities to ConstantBuilder
bitjammer Jan 26, 2016
ca1804f
IRGen: Add helper methods to get field metadata and field name sections
bitjammer Jan 26, 2016
51ee08e
IRGen: Add getAddrOfFieldNames helper
bitjammer Jan 26, 2016
9f83c43
SIL: remove unused functions from SILValue
eeckstein Jan 25, 2016
8af1372
remove unused variable
eeckstein Jan 26, 2016
250cac1
Remove some function overloads for SILValue/ValueBase*
eeckstein Jan 26, 2016
d2cccde
Merge pull request #741 from nielsandriesse/collectiontype-overloads
moiseev Jan 26, 2016
8fe3a50
[swiftc] Add test case for crash triggered in swift::constraints::Con…
practicalswift Jan 26, 2016
a6f123f
[test] ARM-proof assembly check in variables test
modocache Jan 26, 2016
b54976b
[Sema] Fix SR-590 Passing two parameters to a function that takes one…
ahoppen Jan 26, 2016
70a0176
Merge pull request #1106 from modocache/test-debuginfo-variables-arm-…
gribozavr Jan 26, 2016
2344969
Merge pull request #1105 from practicalswift/swiftc-23445-swift-const…
gribozavr Jan 26, 2016
6b102f1
[Preset] Add preset to build and test all platform on OS X
shahmishal Jan 26, 2016
0515889
Remove one invocation of the ARC optimizer.
nadavrot Jan 26, 2016
19fe31f
IRGen: Emit and use accessors for generic type metadata
slavapestov Jan 26, 2016
3a7e511
[docs] LibraryEvolution: To remove an override, the type must match e…
jrose-apple Jan 20, 2016
8aebe8d
[docs] LibraryEvolution: Public members get a default version.
jrose-apple Jan 27, 2016
aeeb9c1
Move collection testing code from StdlibUnittest to a new library
gribozavr Jan 25, 2016
4c59058
Move Default* and Minimal* colections to StdlibCollectionUnittest
gribozavr Jan 26, 2016
5591e9d
Merge pull request #1110 from shahmishal/master
swift-ci Jan 27, 2016
10d5b23
[SR-88] Reinstate mirror migration commit
austinzheng Jan 23, 2016
d841fb2
Port more tests from the old loadstoreopts to use on the new RLE/DSE.
trentxintong Jan 26, 2016
b3d0d81
Change SmallDenseMap initial size from 4 to 16. It seems this gives a…
trentxintong Jan 26, 2016
925eb2e
Correct an inefficiency in initial state of the data flow in RLE
trentxintong Jan 26, 2016
9c3cdcc
Replace some DenseMap with SmallDenseMap. Many, if not most functions…
trentxintong Jan 26, 2016
cc30a68
Move a logic to short circuit a enumerate location computation at the…
trentxintong Jan 26, 2016
dd8244f
Set the kill bit for the store at the end of the basic block where th…
trentxintong Jan 26, 2016
fefb984
The removePrefix in the new projection path does not modify the path …
trentxintong Jan 27, 2016
e811a64
Further improvement of diagnoses on args to generic functions
gregomni Jan 24, 2016
8ce00e3
Implement index_addr in alias analysis. We make use the new projectio…
trentxintong Jan 27, 2016
b229099
Allow StdlibCollectionUnittest to be built on Linux and FreeBSD
gribozavr Jan 27, 2016
dccf315
SE-0022: Implement parsing, AST, and semantic analysis for #selector.
DougGregor Jan 26, 2016
5c2bb09
IRGen: Remove outdated comment, NFC
slavapestov Jan 27, 2016
c223a3b
Merge pull request #1058 from austinzheng/az-port-mirror
swift-ci Jan 27, 2016
c78cbc3
Fix typo: not -> no
Jan 25, 2016
de21de3
Make String validation tests runnable on Linux
glessard Jan 20, 2016
4d683be
[gardening] Fix recently introduced incorrect headers
practicalswift Jan 27, 2016
75bec87
[gardening] Fix recently introduced typo: optimsitic → optimistic
practicalswift Jan 27, 2016
ae28353
Merge pull request #1113 from practicalswift/typo-fixes-20160127
trentxintong Jan 27, 2016
905fd37
COWArrayOpt: ensure that we can hoist all address projections that we…
eeckstein Jan 27, 2016
9be163b
Merge pull request #1112 from practicalswift/incorrect-headers
gribozavr Jan 27, 2016
88b7d02
Merge pull request #1111 from glessard/string-tests-linux-dev
gribozavr Jan 27, 2016
182bb7f
Revert "Merge pull request #1058 from austinzheng/az-port-mirror"
atrick Jan 27, 2016
16a0d7b
Merge pull request #1089 from gregomni/generic-func-args
lattner Jan 27, 2016
0dcd84f
Merge pull request #1107 from ahoppen/master
lattner Jan 27, 2016
033934d
Rename FunctionAnalyzer to SignatureOptimizer.
Jan 27, 2016
c404cf2
Failing string ordering on linux test
rtreffer Jan 27, 2016
ee946dc
[swiftc] Add test case for crash triggered in swift::VarDecl::emitLet…
practicalswift Jan 27, 2016
ec3c3bf
Merge pull request #1115 from practicalswift/swiftc-24969-swift-varde…
gribozavr Jan 27, 2016
ad2884a
[gardening] Fix recently introduced typo: "arguement" → "argument"
practicalswift Jan 27, 2016
d6f8ad0
Add a method to RequirementRepr that breaks the deserialized written …
nkcsgexi Jan 27, 2016
eebe5ea
Merge pull request #1117 from practicalswift/typo-fixes-20160127b
gribozavr Jan 27, 2016
5a67b00
[swiftc] Add test case for crash triggered in swift::TypeRepr::walk(s…
practicalswift Jan 27, 2016
4c5fe97
Merge pull request #1118 from practicalswift/swiftc-28198-swift-typer…
gribozavr Jan 27, 2016
9dd8bed
Fixed source range for ParamDecl with implicit type location
Jan 25, 2016
7c321c0
Fixed interpolated string literal end location
Jan 25, 2016
42cba88
Properly handle tokens split in parser inside swift::tokenize(...)
Jan 25, 2016
db6582c
Fixed several AST nodes wrongly marked with implicit/explicit flag
Jan 25, 2016
3205d42
Added getter for full (raw) text of the token
Jan 25, 2016
621e117
Preserving source range of PBD entry's original initialization.
Jan 25, 2016
7b3b7a3
Don't skip creating CoerceExpr in case forced_downcast_noop warning
Jan 25, 2016
8f33a03
Visiting type repr part of the enum element declaration
Jan 25, 2016
4f92a08
Adding a location of the var/let/inout to ParamDecl
Jan 25, 2016
b72d053
Changed TypeChecker::callWitness(...) to use proper location for Tupl…
Jan 27, 2016
7138e08
[validation-test][FreeBSD] xfail Foundation check
modocache Jan 27, 2016
7c0e087
[SIL] Extend the string_literal instruction with an 'objc_selector' e…
DougGregor Jan 26, 2016
89834f8
[ObjC IRGen] Clean up emission of Objective-C selectors.
DougGregor Jan 27, 2016
f7407f6
[SILGen] SE-0022: emit SIL for #selector expressions.
DougGregor Jan 27, 2016
096cab6
Merge pull request #1119 from modocache/validation-test-linux-freebsd…
gribozavr Jan 27, 2016
ff8c9e4
Fix a logic error in SimplifyCFG. isReachable is only used as part of…
trentxintong Jan 27, 2016
29bd8cc
Merge from upstream and resolve conflicts
an0 Jan 27, 2016
82fa471
Add .xfail for platforms without Objc runtime (FreeBSD and Linux)
rtreffer Jan 27, 2016
b4cd0e8
Re-enable validation-test/stdlib/XCTest.swift on OS X
gribozavr Jan 27, 2016
6c19796
CollectionsMoveIndices prototype: migrate to 'associatedtype'
gribozavr Jan 27, 2016
ecd47e0
PlaygroundTransform: Use a global TmpNameIndex to avoid having multiple
adrian-prantl Jan 27, 2016
98715dd
Merge pull request #1114 from rtreffer/linux-broken-string-ordering-r…
moiseev Jan 27, 2016
dd18018
Remove unused local variable.
Jan 27, 2016
3723b49
Convert a member variable to a local variable.
Jan 27, 2016
dd6cc10
[swiftc] Add test case for crash triggered in swift::TypeChecker::res…
practicalswift Jan 27, 2016
f7029d9
[Coverage] Fix crash when assigning counter to orphan if_expr
vedantk Jan 27, 2016
9a657f7
[ClangImporter] Wait until a bridging header is fully parsed to impor…
jrose-apple Jan 27, 2016
5c96bc4
RLE marks the LiveOut of unreachable block as 0. This is done to simp…
trentxintong Jan 27, 2016
2f5c74e
Merge pull request #1121 from practicalswift/swiftc-28212-swift-typec…
gribozavr Jan 27, 2016
a7cd2d2
Remove unused getArgList().
Jan 27, 2016
b995540
[Clang importer] Lowercase plural initialisms correctly.
DougGregor Jan 28, 2016
00313a1
test/IRGen/objc_selector.sil has an uninteresting 64-bit dependency.
DougGregor Jan 28, 2016
da93f6c
Stop emitting most duplicated only-as-generic-constraint errors.
gregomni Jan 23, 2016
77918a8
[SR-88] Reinstate Mirror migration changes, fix test issues
austinzheng Jan 28, 2016
4d0c060
Merge pull request #1123 from austinzheng/sr-88
atrick Jan 28, 2016
7af218f
Fix Constraints/diagnostics.swift on arm targets (No Float80 type).
atrick Jan 28, 2016
418154e
Merge pull request #1069 from gregomni/sr-38
slavapestov Jan 28, 2016
27da265
Refactor some random usages of contextual types, NFC
slavapestov Jan 27, 2016
3550897
The previous patch accidentally fixed some compiler_crashers
slavapestov Jan 28, 2016
f439a9d
resolve-crashes.py can now resolve IDE/crashers
slavapestov Jan 28, 2016
65dd0e7
Protocol conformances can now reference resilient value types
slavapestov Jan 27, 2016
4fd1387
Revert "Protocol conformances can now reference resilient value types"
slavapestov Jan 28, 2016
18cec6c
[swiftc] Add test case for crash triggered in swift::constraints::Con…
practicalswift Jan 28, 2016
d44d6e7
Merge pull request #1124 from practicalswift/swiftc-28242-swift-const…
gribozavr Jan 28, 2016
c99a5ba
[swiftc] Add test case for crash triggered in swift::TypeBase::getCan…
practicalswift Jan 28, 2016
148c821
Fix test failure
an0 Jan 28, 2016
3fbbee6
Merge pull request #1125 from practicalswift/swiftc-28243-swift-typeb…
gribozavr Jan 28, 2016
1ae71d4
Merge from upstream and resolve conflicts
an0 Jan 28, 2016
b5ca9e1
Debug info: Don't crash when a closure has two arguments with the sam…
adrian-prantl Jan 28, 2016
fc3a264
Improve diagnoses on args to generic members
gregomni Jan 28, 2016
1a830fa
SE-0022: Deprecate string-literal-as-selector in favor of #selector.
DougGregor Jan 28, 2016
f585b07
Merge pull request #1127 from gregomni/generic-func-args
lattner Jan 28, 2016
b1a7cea
Add '&' and '|' to the list of potentially symmetric operators.
jopamer Jan 25, 2016
d7fb571
When solving for type variable bindings, protect against trying the s…
jopamer Jan 25, 2016
096ff92
When trying out potential bindings for a given type variable, take gr…
jopamer Jan 28, 2016
2a42664
Use #selector in StdlibUnitTest's Foundation extras
DougGregor Jan 28, 2016
37441e1
SE-0022: Code completion for #selector.
DougGregor Jan 28, 2016
0a35942
SE-0022: Add a changelog entry for #selector. It's done.
DougGregor Jan 28, 2016
94e29ef
[swiftc] Add test case for crash triggered in swift::ValueDecl::isIns…
practicalswift Jan 28, 2016
9a0241b
SE-0022: Address Jordan's review comments about #selector.
DougGregor Jan 28, 2016
dda35e8
[CHANGELOG] Markdown fixes to the #selector comment.
DougGregor Jan 28, 2016
08136dc
[gardening] Fix recently introduced typo: "calles" → "called"
practicalswift Jan 28, 2016
bfd31a2
[gardening] Fix recently introduced typo: "TOkens" → "Tokens"
practicalswift Jan 28, 2016
ca89d20
Revert "Add '&' and '|' to the list of potentially symmetric operators."
jopamer Jan 28, 2016
ff5f6a6
[gardening] Fix duplicate word.
practicalswift Jan 28, 2016
5a8e75a
Merge pull request #1129 from practicalswift/typo-fixes-20160128b
lattner Jan 28, 2016
cbe005e
Merge pull request #1128 from practicalswift/swiftc-28244-swift-value…
lattner Jan 28, 2016
1312cb8
This test no longer crashes with an assertion, so it doesn't require …
slavapestov Jan 28, 2016
f923123
Simplify some code, remove an obsolete comment (we don't have let/els…
lattner Jan 28, 2016
fd6ded4
Inliner: introduce a new limit for the number of caller blocks.
eeckstein Jan 29, 2016
5726e7a
[Sema] Eliminate a foolish little infinite loop I introduced.
DougGregor Jan 29, 2016
9c6cdd3
[Driver] Fix references to Clang's profiling runtime.
jrose-apple Jan 29, 2016
52ea0c6
Revert "Remove one invocation of the ARC optimizer."
nadavrot Jan 29, 2016
a9a2cb5
CollectionsMoveIndices: add more algorithms to the prototype
gribozavr Jan 28, 2016
3df3b17
CollectionsMoveIndices: expand the discussion comment
gribozavr Jan 29, 2016
a415ade
Merge pull request #854 from an0/master
gribozavr Jan 29, 2016
35e0cd5
Set debugging scope properly when we generate field extractions
trentxintong Jan 28, 2016
b7f19d6
Add .Always and .Never cases to StdlibUnittest's TestPredicate
glessard Jan 29, 2016
273b149
Fix a swift argument initialization bug - swift argument should be in…
trentxintong Jan 29, 2016
bc93245
Validation tests for .Never and .Always TestPredicate cases
glessard Jan 29, 2016
7368b08
Merge pull request #1133 from glessard/always-never-testpredicate
gribozavr Jan 29, 2016
062d14b
Address @gribozavr comments to 273b1495834bcc650642aec523dd0504f8623cfa
trentxintong Jan 29, 2016
5a53ac6
Better tests for _typeByName()
slavapestov Jan 29, 2016
d887d82
Re-apply "Protocol conformances can now reference resilient value types"
slavapestov Jan 29, 2016
d3c6d1f
Revert "Address @gribozavr comments to 273b1495834bcc650642aec523dd05…
trentxintong Jan 29, 2016
ab7c87e
Implemented ARMv6 and fixed up ARMv7
hpux735 Dec 20, 2015
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .dir-locals.el
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
;
; This source file is part of the Swift.org open source project
;
; Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors
; Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
; Licensed under Apache License v2.0 with Runtime Library Exception
;
; See http://swift.org/LICENSE.txt for license information
Expand Down
135 changes: 126 additions & 9 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,49 @@
Latest
------

Swift 3
-------

* Curried function syntax has been removed, and now produces a compile-time
error.


Swift 2.2
---------

* Associated types in protocols can now be specified with a new 'associatedtype'
declaration, to replace the use of 'typealias':

protocol P {
associatedtype Ty
}

The typealias keyword is still allowed (but deprecated and produces a warning)
in Swift 2.2. This warning will become an error in Swift 3.

* Curried function syntax has been deprecated, and is slated to be removed in
Swift 3.

* The ++ and -- operators have been deprecated, and are slated to be removed in
Swift 3.0. As a replacement, please use "x += 1" on integer or floating point
types, and "x = x.successor()" on Index types.

* The operator identifier lexer grammar has been revised to simplify the rules
for operators that start with a dot ("."). The new rule is that an operator
that starts with a dot may contain other dots in it, but operators that start
with some other character may not contain dots. For example:

```
x....foo --> "x" "...." "foo"
x&%^.foo --> "x" "&%^" ".foo"
```

This eliminates a special case for the ..< operator, folding it into a simple
and consistent rule.

* The "C-style for loop", which is spelled `for init; comparison; increment {}`
has been deprecated and is slated for removal in Swift 3.0. See
[SE-0007](https://github.com/apple/swift-evolution/blob/master/proposals/0007-remove-c-style-for-loops.md)
for more information.

* Three new doc comment fields, namely `- keyword:`, `- recommended:`
and `- recommendedover:`, allow Swift users to cooperate with code
completion engine to deliver more effective code completion results.
Expand Down Expand Up @@ -31,7 +75,8 @@ Latest
* `ArraySlice.removeFirst()` now preserves element indices.

* Global `anyGenerator()` functions have been changed into initializers on
`AnyGenerator`, making the API more intuitive and idiomatic.
`AnyGenerator`, making the API more intuitive and idiomatic. They have been
deprecated in Swift 2.2, and will be removed in Swift 3.

* Closures appearing inside generic types and generic methods can now be
converted to C function pointers as long as no generic type parameters
Expand All @@ -58,6 +103,78 @@ Latest

**(rdar://problem/21683348)**

* Argument labels and parameter names can now be any keyword except
`var`, `let`, or `inout`. For example:

NSURLProtectionSpace(host: "somedomain.com", port: 443, protocol: "https", realm: "Some Domain", authenticationMethod: "Basic")

would previously have required `protocol` to be surrounded in
back-ticks. For more information, see
[SE-0001](https://github.com/apple/swift-evolution/blob/master/proposals/0001-keywords-as-argument-labels.md).

* Tuples (up to arity 6) whose elements are all `Comparable` or `Equatable` now
implement the full set of comparison/equality operators. The comparison
operators are defined in terms of [lexicographical order][]. See [SE-0015][]
for more information.

[lexicographical order]: https://en.wikipedia.org/wiki/Lexicographical_order
[SE-0015]: https://github.com/apple/swift-evolution/blob/master/proposals/0015-tuple-comparison-operators.md

* The `@objc(SomeName)` attribute is now supported on enums and enum cases to
rename the generated Objective-C declaration.

**(rdar://problem/21930334)**

* When referencing a function or initializer, one can provide the
complete name, including argument labels. For example:

let fn1 = someView.insertSubview(_:at:)
let fn2 = someView.insertSubview(_:aboveSubview:)

let buttonFactory = UIButton.init(type:)

For more information, see [SE-0021](https://github.com/apple/swift-evolution/blob/master/proposals/0021-generalized-naming.md).

* There is a new build configuration function, `#if swift(>=x.y)`, which
tests if the current Swift language version is at least `x.y`. This
allows you to conditionally compile code for multiple language
versions in the same file, even with different syntax, by deactivating
parsing in inactive code blocks. For example:

```swift
#if swift(>=2.2)
// Only this code will be parsed in Swift 3
func foo(x: Int) -> (y: Int) -> () {}
#else
// This code is ignored entirely.
func foo(x: Int)(y: Int) {}
#endif
```

For more information, see [SE-0020](https://github.com/apple/swift-evolution/blob/master/proposals/0020-if-swift-version.md).

* The Objective-C selector of a Swift method can now be determined
directly with the #selector expression, e.g.,:

let sel = #selector(insertSubview(_:aboveSubview:)) // sel has type Selector

Along with this change, the use of string literals as selectors has
been deprecated, e.g.,

let sel: Selector = "insertSubview:aboveSubview:"

Generally, such string literals should be replaced with uses of
`#selector`, and the compiler will provide Fix-Its that use
`#selector`. In cases where they is not possible (e.g., when referring
to the getter of a property), one can still directly construct
selectors, e.g.,:

let sel = Selector("propertyName")

Note that the compiler is now checking the string literals used to
construct Selectors to ensure that they are well-formed Objective-C
selectors and that there is an '@objc' method with that selector.


2015-09-17 [Xcode 7.1, Swift 2.1]
----------
Expand All @@ -67,7 +184,7 @@ Latest
allows you to use C enum pattern matching in switch statements with no
additional code. **(17287720)**

* The `NSNumberunsignedIntegerValue` property now has the type `UInt` instead
* The `NSNumber.unsignedIntegerValue` property now has the type `UInt` instead
of `Int`, as do other methods and properties that use the `NSUInteger` type
in Objective-C and whose names contain `unsigned..`. Most other uses of
`NSUInteger` in system frameworks are imported as `Int` as they were in
Expand Down Expand Up @@ -1342,7 +1459,7 @@ Latest
unique elements with full value semantics. It bridges with `NSSet`, providing
functionality analogous to `Array` and `Dictionary`. **(14661754)**

* The `iflet` construct has been expanded to allow testing multiple optionals
* The `if-let` construct has been expanded to allow testing multiple optionals
and guarding conditions in a single `if` (or `while`) statement using syntax
similar to generic constraints:

Expand All @@ -1356,7 +1473,7 @@ Latest
conditions, without introducing undesirable nesting (for instance, to avoid
the optional unwrapping _"pyramid of doom"_).

Further, `iflet` now also supports a single leading boolean condition along
Further, `if-let` now also supports a single leading boolean condition along
with optional binding `let` clauses. For example:

```swift
Expand All @@ -1366,7 +1483,7 @@ Latest

**(19797158, 19382942)**

* The `iflet` syntax has been extended to support a single leading boolean
* The `if-let` syntax has been extended to support a single leading boolean
condition along with optional binding `let` clauses.

For example:
Expand Down Expand Up @@ -3865,9 +3982,9 @@ Latest
themselves.

Overall, a property now may either be "stored" (the default), "computed"
(have a `get:` and optionally a `set:` specifier), or a observed
(have a `get:` and optionally a `set:` specifier), or an observed
(`willSet`/`didSet`) property. It is not possible to have a custom getter
or setter on a observed property, since they have storage.
or setter on an observed property, since they have storage.

Two known-missing bits are:
- **(rdar://problem/15920332) didSet/willSet variables need to allow initializers**
Expand Down
58 changes: 42 additions & 16 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ option(SWIFT_STDLIB_ASSERTIONS
"Enable internal checks for the Swift standard library (useful for debugging the library itself, does not affect checks required for safety)"
"${SWIFT_STDLIB_ASSERTIONS_default}")

option(SWIFT_SERIALIZE_STDLIB_UNITTEST
"Compile the StdlibUnittest module with -sil-serialize-all to increase the test coverage for the optimizer"
FALSE)

option(SWIFT_BUILD_TOOLS
"Build the Swift compiler and other tools"
TRUE)
Expand All @@ -44,17 +48,17 @@ option(SWIFT_BUILD_STATIC_STDLIB
"Build static variants of the Swift standard library and SDK overlay"
FALSE)

option(SWIFT_INCLUDE_BENCHMARKS
"Create targets for running swift benchmarks"
TRUE)
option(SWIFT_BUILD_PERF_TESTSUITE
"Create targets for swift performance benchmarks."
FALSE)

option(SWIFT_INCLUDE_TESTS "Create targets for building/running tests." TRUE)

option(SWIFT_INCLUDE_DOCS
"Create targets for building docs."
TRUE)

set(SWIFT_VERSION "2.2" CACHE STRING
set(SWIFT_VERSION "3.0" CACHE STRING
"The user-visible version of the Swift compiler")
set(SWIFT_VENDOR "" CACHE STRING
"The vendor name of the Swift compiler")
Expand All @@ -69,7 +73,7 @@ set(SWIFT_ENABLE_GOLD_LINKER FALSE CACHE BOOL
"Enable using the gold linker when available")

set(_SWIFT_KNOWN_INSTALL_COMPONENTS
"compiler;clang-builtin-headers;clang-resource-dir-symlink;clang-builtin-headers-in-clang-resource-dir;stdlib;stdlib-experimental;sdk-overlay;editor-integration;tools;testsuite-tools;dev;sourcekit-xpc-service;sourcekit-inproc")
"compiler;clang-builtin-headers;clang-resource-dir-symlink;clang-builtin-headers-in-clang-resource-dir;stdlib;stdlib-experimental;sdk-overlay;editor-integration;tools;testsuite-tools;dev;license;sourcekit-xpc-service;sourcekit-inproc")

# Set the SWIFT_INSTALL_COMPONENTS variable to the default value if it is not passed in via -D
set(SWIFT_INSTALL_COMPONENTS "${_SWIFT_KNOWN_INSTALL_COMPONENTS}" CACHE STRING
Expand Down Expand Up @@ -125,6 +129,9 @@ option(SWIFT_RUNTIME_CRASH_REPORTER_CLIENT
"Whether to enable CrashReporter integration"
FALSE)

set(SWIFT_DARWIN_XCRUN_TOOLCHAIN "XcodeDefault" CACHE STRING
"The name of the toolchain to pass to 'xcrun'")

set(SWIFT_DARWIN_ICU_INCLUDE_PATH "" CACHE STRING
"Path to the directory where the ICU headers are located")

Expand All @@ -151,7 +158,7 @@ option(SWIFT_AST_VERIFIER
"Enable the AST verifier in the built compiler, and run it on every compilation"
TRUE)

option(SWIFT_VERIFY_ALL
option(SWIFT_SIL_VERIFY_ALL
"Run SIL verification after each transform when building Swift files in the build process"
FALSE)

Expand Down Expand Up @@ -180,11 +187,7 @@ set(SWIFT_EXPERIMENTAL_EXTRA_REGEXP_FLAGS "" CACHE STRING
"A list of [module_regexp1;flags1;module_regexp2;flags2,...] which can be used to apply specific flags to modules that match a cmake regexp. It always applies the first regexp that matches.")

set(SWIFT_EXPERIMENTAL_EXTRA_NEGATIVE_REGEXP_FLAGS "" CACHE STRING
"A list of [module_regexp1;flags1;module_regexp2;flags2,...] which can be used to apply specific flags to modules that do not match a cmake regexp. It always applies the first regexp that does not matche. The reason this is necessary is that cmake does not provide negative matches in the regex. Instead you have to use NOT in the if statement requiring a separate variable.")

option(SWIFT_RUNTIME_ENABLE_DTRACE
"Should the runtime be built with dtrace instrumentation enabled"
FALSE)
"A list of [module_regexp1;flags1;module_regexp2;flags2,...] which can be used to apply specific flags to modules that do not match a cmake regexp. It always applies the first regexp that does not match. The reason this is necessary is that cmake does not provide negative matches in the regex. Instead you have to use NOT in the if statement requiring a separate variable.")

option(SWIFT_RUNTIME_ENABLE_LEAK_CHECKER
"Should the runtime be built with support for non-thread-safe leak detecting entrypoints"
Expand Down Expand Up @@ -222,9 +225,6 @@ endif()
option(SWIFT_BUILD_SOURCEKIT
"Build SourceKit"
${SWIFT_BUILD_SOURCEKIT_default})
# Force updating the cache, remove the following after a couple of weeks or so.
set(SWIFT_BUILD_SOURCEKIT ${SWIFT_BUILD_SOURCEKIT_default}
CACHE BOOL "Build SourceKit" FORCE)

#
# Include CMake modules
Expand Down Expand Up @@ -398,6 +398,11 @@ if("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux")
configure_sdk_unix(LINUX "Linux" "linux" "linux" "x86_64" "x86_64-unknown-linux-gnu")
set(SWIFT_HOST_VARIANT_ARCH "x86_64")
set(SWIFT_PRIMARY_VARIANT_ARCH_default "x86_64")
# FIXME: This only matches ARMv6l (by far the most common variant).
elseif("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "armv6l")
configure_sdk_unix(LINUX "Linux" "linux" "linux" "armv6" "armv6-unknown-linux-gnueabihf")
set(SWIFT_HOST_VARIANT_ARCH "armv6")
set(SWIFT_PRIMARY_VARIANT_ARCH_default "armv6")
# FIXME: This only matches ARMv7l (by far the most common variant).
elseif("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "armv7l")
configure_sdk_unix(LINUX "Linux" "linux" "linux" "armv7" "armv7-unknown-linux-gnueabihf")
Expand All @@ -407,6 +412,14 @@ if("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux")
configure_sdk_unix(LINUX "Linux" "linux" "linux" "aarch64" "aarch64-unknown-linux-gnu")
set(SWIFT_HOST_VARIANT_ARCH "aarch64")
set(SWIFT_PRIMARY_VARIANT_ARCH_default "aarch64")
elseif("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "ppc64")
configure_sdk_unix(LINUX "Linux" "linux" "linux" "powerpc64" "powerpc64-unknown-linux-gnu")
set(SWIFT_HOST_VARIANT_ARCH "powerpc64")
set(SWIFT_PRIMARY_VARIANT_ARCH_default "powerpc64")
elseif("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "ppc64le")
configure_sdk_unix(LINUX "Linux" "linux" "linux" "powerpc64le" "powerpc64le-unknown-linux-gnu")
set(SWIFT_HOST_VARIANT_ARCH "powerpc64le")
set(SWIFT_PRIMARY_VARIANT_ARCH_default "powerpc64le")
else()
message(FATAL_ERROR "Unknown or unsupported architecture: ${CMAKE_SYSTEM_PROCESSOR}")
endif()
Expand Down Expand Up @@ -461,7 +474,7 @@ elseif("${CMAKE_SYSTEM_NAME}" STREQUAL "Darwin")
endif()

if(XCODE)
# FIXME: Can not cross-compile stdlib using Xcode. Xcode insists on
# FIXME: Cannot cross-compile stdlib using Xcode. Xcode insists on
# passing -mmacosx-version-min to the compiler, and we want to pass
# -mios-version-min. Clang sees both options and complains.
set(swift_can_crosscompile_stdlib FALSE)
Expand Down Expand Up @@ -584,6 +597,11 @@ endif()
set(SWIFT_PRIMARY_VARIANT_SUFFIX
"-${SWIFT_SDK_${SWIFT_PRIMARY_VARIANT_SDK}_LIB_SUBDIR}-${SWIFT_PRIMARY_VARIANT_ARCH}")

# Clear universal library names to prevent adding duplicates
foreach(sdk ${SWIFT_SDKS})
unset(UNIVERSAL_LIBRARY_NAMES_${SWIFT_SDK_${sdk}_LIB_SUBDIR} CACHE)
endforeach()

message(STATUS "Building host Swift tools for ${SWIFT_HOST_VARIANT_SDK} ${SWIFT_HOST_VARIANT_ARCH}")
message(STATUS " Build type: ${CMAKE_BUILD_TYPE}")
message(STATUS " Assertions: ${LLVM_ENABLE_ASSERTIONS}")
Expand All @@ -610,6 +628,10 @@ if(LIBXML2_FOUND)
set(SWIFT_HAVE_LIBXML 1)
endif()

if (LLVM_ENABLE_DOXYGEN)
message(STATUS "Doxygen: enabled")
endif()

#
# Set up global CMake variables for API notes.
#
Expand All @@ -633,7 +655,7 @@ if(SWIFT_BUILD_TOOLS)
endif()
add_subdirectory(utils)
add_subdirectory(stdlib)
if(SWIFT_INCLUDE_BENCHMARKS)
if(SWIFT_BUILD_PERF_TESTSUITE)
add_subdirectory(benchmark)
endif()
if(SWIFT_INCLUDE_TESTS)
Expand All @@ -644,6 +666,10 @@ if(SWIFT_INCLUDE_DOCS)
add_subdirectory(docs)
endif()

swift_install_in_component(license
FILES "LICENSE.txt"
DESTINATION "share/swift")

# Add a documentation target so that documentation shows up in the
# Xcode project.
if(XCODE)
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ with version 2 shipped with Ubuntu.
If you are building on Ubuntu 14.04 LTS, you'll need to upgrade your clang
compiler for C++14 support and create a symlink:

sudo apt-get install clang-3.6
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-3.6 100
sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-3.6 100
sudo apt-get install clang-3.6
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-3.6 100
sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-3.6 100

### Getting Sources for Swift and Related Projects

Expand Down
13 changes: 5 additions & 8 deletions benchmark/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
option(SWIFT_INCLUDE_PERF_TESTSUITE "Create targets for swift performance benchmarks." NO)
if(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
# Performance test harness only builds on Darwin.
if (SWIFT_INCLUDE_PERF_TESTSUITE)
set(PERF_TESTSUITE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/PerfTestSuite" CACHE STRING "Path to swift performance testsuite repo.")
if(EXISTS ${PERF_TESTSUITE_DIR}/CMakeLists.txt)
add_subdirectory(${PERF_TESTSUITE_DIR})
else()
message(FATAL_ERROR "Can't find the Swift performance suite at ${PERF_TESTSUITE_DIR}/.")
endif()
set(PERF_TESTSUITE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/PerfTestSuite" CACHE STRING "Path to swift performance testsuite repo.")
if(EXISTS ${PERF_TESTSUITE_DIR}/CMakeLists.txt)
add_subdirectory(${PERF_TESTSUITE_DIR})
else()
message(FATAL_ERROR "Can't find the Swift performance suite at ${PERF_TESTSUITE_DIR}/.")
endif()
endif()

Loading