Eduard Burtescu
4ac30013c3
rustc_trans: don't do on-demand drop glue instantiation.
2016-09-20 20:30:55 +03:00
Michael Woerister
cf976fe2cd
Adapt codegen-unit test cases to new behaviour
2016-09-15 22:09:49 -04:00
Michael Woerister
1b3a588f55
trans: Let the collector find drop-glue for all vtables, not just VTableImpl.
2016-09-13 22:11:01 -04:00
Eduard Burtescu
b354ae95a2
rustc: move the SelfSpace before TypeSpace in Substs.
2016-08-17 05:50:57 +03:00
Michael Woerister
09e73a5b03
Make the translation item collector handle *uses* of 'const' items instead of declarations.
2016-08-12 12:07:51 -04:00
Michael Woerister
1c03bfe3b4
trans: Adjust linkage assignment so that we don't need weak linkage.
2016-07-08 10:42:48 -04:00
Michael Woerister
6c8c94b848
Improve linkage assignment in trans::partitioning.
2016-07-08 10:42:47 -04:00
Michael Woerister
2cd8cf92fc
Ignore closure-related translation item collection tests.
2016-07-08 10:42:46 -04:00
Ariel Ben-Yehuda
68129a682a
fix codegen-units fallout
2016-06-16 09:26:44 +03:00
Ariel Ben-Yehuda
4248269f8a
fix fallout in tests
2016-06-04 13:26:37 +03:00
Michael Woerister
4386d19185
trans::collector: Remove some redundant calls to erase_regions().
2016-05-23 10:21:50 -04:00
Michael Woerister
64bc3c266c
trans: Make collector handle the drop_in_place() intrinsic.
2016-05-11 14:30:33 -04:00
James Miller
f4dd4be86a
Add test for collecting items in statics
2016-05-11 13:59:14 -04:00
Michael Woerister
85b155f6f1
trans: Don't try to place declarations during codegen unit partitioning.
2016-05-11 13:58:23 -04:00
Steve Klabnik
aa63f54e37
Rollup merge of #33438 - birkenfeld:dup-words, r=steveklabnik
...
Fix some some duplicate words.
2016-05-07 15:35:19 -04:00
Niko Matsakis
8b1941a783
s/aux/auxiliary, because windows
...
For legacy reasons (presumably), Windows does not permit files name aux.
2016-05-06 16:24:48 -04:00
Niko Matsakis
fbc082dcc6
move auxiliary builds to a test-relative aux
...
Instead of finding aux-build files in `auxiliary`, we now search for an
`aux` directory relative to the test. So if your test is
`compile-fail/foo.rs`, we would look in `compile-fail/aux`. Similarly,
we ignore the `aux` directory when searching for tets.
2016-05-06 16:24:48 -04:00
Georg Brandl
26eb2bef25
Fix some some duplicate words.
2016-05-05 21:12:37 +02:00
Michael Woerister
a4128e5950
Fix a race condition caused by concurrently executed codegen unit tests.
2016-05-01 13:53:39 -04:00
Michael Woerister
0fc9f9a200
Make the codegen unit partitioner also emit item declarations.
2016-04-28 16:53:00 -04:00
Michael Woerister
7f04d35cc6
Add FixedUnitCount codegen unit partitioning strategy.
2016-04-28 14:36:34 -04:00
Michael Woerister
c61f22932d
Let the translation item collector make a distinction between drop-glue kinds
2016-04-28 14:36:34 -04:00
James Miller
0e3b37a52e
Fix codegen-units tests
...
I'm not sure what the signficance of `drop-glue i8` is, nor why one of
the tests had it appear while the others had it disappear. Either way it
doesn't seem like the presence or absense of it is the focus of the
tests.
2016-04-28 13:18:51 +12:00
James Miller
869172305f
Fixup tests
...
The drop glue for `i8` is no longer generated as a trans item
2016-04-28 13:18:51 +12:00
Michael Woerister
e8441b6784
Add initial version of codegen unit partitioning for incremental compilation.
2016-04-15 10:05:53 -04:00
Michael Woerister
a2217ddb58
Move translation-item-collection tests into subfolder.
2016-04-14 14:00:58 -04:00
Niko Matsakis
6056c5fbed
fallout: update codegen-units tests
2016-03-25 14:07:19 -04:00
Michael Woerister
862911df9a
Implement the translation item collector.
...
The purpose of the translation item collector is to find all monomorphic instances of functions, methods and statics that need to be translated into LLVM IR in order to compile the current crate.
So far these instances have been discovered lazily during the trans path. For incremental compilation we want to know the set of these instances in advance, and that is what the trans::collect module provides.
In the future, incremental and regular translation will be driven by the collector implemented here.
2016-01-26 10:17:45 -05:00