Tomasz Miąsko
1caa8755e5
Apply LLVM sanitize attributes to generated entry wrapper
2020-02-05 23:30:38 +01:00
John Kåre Alsaker
f45758cddc
Compile some CGUs in parallel at the start of codegen
2020-01-09 22:36:15 +01:00
Mazdak Farrokhzad
66f5bf1b8b
extract rustc::middle::codegen_fn_attrs
2020-01-04 18:43:06 +01:00
Vadim Petrochenkov
70f1d57048
Rename syntax_pos
to rustc_span
in source code
2020-01-01 09:15:18 +03:00
Mark Rousskov
a06baa56b9
Format the world
2019-12-22 17:42:47 -05:00
Nicholas Nethercote
2da7a9c0d9
Use Symbol
for codegen unit names.
...
This is a straightforward replacement except for two places where we
have to convert to `LocalInternedString` to get a stable sort.
2019-10-21 18:30:40 +11:00
Michael Woerister
d94262272b
Self-Profiling: Make names of existing events more consistent and use new API.
2019-09-30 13:31:56 +02:00
Mark Rousskov
b8a040fc5f
Remove tx_to_llvm_workers from TyCtxt
...
This can be kept within the codegen backend crates entirely
2019-09-25 16:57:27 -04:00
Jeremy Stucki
ec711767a7
Remove needless lifetimes
2019-07-03 10:01:02 +02:00
Eduard-Mihai Burtescu
f3f9d6dfd9
Unify all uses of 'gcx and 'tcx.
2019-06-14 18:58:23 +03:00
Eduard-Mihai Burtescu
87b6b86468
rustc_codegen_llvm: deny(unused_lifetimes)
.
2019-06-12 16:02:03 +03:00
Eduard-Mihai Burtescu
fff08cb043
Run rustfmt --file-lines ...
for changes from previous commits.
2019-06-12 13:38:28 +03:00
Eduard-Mihai Burtescu
17cdd356da
rustc: replace TyCtxt<'tcx, 'gcx, 'tcx>
with TyCtxt<'gcx, 'tcx>
.
2019-06-12 13:38:27 +03:00
Eduard-Mihai Burtescu
37799a5552
rustc: replace TyCtxt<'a, 'gcx, 'tcx>
with TyCtxt<'tcx, 'gcx, 'tcx>
.
2019-06-12 13:38:27 +03:00
Mark Mansi
c747f31ffc
remove unneeded deps
2019-06-02 22:56:37 -05:00
Eduard-Mihai Burtescu
29b7c0687e
rustc_codegen_llvm: remove LLVM instruction count stats.
2019-05-29 01:43:57 +03:00
Nicholas Nethercote
faf5eac854
Move metadata encoding earlier.
...
This commit separates metadata encoding (`tcx.encode_metadata`) from the
creation of the metadata module (which is now handled by
`write_compressed_metadata`, formerly `write_metadata`).
The metadata encoding now occurs slightly earlier in the pipeline, at
the very start of code generation within `start_codegen`.
Metadata *writing* still occurs near the end of compilation; that will
be moved forward in subsequent commits.
2019-04-30 14:55:10 +10:00
Simonas Kazlauskas
8d4afbe413
Use informational target machine for metadata
...
Since there is nothing to optimise there...
2019-03-27 04:03:42 +02:00
Mazdak Farrokhzad
9661a81968
librustc_codegen_llvm: deny(elided_lifetimes_in_paths)
2019-02-25 08:40:18 +01:00
Gabriela Alexandra Moldovan
e5d1fa58f2
codegen and write_metadata can mutate ModuleLLvm.
2019-02-21 13:38:44 +00:00
Taiki Endo
1b7ca961d9
librustc_codegen_llvm => 2018
2019-02-18 03:58:58 +09:00
Alexander Regueiro
c3e182cf43
rustc: doc comments
2019-02-10 23:42:32 +00:00
John Kåre Alsaker
34ec9a5942
Add a query type which is always marked as red if it runs
2019-02-08 04:28:32 +01:00
Simonas Kazlauskas
f38d0da893
Implement optimize(size) and optimize(speed)
2019-01-24 20:13:50 +02:00
Mark Rousskov
2a663555dd
Remove licenses
2018-12-25 21:08:33 -07:00
bjorn3
2d46ee26fb
Remove static_replace_all_uses and statics_to_rauw from cg_ssa
2018-11-29 18:19:41 +01:00
Eduard-Mihai Burtescu
756f84d7ce
[eddyb] rustc_codegen_llvm: remove unused parametrization of CodegenCx
and Builder
over Value
s.
2018-11-16 15:08:18 +02:00
Eduard-Mihai Burtescu
0b569249c8
[eddyb] rustc_codegen_ssa: rename interfaces
to traits
.
2018-11-16 15:08:18 +02:00
Eduard-Mihai Burtescu
9bb6663431
[eddyb] rustc_codegen_ssa: handle LLVM unsafety correctly.
2018-11-16 15:08:18 +02:00
Denis Merigoux
b9e5cf99a9
Separating the back folder between backend-agnostic and LLVM-specific code
2018-11-16 15:08:18 +02:00
Denis Merigoux
015e4441f5
Finished moving backend-agnostic code to rustc_codegen_ssa
2018-11-16 15:08:18 +02:00
Denis Merigoux
c0a428ee70
Great separation of librustc_codegen_llvm: librustc_codegen_ssa compiles
2018-11-16 15:07:24 +02:00
Denis Merigoux
c9f26c2155
Beginning of moving all backend-agnostic code to rustc_codegen_ssa
2018-11-16 14:55:42 +02:00
Denis Merigoux
b02e5cce16
Moved Backend interface into rustc_codegen_utils
2018-11-16 14:40:16 +02:00
Denis Merigoux
566fa4d003
Moved common.rs enums
2018-11-16 14:38:19 +02:00
Denis Merigoux
39fd4d9274
Starting to move backend-agnostic code into codegen_utils
...
IntPredicate moved
2018-11-16 14:38:19 +02:00
Denis Merigoux
4ba09ab8d2
Added compile codegen to backend trait
2018-11-16 14:38:19 +02:00
Denis Merigoux
6819e6e6e1
Preparing the generalization of base:compile_coodegen_unit
2018-11-16 14:38:15 +02:00
Denis Merigoux
8d530db2c5
Generalized base:codegen_crate
2018-11-16 14:36:43 +02:00
Denis Merigoux
97825a36be
Move doc to trait declarations
2018-11-16 14:36:38 +02:00
Denis Merigoux
ac34068ed9
Generalized base:maybe_create_entry_wrapper
2018-11-16 14:34:26 +02:00
Denis Merigoux
441a7c1092
Generalized mono_item.rs and base.rs:codegen_instance
2018-11-16 14:34:26 +02:00
Denis Merigoux
6a993fe353
Generalized mir::codegen_mir (and all subsequent functions)
2018-11-16 14:33:10 +02:00
Denis Merigoux
cbe31a4229
Generalized base::coerce_unsized_into
2018-11-16 14:15:13 +02:00
Denis Merigoux
78dd95f4c7
Generalized base::unsize_thin_ptr
2018-11-16 14:15:13 +02:00
Denis Merigoux
034f69753b
Generalized base::unsized_info
2018-11-16 14:15:13 +02:00
Denis Merigoux
0a1c50955b
Traitified IntrinsicCallMethods
2018-11-16 14:12:49 +02:00
Denis Merigoux
a5aeb8edd6
Transfered memcpy and memset to BuilderMethods
2018-11-16 14:11:59 +02:00
Denis Merigoux
d77e34f35b
Generalized memset and memcpy
2018-11-16 14:11:59 +02:00
Denis Merigoux
0514c7b1b2
Generalized some base.rs methods
2018-11-16 14:11:59 +02:00