rust/compiler/rustc_codegen_cranelift/src
bors 263edd43c5 Auto merge of #99033 - 5225225:interpreter-validity-checks, r=oli-obk
Use constant eval to do strict mem::uninit/zeroed validity checks

I'm not sure about the code organisation here, I just dumped the check in rustc_const_eval at the root. Not hard to move it elsewhere, in any case.

Also, this means cranelift codegen intrinsics lose the strict checks, since they don't seem to depend on rustc_const_eval, and I didn't see a point in keeping around two copies.

I also left comments in the is_zero_valid methods about "uhhh help how do i do this", those apply to both methods equally.

Also rustc_codegen_ssa now depends on rustc_const_eval... is this okay?

Pinging `@RalfJung` since you were the one who mentioned this to me, so I'm assuming you're interested.

Haven't had a chance to run full tests on this since it's really warm, and it's 1AM, I'll check out any failures/comments in the morning :)
2022-07-17 19:28:01 +00:00
..
abi Use CallConv::Cold in cranelift for extern "rust-cold" 2022-05-30 00:19:24 -07:00
debuginfo Rename debugging_opts to unstable_opts 2022-07-13 17:47:06 -05:00
driver Rename debugging_opts to unstable_opts 2022-07-13 17:47:06 -05:00
intrinsics Use constant eval to do strict validity checks 2022-07-14 22:55:17 +01:00
optimize Merge commit '35d9c6bf256968e1b40e0d554607928bdf9cebea' into sync_cg_clif-2022-02-23 2022-02-23 11:49:34 +01:00
allocator.rs Rename debugging_opts to unstable_opts 2022-07-13 17:47:06 -05:00
analyze.rs Merge commit '05677b6bd6c938ed760835d9b1f6514992654ae3' into sync_cg_clif-2021-08-06 2021-08-06 16:26:56 +02:00
archive.rs Remove the source archive functionality of ArchiveWriter 2022-06-19 12:56:31 +00:00
base.rs Introduce opaque type to hidden type projection 2022-07-15 15:49:22 +00:00
cast.rs Rename debugging_opts to unstable_opts 2022-07-13 17:47:06 -05:00
codegen_i128.rs Merge commit '05677b6bd6c938ed760835d9b1f6514992654ae3' into sync_cg_clif-2021-08-06 2021-08-06 16:26:56 +02:00
common.rs Merge commit '63734fcdd718cca089f84c42f3a42c0096cfd431' into sync_cg_clif-2022-05-15 2022-05-15 12:32:19 +02:00
compiler_builtins.rs Merge commit '370c397ec9169809e5ad270079712e0043514240' into sync_cg_clif-2022-03-20 2022-03-20 16:55:21 +01:00
config.rs Merge commit 'f2cdd4a78d89c009342197cf5844a21f8aa813df' into sync_cg_clif-2022-04-22 2022-04-22 21:11:38 +02:00
constant.rs tweak names and output and bless 2022-07-09 07:43:56 -04:00
discriminant.rs Merge commit 'f2cdd4a78d89c009342197cf5844a21f8aa813df' into sync_cg_clif-2022-04-22 2022-04-22 21:11:38 +02:00
inline_asm.rs Take CodegenFnAttrs into account when validating asm! register operands 2022-02-21 18:28:22 +00:00
lib.rs Rollup merge of #99155 - Amanieu:unstable-target-features, r=davidtwco 2022-07-13 19:32:36 +05:30
linkage.rs Sync rustc_codegen_cranelift 'ddd4ce25535cf71203ba3700896131ce55fde795' 2021-04-30 14:49:58 +02:00
main_shim.rs Normalize main return type during mono item collection & codegen 2022-02-23 22:33:50 +01:00
num.rs Merge commit 'f2cdd4a78d89c009342197cf5844a21f8aa813df' into sync_cg_clif-2022-04-22 2022-04-22 21:11:38 +02:00
pointer.rs Merge commit '0969bc6dde001e01e7e1f58c8ccd7750f8a49ae1' into sync_cg_clif-2021-03-29 2021-03-29 10:45:09 +02:00
pretty_clif.rs Merge commit '35d9c6bf256968e1b40e0d554607928bdf9cebea' into sync_cg_clif-2022-02-23 2022-02-23 11:49:34 +01:00
toolchain.rs Unify duplicate linker_and_flavor methods in rustc_codegen_{cranelift,ssa}. 2021-06-05 21:59:41 -07:00
trap.rs Merge commit '370c397ec9169809e5ad270079712e0043514240' into sync_cg_clif-2022-03-20 2022-03-20 16:55:21 +01:00
unsize.rs Improve AdtDef interning. 2022-03-11 13:31:24 +11:00
value_and_place.rs Introduce opaque type to hidden type projection 2022-07-15 15:49:22 +00:00
vtable.rs Turn tcx.vtable_allocation() into a query. 2021-10-07 20:03:00 +02:00