Commit Graph

2543 Commits

Author SHA1 Message Date
swift-ci
bc76ac0f50 Merge remote-tracking branch 'origin/master' into master-next 2017-12-20 14:49:53 -08: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
fc7b986bab Merge remote-tracking branch 'origin/master' into master-next 2017-12-19 12:09:06 -08: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
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
Adam Nemet
5d7b8106c3 Add opt-remarks to the Speculative Devirtualizer pass 2017-12-18 13:29:46 -08:00
swift-ci
8e75a2fbbd Merge remote-tracking branch 'origin/master' into master-next 2017-12-18 13:28:54 -08:00
swift-ci
0302515cf0 Merge remote-tracking branch 'origin/master' into master-next 2017-12-18 12:48:55 -08:00
John McCall
94116347a2 Fix some warnings: extra semicolons, anonymous structs. 2017-12-18 15:31:47 -05:00
David Zarzycki
c75e8299f1 [SIL] NFC: Repack misc MetatypeInst bits 2017-12-17 21:35:27 -05:00
David Zarzycki
bc44e5a150 [SIL] NFC: Repack misc BeginAccessInst bits 2017-12-17 21:23:37 -05:00
David Zarzycki
931ea24f99 [SIL] NFC: Repack misc EndAccessInst bits 2017-12-17 21:14:49 -05:00
David Zarzycki
1cd19eae36 [SIL] NFC: Repack misc PointerToAddressInst bits 2017-12-17 20:58:45 -05:00
David Zarzycki
315cf677dd [SIL] NFC: Repack misc SwitchValueInst bits 2017-12-17 20:54:01 -05:00
David Zarzycki
5443923a0c [SIL] NFC: Repack misc SwitchEnumInstBase bits 2017-12-17 20:24:14 -05:00
David Zarzycki
f0bd535261 [SIL] NFC: Repack misc TupleElementAddrInst bits 2017-12-17 19:58:24 -05:00
David Zarzycki
cf443ecfcf [SIL] NFC: Repack misc TupleExtractInst bits 2017-12-17 19:55:17 -05:00
David Zarzycki
b885daf032 [SIL] NFC: Repack misc WitnessMethodInst bits 2017-12-17 19:49:37 -05:00
David Zarzycki
224b8495bc [SIL] NFC: Repack misc DeallocRefInst bits 2017-12-16 19:26:40 -05:00
David Zarzycki
83546faec8 [SIL] NFC: Repack misc IntegerLiteralInst and FloatLiteralInst bits 2017-12-16 19:12:01 -05:00
David Zarzycki
aef2e8c662 [SIL] NFC: Repack misc LoadInst bits 2017-12-16 18:53:08 -05:00
David Zarzycki
c4e90d6e4f [SIL] NFC: Repack misc StoreInst bits 2017-12-16 18:41:14 -05:00
David Zarzycki
c8a458ed1d [SIL] NFC: Repack misc CopyAddrInst bits 2017-12-16 18:31:46 -05:00
David Zarzycki
b5424c0c17 [SIL] NFC: Repack misc StrongPinInst bits 2017-12-16 18:22:52 -05:00
David Zarzycki
edcb0114c4 [SIL] NFC: Repack misc LoadReferenceInstBase bits 2017-12-16 18:04:49 -05:00
David Zarzycki
f6957eade8 [SIL] NFC: Repack misc StoreReferenceInstBase bits 2017-12-16 18:00:08 -05:00
David Zarzycki
a0a5ca5f14 [SIL] NFC: Repack misc RefCountingInst bits 2017-12-16 17:43:31 -05:00
David Zarzycki
7740d4d05d [SIL] NFC: Repack misc UncheckedOwnershipConversionInst bits 2017-12-16 17:35:27 -05:00
David Zarzycki
c68d481d28 [SIL] NFC: Repack misc UnaryInstructionWithTypeDependentOperandsBase bits 2017-12-16 17:05:00 -05:00
David Zarzycki
f0d0c18be6 [SIL] NFC: Repack misc AllocRefInstBase bits 2017-12-16 11:53:29 -05:00
David Zarzycki
d197894a9d [SIL] NFC: Repack misc AllocStackInst bits 2017-12-16 11:38:43 -05:00
David Zarzycki
54ea315586 [Basic] NFC: Stop using transparent unions 2017-12-16 10:43:49 -05:00
David Zarzycki
fa63e6a5a0 [SIL] NFC: Repack misc SILArgument bits 2017-12-16 09:31:21 -05:00
David Zarzycki
7368cc9a8b [SIL] NFC: Convert SILNode to new inline bitfield macros 2017-12-16 09:31:21 -05:00
swift-ci
3132178f63 Merge remote-tracking branch 'origin/master' into master-next 2017-12-15 16:09:29 -08:00
John McCall
b13f30ff30 Move a convenience API for changing a SILFunctionType into the AST. NFC. 2017-12-15 18:19:07 -05:00
swift-ci
5898889dfb Merge remote-tracking branch 'origin/master' into master-next 2017-12-10 19:08:59 -08:00
David Zarzycki
82e08ed3b7 [AST] NFC: Repack misc AbstractFunctionDecl bits 2017-12-10 20:38:01 -05:00
swift-ci
9ae11b7cff Merge remote-tracking branch 'origin/master' into master-next 2017-12-02 18:58:23 -08:00
Michael Gottesman
5263e9e74e [sil] Eliminate redundant method SILFunction::hasUnqualifiedOwnership().
We can just !SILFunction::hasQualifiedOwnership(). Plus as Andy pointed out,
even ignoring the functional aspects, having APIs with names this close can
create confusion.
2017-12-02 17:42:34 -08:00
swift-ci
97ae383e6b Merge remote-tracking branch 'origin/master' into master-next 2017-11-30 13:50:20 -08:00
Jordan Rose
8f8f00012a Merge pull request #12834 from jrose-apple/restrict-cross-module-struct-initializers-2
Implementation of SE-0189 "Restrict cross-module struct initializers to be delegating"

rdar://problem/34777878
2017-11-30 13:32:45 -08:00
swift-ci
17dce98db7 Merge remote-tracking branch 'origin/master' into master-next 2017-11-29 17:30:29 -08:00