David Ungar
9bfed89e8c
markTransitive & markExternal return the jobs, unfmt
2019-12-08 11:15:51 -08:00
David Ungar
bc068ae68e
format
2019-12-04 10:51:18 -08:00
David Ungar
8dc04c7912
Rename DependencyGraph and DependencyGraphImp with CoarseGrained prefix.
2019-12-04 10:51:18 -08:00
David Ungar
2ff5855c63
Rename DependencyGraphImpl -> CoarseGrainedDependencyGraphImpl, unformatted
2019-12-04 10:51:18 -08:00
David Ungar
200b181eb3
Renaming files -> CoarseGrained
2019-12-04 10:51:18 -08:00
David Ungar
6a6e9357ef
Change "experimental" to "fine-grained".
2019-12-04 08:50:44 -08:00
David Ungar
496e602bff
Renaming files
2019-12-04 08:38:59 -08:00
David Ungar
3d3507b7b6
Remove unparsed ranges and use diffs to schedule dependents earlier.
2019-12-03 17:23:02 -08:00
David Ungar
3cba2306ca
Moving tests and driver refactoring.
2019-12-03 09:24:17 -08:00
David Ungar
448d9df38c
Merge pull request #28444 from davidungar/WIP-custom-diff
...
Fix memory violation when build record is bad.
2019-12-02 10:55:59 -08:00
David Ungar
08cfe80061
Don't crash when asking for comparison but not incremental
2019-11-23 11:21:33 -08:00
David Ungar
62ae2bfd2f
Merge pull request #28164 from davidungar/WIP-custom-diff
...
[Incremental compilation] Source-range-based dependencies
2019-11-21 23:47:52 -08:00
David Ungar
68f0ea2290
fmt
2019-11-21 00:01:34 -08:00
David Ungar
65d8504a16
WIP non alloc
2019-11-20 23:59:13 -08:00
David Ungar
59fc0c209b
Heap-alloc PRLinks
2019-11-20 14:38:37 -08:00
David Ungar
468a23cef9
report stages unfmt
2019-11-20 13:28:19 -08:00
David Ungar
ae64f471cd
Reporting refactoring
2019-11-19 16:42:21 -08:00
David Ungar
bc403424ee
Use sets
2019-11-19 13:10:33 -08:00
David Ungar
ee17f61179
factor out comparator and report supp jobs
2019-11-19 12:22:04 -08:00
David Ungar
d2146d1c47
Report falling back differently.
2019-11-18 23:09:58 -08:00
David Ungar
5d25cd8571
Print negative build decisions with -show-incremental
2019-11-18 22:58:34 -08:00
David Ungar
aee3cb482e
Try both in filelist for linker
2019-11-18 22:19:43 -08:00
David Ungar
38a6559aa9
Take path arg for comparo
2019-11-18 20:23:10 -08:00
David Ungar
0a0d22abab
fmt
2019-11-16 23:54:52 -08:00
David Ungar
a6bf84e20b
refactoring WIP unfmt
2019-11-16 23:17:37 -08:00
David Ungar
3433bf8cef
comparision WIP
2019-11-16 21:39:19 -08:00
David Ungar
0b00afea7e
pass compilation in to loadAllInfo in prep to do removed files
2019-11-16 08:52:11 -08:00
David Ungar
692ca29bd2
Dump both sides' changes for testing.
2019-11-15 14:53:34 -08:00
David Ungar
30429c0fa1
Ensure that files with missing supplementaries get recompiled.
2019-11-12 20:41:03 -08:00
David Ungar
52feb1391b
Correct uninitialized flag bug.
2019-11-12 20:41:03 -08:00
David Ungar
69775ff850
Comments
2019-11-12 20:41:03 -08:00
David Ungar
742c3985bd
Source-range-based dependencies
...
Frontend outputs source-as-compiled, and source-ranges file with function body ranges and ranges that were unparsed in secondaries.
Driver computes diffs for each source file. If diffs are in function bodies, only recompiles that one file. Else if diffs are in what another file did not parse, then the other file need not be rebuilt.
2019-11-12 20:41:02 -08:00
Brent Royal-Gordon
99faa033fc
[NFC] Standardize dump() methods in frontend
...
By convention, most structs and classes in the Swift compiler include a `dump()` method which prints debugging information. This method is meant to be called only from the debugger, but this means they’re often unused and may be eliminated from optimized binaries. On the other hand, some parts of the compiler call `dump()` methods directly despite them being intended as a pure debugging aid. clang supports attributes which can be used to avoid these problems, but they’re used very inconsistently across the compiler.
This commit adds `SWIFT_DEBUG_DUMP` and `SWIFT_DEBUG_DUMPER(<name>(<params>))` macros to declare `dump()` methods with the appropriate set of attributes and adopts this macro throughout the frontend. It does not pervasively adopt this macro in SILGen, SILOptimizer, or IRGen; these components use `dump()` methods in a different way where they’re frequently called from debugging code. Nor does it adopt it in runtime components like swiftRuntime and swiftReflection, because I’m a bit worried about size.
Despite the large number of files and lines affected, this change is NFC.
2019-10-31 18:37:42 -07:00
Xi Ge
70137251c6
Address Jordan's code review comments
2019-09-24 13:52:17 -07:00
Xi Ge
ec9cf33af0
Driver: expose -emit-module-source-info-path as a driver option
2019-09-24 13:52:17 -07:00
Xi Ge
3103b5cec1
Frontend: set up output file .swiftsourceinfo
...
This patch will focus on teaching driver and frontend to emit this file.
The actual content and de-serialization parts will come later.
More details: https://forums.swift.org/t/proposal-emitting-source-information-file-during-compilation/28794
2019-09-24 13:52:17 -07:00
David Ungar
c7be2def90
Merge pull request #27143 from davidungar/A-9-12-eager-off
...
[NFC NameLookup ASTScope] Fixes for large app, eager primary tree creation, memberCount fix.
2019-09-14 18:46:17 -07:00
David Ungar
2ede6f2b82
Silence unused warnings
2019-09-13 17:16:19 -07:00
Harlan Haskins
c82c9b8210
[ModuleInterfaces] Remove references to 'parseable' interfaces everywhere
...
Now that we've settled on Module Interface as the name, let's remove the
vestiges of "Parseable Interfaces"
2019-09-13 14:55:48 -07:00
Argyrios Kyrtzidis
0135e01d02
Rename the swift-format utility to swift-indent
...
This is to distinguish the C++ indenting functionality from the new formatter that is written in Swift.
2019-07-26 11:40:54 -07:00
Jordan Rose
419e97d7db
Merge pull request #26136 from LucianoPAlmeida/patch-sr11015
...
[Driver] DarwinToolChain should explicitly reject -static-stdlib
2019-07-16 08:55:25 -07:00
Luciano Almeida
83ede1f3cc
Forward declaring and improvement on warning.
2019-07-15 22:20:00 -03:00
Luciano Almeida
217887ae91
Fixing nitpicks.
2019-07-15 22:12:51 -03:00
Luciano Almeida
c95f28c9dc
Moving -static-stdlib validation to Darwin toolchain.
2019-07-15 21:02:39 -03:00
Harlan Haskins
21bd24a150
Revert "[Driver] Load the standard library before starting parallel frontend invocations"
...
This failed the source compat suite, it seems we need more driver
changes for this.
2019-07-12 21:38:23 -07:00
Harlan Haskins
7022110a05
[Driver] Load the standard library before starting parallel frontend invocations
...
Add a new action, LoadModuleJobAction, that the driver can use to schedule a
load of a given module before we fan out and invoke the frontend multiple
times. This gives the module interface loader a chance to compile it from a
module interface before we start with parallel invocations, avoiding starting
potentially dozens of redundant compiles of a large module. Start by using this
on the standard library.
Quick fix for rdar://52839445
2019-07-12 14:53:25 -07:00
Brent Royal-Gordon
1e81ced48d
Revert "Revert "Look up runtime libraries in SDK""
2019-07-03 14:18:48 -07:00
Xi Ge
fdd41aeb68
Revert "Look up runtime libraries in SDK ( #25740 )"
...
This reverts commit b818b441f2 .
2019-06-25 17:48:41 -07:00
Brent Royal-Gordon
b818b441f2
Look up runtime libraries in SDK ( #25740 )
...
In #23175 , we started looking in the SDK for swiftmodules, but we want to look for the dylibs there too. Fixes <rdar://problem/52059706>.
2019-06-25 15:39:03 -07:00
Saleem Abdulrasool
38995f5d80
Merge pull request #25070 from moatom/fix-include-guard
...
Fix include guards
2019-06-20 17:26:08 -07:00