swift-ci
bc76ac0f50
Merge remote-tracking branch 'origin/master' into master-next
2017-12-20 14:49:53 -08:00
swift-ci
02cabf1345
Merge pull request #13551 from lattner/nfc-sil-cleanups2
2017-12-20 14:42:55 -08:00
swift-ci
f4a551c03c
Merge remote-tracking branch 'origin/master' into master-next
2017-12-20 12:49:47 -08:00
David Zarzycki
37ff003517
[AST] NFC: ErrorType is effectively 'final'
...
The ErrorType optionally tail allocates the original type, therefore it
is 'final'.
2017-12-20 09:35:15 -05:00
David Zarzycki
362d801472
[AST] NFC: Tail allocate CaptureListExpr entries
2017-12-20 09:35:15 -05:00
David Zarzycki
5a4e96fcc2
[AST] NFC: Tail allocate UnresolvedSpecializeExpr TypeLocs
2017-12-20 09:35:15 -05:00
David Zarzycki
dbb421ba95
[AST] NFC: Tail allocate ErasureExpr conformances
2017-12-20 09:35:15 -05:00
David Zarzycki
3c128f3892
[AST] NFC: Minor performance tuning
...
1) Make AnyFunctionType::getParams() inline friendly (it compiles down
to just a few instructions).
2) Byte align/size the embedded number of AnyFunctionType parameters.
This was set to 10 bits back when the inline bitfields were 32 bits
in size. Now with 64 bits to play with, we have room to spare.
2017-12-20 09:35:15 -05:00
Chris Lattner
0c6e0c25a1
Two NFC changes:
...
- Add a DominanceInfo::dominates helper functions that takes two instructions,
as analogues to the properlyDominates ones.
- Further generalize some SILBuilder code to be more defensive in the face
of incorrect or partially constructed SIL instructions.
These are cleanups, NFC.
2017-12-19 20:18:24 -08:00
swift-ci
67df4b62fd
Merge remote-tracking branch 'origin/master' into master-next
2017-12-19 16:09:50 -08:00
Michael Gottesman
1209592421
Merge pull request #13536 from gottesmm/rdar_36032876
...
In SILCodeMotion, be sure to invalidate global enum tag dataflow state when deleting instructions
2017-12-19 16:09:16 -08:00
swift-ci
cb941b154b
Merge remote-tracking branch 'origin/master' into master-next
2017-12-19 13:30:00 -08:00
David Zarzycki
af0ed2339b
Merge pull request #13533 from davezarzycki/nfc_repack_expr_nodes
...
NFC: More Expr node layout optimization
2017-12-19 16:16:30 -05:00
swift-ci
fc7b986bab
Merge remote-tracking branch 'origin/master' into master-next
2017-12-19 12:09:06 -08:00
Slava Pestov
476e41a4fc
Merge pull request #13530 from slavapestov/class-resilience-part-7
...
Class resilience part 7
2017-12-19 11:51:52 -08:00
swift-ci
18fea54dd3
Merge remote-tracking branch 'origin/master' into master-next
2017-12-19 11:29:13 -08:00
swift-ci
adf83617ec
Merge pull request #13526 from DougGregor/remove-conditional-conformances-flag
2017-12-19 11:17:44 -08:00
swift-ci
4a31d01a00
Merge remote-tracking branch 'origin/master' into master-next
2017-12-19 11:09:52 -08:00
Pavel Yaskevich
d3cd61d8eb
Merge pull request #13291 from xedin/rdar-34920390
...
[Mangling/ABI] Mangle function names with parameter labels
2017-12-19 10:50:18 -08:00
David Zarzycki
1341d111f7
[AST] NFC: Init accidentally dropped initializer
2017-12-19 13:40:38 -05:00
David Zarzycki
60d2f5586e
[AST] QoI: Track DictionaryExpr commas and tail allocate CollectionExpr comma locs
2017-12-19 13:33:09 -05:00
David Zarzycki
c75912215e
[AST] NFC: Tail allocate CollectionExpr elements
2017-12-19 13:33:09 -05:00
David Zarzycki
0da55934a4
[AST] NFC: Repack misc CollectionExpr bits
2017-12-19 13:33:09 -05:00
David Zarzycki
177b39afc5
[AST] NFC: Repack misc SequenceExpr bits
2017-12-19 13:33:09 -05:00
David Zarzycki
b6ba119c05
[AST] NFC: Repack misc ParenExpr bits
2017-12-19 13:33:09 -05:00
David Zarzycki
2d11d77712
[AST] NFC: Repack misc TupleElementExpr bits
2017-12-19 13:33:09 -05:00
David Zarzycki
00542951d2
[AST] NFC: Repack misc TupleExpr bits
2017-12-19 13:33:09 -05:00
Michael Gottesman
7819c4d41a
[sil] Add const to int SILBasicBlock::getDebugId().
...
This is a read only function. This just allows one to call it in more places.
rdar://36032876
2017-12-19 10:10:12 -08:00
Slava Pestov
4d18e923d4
SIL: Clean up includes
2017-12-19 02:00:25 -08:00
swift-ci
dca213184a
Merge remote-tracking branch 'origin/master' into master-next
2017-12-19 00:49:53 -08:00
Slava Pestov
fa719f75bd
SIL: SILVTableVisitor no longer needs a TypeLowering reference
2017-12-18 23:28:33 -08:00
Slava Pestov
c16c2c35bf
SIL: Move getOverriddenVTableEntry() from TypeLowering to SILDeclRef
...
There's no reason for this to be an instance method on the TypeLowering
object, because it (no longer?) uses any type lowering operations.
2017-12-18 23:28:33 -08:00
Doug Gregor
5c831a71ee
Revert "[SE-0143] Put conditional conformances behind an "experimental" flag."
...
This reverts commit b59c30c1af .
2017-12-18 22:54:31 -08:00
swift-ci
f1904666ac
Merge remote-tracking branch 'origin/master' into master-next
2017-12-18 18:49:54 -08:00
Rintaro Ishizaki
6a201336ca
Merge pull request #13500 from rintaro/syntax-trivia-misc
...
[Syntax] Support "conflict marker" and "carriage return" trivia
2017-12-19 11:39:17 +09:00
swift-ci
fd21243bd6
Merge remote-tracking branch 'origin/master' into master-next
2017-12-18 17:08:54 -08:00
Ben Langmuir
122df2b00d
Merge pull request #13510 from benlangmuir/cc-call-pattern-option
...
[code-complete] Try to make call-pattern completions usable again
2017-12-18 17:03:12 -08:00
swift-ci
e022449ec6
Merge remote-tracking branch 'origin/master' into master-next
2017-12-18 16:28:55 -08:00
Rintaro Ishizaki
2c06060165
[Syntax] Add CarriageReturn trivia kind
...
To distinguish '\r' from '\n'.
2017-12-19 09:24:34 +09:00
Rintaro Ishizaki
181333ce0f
[Lexer] Lex conflict marker as a trivia
2017-12-19 09:24:33 +09:00
Rintaro Ishizaki
023379cde5
Merge pull request #13495 from omochi/lexer-refactor-skip-to-eol
...
[Parse] Refactor Lexer's skipToEndOfline
2017-12-19 09:12:07 +09:00
swift-ci
ab66b86518
Merge remote-tracking branch 'origin/master' into master-next
2017-12-18 16:09:16 -08:00
swift-ci
205e0d811a
Merge pull request #13513 from nkcsgexi/lib-syntax-accessor-block
2017-12-18 15:53:55 -08:00
Pavel Yaskevich
34b83306bf
[Demangler] Teach node printer to use LabelList for entities
2017-12-18 15:44:24 -08:00
Pavel Yaskevich
10c385d1b7
[Mangling/ABI] Add special LabelList to store parameter labels
...
Instead of mangling parameter labels as part of the function type
move them to the end of the function name instead, to match the
language semantics.
2017-12-18 15:44:24 -08:00
swift-ci
08fadd64eb
Merge remote-tracking branch 'origin/master' into master-next
2017-12-18 15:29:54 -08:00
swift-ci
3ce4db2966
Merge pull request #13511 from anemet/opt-remark-spec-devirt
2017-12-18 15:20:54 -08:00
Xi Ge
fe1a4ca0d2
libSyntax: create libSyntax node for var decl accessors.
2017-12-18 15:16:14 -08:00
swift-ci
c48e87665a
Merge remote-tracking branch 'origin/master' into master-next
2017-12-18 15:10:11 -08:00
Jordan Rose
15f2161277
Move the fast path of TypeBase::getCanonicalType into the header ( #13479 )
...
I'm not sure how much benefit there'll be to inlining this, but a side
benefit is that crashes in optimized builds of the compiler are much
more likely to distinguish between "bug in getCanonicalType" (which
almost never happens) and "bug in the function calling
getCanonicalType".
Inspired by rdar://problem/35819975
2017-12-18 14:55:08 -08:00