bjorn3
356d749952
Update Readme.md for the fixed abi compatibility
2021-01-30 19:38:57 +01:00
bjorn3
d34b5e2885
Rustup to rustc 1.51.0-nightly ( b12290861
2021-01-29)
2021-01-30 19:29:02 +01:00
bjorn3
8faae2992a
Add missing dir to .gitignore
2021-01-30 18:27:28 +01:00
bjorn3
f3447682d0
Handle PassMode::Cast in combination with #[repr(align)]
2021-01-30 17:26:51 +01:00
bjorn3
18de1b1fde
Merge pull request #1131 from bjorn3/abi_compat
...
Full abi compatibilty
2021-01-30 16:53:15 +01:00
bjorn3
6a739b3ae1
Merge pull request #1132 from Uriopass/master
...
Don't set RUSTFLAGS when no specific linker is needed
2021-01-30 16:31:48 +01:00
Paris DOUADY
3eb649c631
dont set rustflags when no specific linker needed
2021-01-30 16:25:48 +01:00
bjorn3
7fcf59f19e
Add print on panic for predefining of a function
2021-01-30 14:19:13 +01:00
bjorn3
2d6981756d
Handle argument extension mode
2021-01-30 12:25:20 +01:00
bjorn3
b5ddb76f84
Force stack slot size to be a multiple of 16
...
This ensures that all stack slots are aligned to 16 bytes. Without this
linking against crates compiled with cg_llvm may cause a crash due to
simd instructions requiring a 16 byte alignment.
2021-01-30 12:11:40 +01:00
bjorn3
139a6d12de
Fix 128bit checked math intrinsic calls
2021-01-30 11:02:24 +01:00
bjorn3
e8f48e4bae
[WIP] Implement PassMode::Cast
2021-01-29 22:15:15 +01:00
Yuki Okushi
e67b72de2e
Rollup merge of #81333 - RalfJung:const-err-simplify, r=oli-obk
...
clean up some const error reporting around promoteds
These are some error reporting simplifications enabled by https://github.com/rust-lang/rust/pull/80579 .
Further simplifications are possible but could be blocked on making `const_err` a hard error.
r? ``````@oli-obk``````
2021-01-29 09:17:38 +09:00
bjorn3
268d7bc459
Remove fn_sig_for_fn_abi
2021-01-27 10:36:40 +01:00
bjorn3
e564a0ad31
Rustfmt
2021-01-27 10:33:06 +01:00
bjorn3
aa23f862dc
Remove vararg support check
...
This check wasn't very useful and removing it simplifies the code.
2021-01-27 10:32:56 +01:00
bjorn3
d263447878
Replace EmptySinglePair with SmallVec
2021-01-27 10:24:31 +01:00
bjorn3
fc595f1a55
[WIP] Use FnAbi everywhere instead of our own abi calculations
2021-01-26 21:41:20 +01:00
bjorn3
4555737152
Split symbol name and signature calculation
2021-01-26 15:11:03 +01:00
bjorn3
2b58d8c187
Misc cleanups
2021-01-25 17:12:16 +01:00
bjorn3
de713a80ca
Replace all uses of PassMode with ArgAbi
2021-01-25 15:37:49 +01:00
bjorn3
ff3304285a
Rustup to rustc 1.51.0-nightly ( 1d0d76f8d
2021-01-24)
2021-01-25 11:40:26 +01:00
bjorn3
6170fc617e
Split abi adjustments out
2021-01-25 10:57:59 +01:00
bjorn3
d39b441129
Start using ArgAbi
2021-01-25 10:45:01 +01:00
Ralf Jung
d6eb4f571e
clean up some const error reporting around promoteds
2021-01-24 13:34:34 +01:00
bjorn3
ae6daf77ba
Default to Cranelift newBE
2021-01-22 12:28:32 +01:00
bjorn3
2ced8c0eb0
Fix rust-analyzer pref name
2021-01-21 21:22:19 +01:00
bjorn3
500faf2165
Merge pull request #1127 from bjorn3/newbe
...
Support building with the new Cranelift backends
2021-01-21 19:55:19 +01:00
bjorn3
da4aa92df1
Test both oldbe and newbe on CI
2021-01-21 19:34:58 +01:00
bjorn3
173ec34e3d
Add a feature flag to switch between oldbe and newbe
2021-01-21 19:33:29 +01:00
bjorn3
a19ef67f14
Update Cranelift
...
This implements everything in the new backend necessary for usage with cg_clif
2021-01-21 19:19:48 +01:00
bjorn3
9bf5cb43ab
Fix indirectly linking to libstd.so with the JIT
2021-01-21 16:14:32 +01:00
bjorn3
7f60301a7a
Disable new failing libcore tests
2021-01-21 15:19:31 +01:00
bjorn3
c0aefeb5b7
Rustup to rustc 1.51.0-nightly ( a4cbb44ae
2021-01-20)
2021-01-21 14:51:28 +01:00
LeSeulArtichaut
c3d7dc93dc
Use ty::{IntTy,UintTy,FloatTy} in rustc
2021-01-18 21:09:30 +01:00
bjorn3
cfedad1f75
Clear domtree after cg_clif optimizations
2021-01-16 13:05:23 +01:00
bjorn3
1952b1ffae
Update dependencies
2021-01-16 11:50:58 +01:00
bjorn3
c34e165c66
Update Cranelift
2021-01-16 11:46:21 +01:00
Ömer Sinan Ağacan
ea73caa3b7
codegen_cranelift: Fix redundant semicolon warn
2021-01-16 07:17:13 +03:00
bjorn3
3ea8915d4a
Disable timings by default for cargo.sh
...
Fixes #1121
2021-01-06 14:54:19 +01:00
bjorn3
1a1cdac930
Remove code that was moved from the backend to rustc_incremental
2021-01-02 16:59:23 +01:00
bjorn3
2c41a6953b
Rustup to rustc 1.51.0-nightly ( 44e3daf5e
2020-12-31)
2021-01-01 17:15:04 +01:00
bjorn3
50a6a84543
Merge branch 'sync_from_rust'
2020-12-27 10:30:56 +01:00
bjorn3
77f74ed070
Merge commit 'dbee13661efa269cb4cd57bb4c6b99a19732b484' into sync_cg_clif-2020-12-27
2020-12-27 10:30:38 +01:00
bjorn3
dbee13661e
Rustfmt
2020-12-25 12:48:19 +01:00
bjorn3
5b32489e72
Set rust-analyzer importMergeBehaviour option to last
2020-12-25 12:47:03 +01:00
bjorn3
2ca8daab42
Merge pull request #1120 from bjorn3/lazy_jit
...
Lazy compilation in jit mode
2020-12-25 12:40:18 +01:00
bjorn3
35f4a25c6b
Add documentation
2020-12-25 12:19:14 +01:00
bjorn3
3f6a3b5ebe
Implement lazy compilation in JIT mode
...
Lazy compilation has the potential to significantly improve the startup
time of a program. While functions have to be codegened when called, it
is expected that a significant amount of all code is only required when
an error occurs or only when the program is used in certain ways.
The basic approach is to first codegen a shim for each function. This
shim calls the `__cg_clif_jit` function of cg_clif with a pointer to the
`Instance` corresponding to the function for which it is a shim.
`__cg_clif_jit` function then codegens this function and uses the hot
code swapping support of SimpleJIT to redirect future calls to the
function to the real version. Finally it calls the newly codegened
function.
2020-12-25 12:08:21 +01:00
bjorn3
0b9b2532d2
Move finalize CodegenCx timer out of codegen mono items timer
2020-12-25 11:49:50 +01:00