bjorn3
bbb850931f
Factor Option out of copy_cgu_workproduct_to_incr_comp_cache_dir call
...
This improves clarity of the code a bit
2022-06-06 12:38:38 +00:00
bjorn3
5a1a111b52
Avoid an unnecessary clone for copy_cgu_workproduct_to_incr_comp_cache_dir calls
2022-06-06 12:32:08 +00:00
bjorn3
d5cb2bee82
Rename CodegenUnit::work_product to previous_work_product
...
It returns the previous work product or panics if there is none. This rename
makes the purpose of this method clearer.
2022-06-06 12:30:10 +00:00
bjorn3
d9025cebac
Merge commit ' 63734fcdd7' into sync_cg_clif-2022-05-15
2022-05-15 12:32:19 +02:00
klensy
f2d2ec3e93
check_doc_keyword: don't alloc string for emptiness check
...
check_doc_alias_value: get argument as Symbol to prevent needless string convertions
check_doc_attrs: don't alloc vec, iterate over slice. Vec introduced in #83149 , but no perf run posted on merge
replace as_str() check with symbol check
get_single_str_from_tts: don't prealloc string
trivial string to str replace
LifetimeScopeForPath::NonElided use Vec<Symbol> instead of Vec<String>
AssertModuleSource use BTreeSet<Symbol> instead of BTreeSet<String>
CrateInfo.crate_name replace FxHashMap<CrateNum, String> with FxHashMap<CrateNum, Symbol>
2022-04-08 11:45:57 +03:00
Loïc BRANSTETT
69046fa8fd
Cleanup after some refactoring in rustc_target
2022-04-03 21:29:57 +02:00
bjorn3
d1904e5855
Merge commit ' 370c397ec9' into sync_cg_clif-2022-03-20
2022-03-20 16:55:21 +01:00
bjorn3
b5cbb87e62
Merge commit ' 35d9c6bf25' into sync_cg_clif-2022-02-23
2022-02-23 11:49:34 +01:00
bjorn3
a5a14258e5
Merge commit ' 40b00f4200' into sync_cg_clif-2021-12-30
2021-12-30 14:53:41 +01:00
bjorn3
799e067912
Merge commit ' 97e5045493' into sync_cg_clif-2021-12-20
2021-12-20 18:56:35 +01:00
Nicholas Nethercote
93511d926f
Remove unnecessary sigils around Symbol::as_str() calls.
2021-12-15 17:32:14 +11:00
Camille GILLOT
7879119e6a
Make hash_result an Option.
2021-10-20 18:29:18 +02:00
Camille GILLOT
04f3839596
Move EncodedMetadata to rustc_metadata.
2021-09-30 19:41:32 +02:00
bjorn3
5d3b8e7c1b
Merge commit ' 61667dedf5' into sync_cg_clif-2021-09-19
2021-09-19 13:56:58 +02:00
bjorn3
e6049759d0
Use in_incr_comp_dir_sess in cg_clif
2021-09-02 12:29:12 +02:00
bjorn3
fb92375755
Merge commit ' 3a31c6d827' into sync_cg_clif-2021-07-07
2021-07-07 11:14:20 +02:00
bjorn3
135edbf4ba
Move LinkerInfo into CrateInfo
2021-07-06 15:31:38 +02:00
bjorn3
6b3a061e94
Remove LibSource
...
The information is stored in used_crate_source too anyway
2021-07-05 10:49:07 +02:00
bjorn3
dbdeafbc26
Move crate_name field from OngoingCodegen to CrateInfo
2021-06-04 13:20:05 +02:00
bjorn3
646c6043a7
Move windows_subsystem field from CodegenResults to CrateInfo
2021-06-04 13:20:04 +02:00
bjorn3
d6b03451e6
Merge commit ' 40dd3e2b70' into sync_cg_clif-2021-05-27
2021-05-27 13:08:14 +02:00
bors
3c53005949
Auto merge of #85178 - cjgillot:local-crate, r=oli-obk
...
Remove CrateNum parameter for queries that only work on local crate
The pervasive `CrateNum` parameter is a remnant of the multi-crate rustc idea.
Using `()` as query key in those cases avoids having to worry about the validity of the query key.
2021-05-17 01:42:03 +00:00
Amanieu d'Antras
d342a3490b
Add support for const operands and options to global_asm!
...
On x86, the default syntax is also switched to Intel to match asm!
2021-05-13 22:31:57 +01:00
Camille GILLOT
915d766307
Use () for codegen queries.
2021-05-12 13:58:46 +02:00
Camille GILLOT
f22ab98d4c
Use () in dependency_formats.
2021-05-12 13:58:41 +02:00
bors
809722dc13
Auto merge of #83610 - bjorn3:driver_cleanup, r=cjgillot
...
rustc_driver cleanup
Best reviewed one commit at a time.
2021-05-12 08:38:03 +00:00
bjorn3
55dbf17bb5
Pass target_cpu to LinkerInfo::new instead of link_binary
...
This is one step towards separating the linking code from codegen backends
2021-05-02 18:00:20 +02:00
Erin Power
df68e5ac73
[cg_clif] Fix run_jit from sync
2021-04-30 15:37:19 +02:00
Erin Power
ee570b1302
Sync rustc_codegen_cranelift ' ddd4ce2553'
2021-04-30 14:49:58 +02:00
Charles Lew
fa559fb2df
Implement RFC 1260 with feature_name imported_main.
2021-04-29 08:35:08 +08:00
bjorn3
07968a001d
Merge commit ' 0969bc6dde' into sync_cg_clif-2021-03-29
2021-03-29 10:45:09 +02:00
bjorn3
27886cd6b6
Merge commit ' 9a0c32934e' into sync_cg_clif-2021-03-05
2021-03-05 19:12:59 +01:00
Camille GILLOT
702676bfff
Use a QueryContext for try_mark_green.
2021-02-19 17:51:56 +01:00
Camille GILLOT
fe8d11bb99
Use an ItemId inside mir::GlobalAsm.
2021-02-15 19:24:58 +01:00
bjorn3
a75f9bc3be
Merge commit ' d556c56f79' into sync_cg_clif-2021-02-01
2021-02-01 10:11:46 +01:00
bjorn3
77f74ed070
Merge commit ' dbee13661e' into sync_cg_clif-2020-12-27
2020-12-27 10:30:38 +01:00
David Wood
5f6c32af15
cg_clif: fix build with split dwarf
...
This commit makes minor changes to the cranelift backend so that it can
build given changes in cg_ssa for Split DWARF.
Signed-off-by: David Wood <david@davidtw.co>
2020-12-16 10:33:48 +00:00
bjorn3
d404840788
Merge commit ' 5988bbd24a' into sync_cg_clif-2020-11-27
2020-11-27 20:48:53 +01:00
Vadim Petrochenkov
e9c34b3cf8
Collapse all uses of target.options.foo into target.foo
...
with an eye on merging `TargetOptions` into `Target`.
`TargetOptions` as a separate structure is mostly an implementation detail of `Target` construction, all its fields logically belong to `Target` and available from `Target` through `Deref` impls.
2020-11-08 17:29:13 +03:00
bjorn3
285c7c66dc
Merge commit ' 03f01bbe90' into update_cg_clif-2020-11-01
2020-11-03 11:00:04 +01:00
bjorn3
4971028775
Rustup to rustc 1.49.0-nightly ( dd7fc54eb 2020-10-15)
2020-10-16 09:35:48 +02:00
bjorn3
a233646dfc
Rustup to rustc 1.49.0-nightly ( e160e5cb8 2020-10-14)
2020-10-15 10:34:13 +02:00
bjorn3
e0002c1892
Remove MIR dump on panic
...
I haven't used it for a long time and it adds a lot of noise to the
panic print.
2020-10-11 13:24:14 +02:00
bjorn3
6e8ea1c049
Abort earlier when an error happens in jit mode
2020-10-11 11:31:36 +02:00
bjorn3
c352f91b40
Rustfmt
2020-10-09 19:17:52 +02:00
bjorn3
0a5968dfd2
Use the new cranelift-module interface
...
This updates Cranelift to include bytecodealliance/wasmtime#2249
2020-10-08 19:00:21 +02:00
bjorn3
426e55709c
Replace CG_CLIF_JIT with --jit
2020-09-29 18:41:59 +02:00
bjorn3
838dd17a67
Don't read CG_CLIF_JIT from init_global_lock
...
In preparation to moving away from an env var
2020-09-29 18:12:23 +02:00
bjorn3
b8b5a824a6
Fix JIT
2020-09-29 15:28:48 +02:00
bjorn3
c8699076f9
Document almost all modules
...
Fixes #1082
2020-09-23 15:13:49 +02:00