Bastian Kersting
732132f6b1
Extend the renaming to coerce_unsafe_ptr
2025-02-10 13:01:55 +00:00
Michael Goulet
96bea7ac90
Use ExistentialTraitRef throughout codegen
2025-01-30 15:34:00 +00:00
Jubilee Young
e3c154705c
cg_clif: rustc_abi::Abi => BackendRepr
2024-10-29 15:01:01 -07:00
Michael Goulet
0a67bf1b8a
Make builtin_deref just return a Ty
2024-05-09 22:55:00 -04:00
Vadim Petrochenkov
46fc398706
rustc_index: Add a ZERO constant to index types
...
It is commonly used.
2024-04-03 19:06:22 +03:00
bjorn3
c5c31447a7
Merge commit ' 09fae60a86' into sync_cg_clif-2024-03-28
2024-03-28 11:43:35 +00:00
bjorn3
0061bb7faf
Merge commit ' 3e50cf6502' into sync_cg_clif-2024-01-26
2024-01-26 18:33:45 +00:00
Ralf Jung
72fb4b8f31
add helper method for finding the one non-1-ZST field
2023-09-12 20:52:05 +02:00
Ralf Jung
833592766f
const_eval and codegen: audit uses of is_zst
2023-08-29 09:03:46 +02:00
Scott McMurray
406eb96437
Move mir::Field → abi::FieldIdx
...
The first PR for https://github.com/rust-lang/compiler-team/issues/606
This is just the move-and-rename, because it's plenty big-and-bitrotty already. Future PRs will start using `FieldIdx` more broadly, and concomitantly removing `FieldIdx::new`s.
2023-03-28 22:22:37 -07:00
Mu42
60aafee963
Remove Ty::is_region_ptr
2023-03-20 15:32:21 +08:00
bjorn3
7b3bd56ed9
Merge commit ' dec0daa8f6' into sync_cg_clif-2023-03-15
2023-03-15 14:41:48 +00:00
bjorn3
9950bd1dc5
Merge commit ' 266e96785a' into sync_cg_clif-2022-10-23
2022-10-23 16:22:55 +02:00
Michael Woerister
095064b996
Turn tcx.vtable_allocation() into a query.
2021-10-07 20:03:00 +02:00
bjorn3
d220159810
Merge commit ' 05677b6bd6' into sync_cg_clif-2021-08-06
2021-08-06 16:26:56 +02:00
Charles Lew
6f682236c9
Implement pointer casting.
2021-08-03 01:09:37 +08:00
bjorn3
fb92375755
Merge commit ' 3a31c6d827' into sync_cg_clif-2021-07-07
2021-07-07 11:14:20 +02:00
Smitty
913c0bc01d
Make vtable_allocation always succeed
2021-07-03 11:14:19 -04:00
Smitty
17373a9401
fix sess error
...
This passed x.py check locally, not sure why it wasn't rebased right...
2021-06-29 19:17:14 -04:00
Smitty
6048adc8b1
Support allocation failures when interperting MIR
...
Note that this breaks Miri.
Closes #79601
2021-06-29 19:08:26 -04:00
Charles Lew
4d289dba2e
Update other codegens to use tcx managed vtable allocations.
2021-06-28 19:39:48 +08:00
Charles Lew
d3e123fc4f
Refactor to make interpreter and codegen backend neutral to vtable internal representation.
2021-06-15 01:59:00 +08:00
Erin Power
ee570b1302
Sync rustc_codegen_cranelift ' ddd4ce2553'
2021-04-30 14:49:58 +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
bjorn3
27886cd6b6
Merge commit ' 9a0c32934e' into sync_cg_clif-2021-03-05
2021-03-05 19:12:59 +01:00
bjorn3
77f74ed070
Merge commit ' dbee13661e' into sync_cg_clif-2020-12-27
2020-12-27 10:30:38 +01:00
bjorn3
285c7c66dc
Merge commit ' 03f01bbe90' into update_cg_clif-2020-11-01
2020-11-03 11:00:04 +01: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
55d4afd2ba
Remove byteorder dependency
2020-09-16 16:54:58 +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
7b534d653d
FunctionCx: Rename codegen_cx -> cx
2020-08-22 16:17:58 +02:00
CohenArthur
4cb2a2b793
FunctionCx: Fix field usage in inline_asm and vtable modules
2020-08-22 16:14:33 +02:00
CohenArthur
429e75fe40
FunctionCx: WIP: Remove more common fields from CodegenCx
2020-08-22 15:49:16 +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
bjorn3
1b8df386aa
Fix -Zpolymorphize
2020-07-23 18:08:15 +02:00
bjorn3
1f3dd4f91c
Prevent different vtables with the same name
...
Fixes #987
2020-06-23 11:41:35 +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
017a9b7641
Rustup to rustc 1.44.0-nightly ( 699f83f52 2020-03-29)
2020-03-30 19:00:24 +02:00
bjorn3
f288959c00
Limit publicness to crate where possible and remove unused imports
2020-03-27 12:14:45 +01:00
bjorn3
98a073cf26
Shrink vtable symbol names a bit
2020-03-13 11:19:31 +01:00
bjorn3
240d56c33c
Support virtual calls with unsized self argument
2020-03-10 20:41:31 +01:00
bjorn3
c8de552c01
Tls support
2020-02-26 14:41:05 +01:00
bjorn3
217beab62a
Reduce the amount of calls to layout_of
2020-01-15 13:18:54 +01:00
bjorn3
1bb848d4ac
Re-use cranelift_codegen::ir::Function for every function
...
Fixes #844
2020-01-04 17:58:38 +01:00
bjorn3
696053e69f
Set memflags for vtable loads
2019-12-20 16:16:28 +01:00