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
bjorn3
6d30315d05
Merge pull request #1169 from eggyal/macho-link-section
...
Set correct segment from #[link_section] for MachO
2021-04-30 19:02:09 +02:00
Erin Power
0a1b87c9ce
Merge commit '15c8d31392b9fbab3b3368b67acc4bbe5983115a' into cranelift-rebase
2021-04-30 18:46:59 +02:00
XAMPPRocky
15c8d31392
No-op register_jit on Windows ( #1170 )
...
* No-op register_jit on Windows
Co-authored-by: bjorn3 <bjorn3@users.noreply.github.com>
2021-04-30 18:44: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 'ddd4ce25535cf71203ba3700896131ce55fde795'
2021-04-30 14:49:58 +02:00
Alan Egerton
95e6481d02
Set correct segment from #[link_section] for MachO
2021-04-30 11:02:34 +01:00
bjorn3
ddd4ce2553
Remove unused parameter
2021-04-30 10:52:37 +02:00
bjorn3
88901ca9d4
Ignore new failing rustc test
2021-04-29 14:16:16 +02:00
Charles Lew
fa559fb2df
Implement RFC 1260 with feature_name imported_main
.
2021-04-29 08:35:08 +08:00
bjorn3
beb4e312c8
Rustup to rustc 1.53.0-nightly (727d10156 2021-04-27)
2021-04-28 19:41:10 +02:00
bjorn3
31b2963da9
Merge pull request #1163 from mominul/target_cpu
...
Support -Ctarget-cpu
2021-04-23 17:13:25 +02:00
Muhammad Mominul Huque
c4f50fb06f
Update the error messsage
...
Co-authored-by: bjorn3 <bjorn3@users.noreply.github.com>
2021-04-23 20:40:27 +06:00
Muhammad Mominul Huque
8eb96b8517
Handle native target-cpu variant
...
and raise fatal error if the specified target cpu is not supported
2021-04-23 19:55:52 +06:00
Muhammad Mominul Huque
e16ccba394
Support -Ctarget-cpu
2021-04-23 17:04:45 +06:00
bjorn3
cdc0aa188e
Rustup to rustc 1.53.0-nightly (6df26f897 2021-04-20)
2021-04-21 15:32:04 +02:00
bjorn3
05f9602567
Sync from rust 6df26f897cffb2d86880544bb451c6b5f8509b2d
2021-04-21 11:29:57 +02:00
bjorn3
5285856771
Match on Symbol instead of &str in intrinsics handling
2021-04-19 19:42:06 +02:00
bjorn3
bf85572f59
Extend Termination::report return value as necessary
2021-04-18 10:58:42 +02:00
bjorn3
e01de0f58d
Avoid .to_string() for symbol names where possible
2021-04-18 10:37:02 +02:00
bjorn3
a569cb4022
Fix test
2021-04-18 10:32:38 +02:00
bjorn3
9a3d98dade
Call Termination::report on main result in jit mode
2021-04-18 10:29:20 +02:00
bjorn3
f3b5e14eca
Upload artifacts for cross compiling to MinGW
...
Fixes #1161
2021-04-16 14:39:46 +02:00
bjorn3
7f0e35106e
Fix overflow checking when multiplying two i64
...
Fixes #1162
2021-04-16 14:36:07 +02:00
bjorn3
6d6c574289
Fix rotate_left and rotate_right with 128bit shift amount
...
Fixes #1114
2021-04-16 14:08:10 +02:00
bjorn3
944308089f
Disable new test
2021-04-16 12:35:22 +02:00
bjorn3
24cac8fa54
Fix rustc tests by updating compiler-builtins dep to 0.1.40
2021-04-16 12:21:29 +02:00
bjorn3
73c0db092d
Rustup to rustc 1.53.0-nightly (132b4e5d1 2021-04-13)
2021-04-16 11:59:20 +02:00
Jubilee Young
ea3398ad98
Add more SIMD math.h intrinsics
...
LLVM supports many functions from math.h in its IR. Many of these have
single-instruction variants on various platforms. So, let's add them so
std::arch can use them.
Yes, exact comparison is intentional: rounding must always return a
valid integer-equal value, except for inf/NAN.
2021-04-14 15:25:06 -07:00
bjorn3
607ed9190f
Sync from rust b203b0d240b67916cfa77f640aedaf1c87d50f6d
2021-04-14 19:01:51 +02:00
bjorn3
b477a5472d
Avoid file name formatting when debug file writing is disabled
2021-04-14 18:46:22 +02:00
bjorn3
56bf873110
Time object file writing
2021-04-14 18:46:22 +02:00
bjorn3
0319b31f74
Merge pull request #1159 from bjorn3/driver_refactorings
...
Driver refactorings
2021-04-14 16:36:42 +02:00
bjorn3
69102dbcf7
Add some documentation
2021-04-14 15:16:02 +02:00
bjorn3
ff38b37769
Fix docs
2021-04-14 15:16:02 +02:00
bjorn3
eed9aaa268
Extract create_jit_module function
2021-04-14 15:05:57 +02:00
bjorn3
d4d270d503
Merge BACKEND_CONFIG and CURRENT_MODULE thread locals
2021-04-14 15:01:09 +02:00
bjorn3
6fac7f089f
Don't unregister unwind tables after the JIT is done
2021-04-14 15:01:07 +02:00
bjorn3
86530f889e
Use maybe_create_entry_wrapper again in jit mode
...
This simplifies the jit driver a lot
2021-04-14 14:59:36 +02:00
bjorn3
ba8e610b26
Inline driver::codegen_crate
2021-04-14 14:57:04 +02:00
bjorn3
d9e9fedfe5
Remove CodegenCx::finalize and pass Module separately from CodegenCx
2021-04-14 14:57:02 +02:00
bjorn3
3e2bdb94ec
Don't store TyCtxt in UnwindContext
2021-04-14 14:53:33 +02:00
bjorn3
b09b8b1bd4
Re-use Context in codegen_shim
2021-04-14 14:20:42 +02:00
bjorn3
b4bf4b5c09
Enable and disable some rust-analyzer diagnostics
2021-04-14 14:20:42 +02:00
bjorn3
542e73e8ac
Merge pull request #1158 from bjorn3/isolate_mono_items_pr
...
Isolate mono items
2021-04-14 11:43:58 +02:00
bjorn3
65420b50f8
Don't deduplicate anonymous allocations
2021-04-14 10:38:18 +02:00
bjorn3
f3b0f425c5
Don't deduplicate vtables between functions
2021-04-14 10:37:16 +02:00
bjorn3
b6f7e71c1d
Update Cranelift
2021-04-14 10:37:14 +02:00
bjorn3
29a4a551eb
Rustfmt
2021-04-12 12:09:05 +02:00
pierwill
a7c4c3ee71
Fix outdated crate names in compiler docs
...
Changes `librustc_X` to `rustc_X`, only in documentation comments.
Plain code comments are left unchanged.
Also fix incorrect file paths.
2021-04-08 11:12:14 -05:00