Eduard-Mihai Burtescu
6a9c9b0f18
ty::layout: implement layout_of
automatically as a default method.
2021-09-02 01:17:14 +03:00
Eduard-Mihai Burtescu
b710c0d48c
rustc_target: move LayoutOf
to ty::layout
.
2021-09-02 01:17:14 +03:00
Eduard-Mihai Burtescu
d9f0448815
rustc_target: add lifetime parameter to LayoutOf
.
2021-08-27 13:09:32 +03:00
bjorn3
fb92375755
Merge commit '3a31c6d8272c14388a34622193baf553636fe470' into sync_cg_clif-2021-07-07
2021-07-07 11:14:20 +02:00
Charles Lew
4d289dba2e
Update other codegens to use tcx managed vtable allocations.
2021-06-28 19:39:48 +08:00
bjorn3
d6b03451e6
Merge commit '40dd3e2b7089b5e96714e064b731f6dbf17c61a9' into sync_cg_clif-2021-05-27
2021-05-27 13:08:14 +02:00
Andy Wang
e162eeb1f0
Use local and remapped paths where appropriate
2021-05-05 15:31:28 +01:00
Erin Power
ee570b1302
Sync rustc_codegen_cranelift 'ddd4ce25535cf71203ba3700896131ce55fde795'
2021-04-30 14:49:58 +02:00
bjorn3
07968a001d
Merge commit '0969bc6dde001e01e7e1f58c8ccd7750f8a49ae1' into sync_cg_clif-2021-03-29
2021-03-29 10:45:09 +02:00
bjorn3
27886cd6b6
Merge commit '9a0c32934ebe376128230aa8da3275697b2053e7' into sync_cg_clif-2021-03-05
2021-03-05 19:12:59 +01:00
bjorn3
a75f9bc3be
Merge commit 'd556c56f792756dd7cfec742b9f2e07612dc10f4' into sync_cg_clif-2021-02-01
2021-02-01 10:11:46 +01:00
bjorn3
d404840788
Merge commit '5988bbd24aa87732bfa1d111ba00bcdaa22c481a' into sync_cg_clif-2020-11-27
2020-11-27 20:48:53 +01:00
Bastian Kauschke
56e63805be
update cg_clif
2020-11-16 22:42:09 +01:00
Tomasz Miąsko
f7e11cba36
inliner: Use substs_for_mir_body
...
Changes from 68965 extended the kind of instances that are being
inlined. For some of those, the `instance_mir` returns a MIR body that
is already expressed in terms of the types found in substitution array,
and doesn't need further substitution.
Use `substs_for_mir_body` to take that into account.
2020-11-06 00:00:00 +00:00
bjorn3
285c7c66dc
Merge commit '03f01bbe901d60b71cf2c5ec766aef5e532ab79d' 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
0a5968dfd2
Use the new cranelift-module interface
...
This updates Cranelift to include bytecodealliance/wasmtime#2249
2020-10-08 19:00:21 +02:00
bjorn3
c8699076f9
Document almost all modules
...
Fixes #1082
2020-09-23 15:13:49 +02:00
bjorn3
552991e17e
Replace FxHashMap with IndexVec for local_map
...
Fixes #745
2020-09-16 18:45:19 +02:00
bjorn3
217b3818b7
Rustup to rustc 1.48.0-nightly ( c59199efc
2020-09-04)
2020-09-05 10:38:49 +02:00
CohenArthur
4e685a512e
fmt: Run cargo fmt since it is available
2020-08-28 12:10:48 +02:00
CohenArthur
0d1f8c802e
FunctionCx: Refactor fx.cx.tcx
into fx.tcx
2020-08-22 16:47:31 +02:00
CohenArthur
5cf4577352
FunctionCx: Add tcx field for easier access
2020-08-22 16:45:50 +02:00
CohenArthur
7b534d653d
FunctionCx: Rename codegen_cx -> cx
2020-08-22 16:17:58 +02:00
CohenArthur
429e75fe40
FunctionCx: WIP: Remove more common fields from CodegenCx
2020-08-22 15:49:16 +02:00
CohenArthur
1a6365f95f
FunctionCx: WIP: Fix overzealous sed usage
2020-08-22 15:25:36 +02:00
CohenArthur
ad4a7a1f0c
FunctionCx: WIP: Fix syntax error on sed codegen_cx -> .codegen_cx
2020-08-22 15:21:38 +02:00
CohenArthur
cb69c7019c
FunctionCx: Replace .module with .codegen_cx.module
2020-08-22 15:19:09 +02:00
CohenArthur
297d65c247
FunctionCx: WIP: Replace .tcx with .codegen_cx.tcx
2020-08-22 15:18:39 +02:00
CohenArthur
5a59c24eee
FunctionCx: Store reference to CodegenCx instead
2020-08-22 15:18:10 +02:00
bjorn3
c1efc33941
Fix panic
2020-07-25 13:17:49 +02:00
bjorn3
abc99c6259
Allow storing SIMD vectors in SSA values
2020-07-25 12:16:41 +02:00
bjorn3
1b8df386aa
Fix -Zpolymorphize
2020-07-23 18:08:15 +02:00
bjorn3
3f2589acd9
Fix multiple inline asm blocks in the same function
2020-07-23 12:37:03 +02:00
bjorn3
a0580610b2
Use From::from
instead of as
where possible
2020-07-14 16:38:50 +02:00
bjorn3
726e329f46
Add basic inline asm support for x86_64
2020-07-10 21:34:26 +02:00
bjorn3
d032c24476
Merge pull request #1057 from spastorino/store-pairs-in-ssa
...
Store pairs in ssa
2020-07-03 15:04:29 +02:00
Santiago Pastorino
ef01b4e3dd
Store fat pointers in ssa variables
2020-07-03 09:48:22 -03:00
Santiago Pastorino
aa80ed0a2d
Store pairs in SSA
2020-07-02 19:23:21 -03:00
bjorn3
a299d0e632
Don't panic on unevaluatable promoted constants
2020-07-01 14:15:23 +02:00
bjorn3
3227203fe6
Don't use a 1-to-1 mapping between mir local and cranelift_frontend variable
2020-06-27 14:29:28 +02:00
bjorn3
a3cd293148
Don't perform a double substitution in some cases
2020-06-24 12:10:20 +02:00
bjorn3
eb8fd197ab
Prelude cleanup
2020-06-20 18:44:49 +02:00
bjorn3
ef4186a85b
Use Cranelift legalization for icmp.i128
...
The previous translation was wrong for signed 128bit comparisions
This fixes several libcore tests
2020-06-20 13:23:31 +02:00
bjorn3
7031c96fb3
Call panic lang item on failed TerminatorKind::Assert
...
Fixes #164
2020-04-25 19:07:53 +02:00
bjorn3
cd684e39e0
Fix saturated_* intrinsics for 128bit ints
...
Fixes #968
2020-04-17 14:14:24 +02:00
bjorn3
016673b0c3
Fix rustc::internals lint warnings
2020-04-09 12:12:55 +02:00
bjorn3
291c75d10b
Enable the rust_2018_idioms and unused_lifetimes lints and fix all warnings
...
They are set to deny by default in the rust-lang/rust repo
2020-04-09 12:12:55 +02:00
bjorn3
ac1c5d6954
Rustup to rustc 1.44.0-nightly ( 537ccdf3a
2020-04-02)
2020-04-03 11:54:18 +02:00
bjorn3
13e3a3c8b0
Rustup to rustc 1.44.0-nightly ( 211365947
2020-03-30)
2020-03-31 13:20:19 +02:00