rustc_codegen_cranelift
rustc_codegen_cranelift copied to clipboard
Cranelift based backend for rustc
👋 Hey, It looks like cg_clif works on s390x! 🎉 Thanks @uweigand! Should we add a qemu runner on CI to prevent regressions? (We probably need to wait for cranelift...
Trying to run the cranelift testsuite on an x86_64 macOS system with Xcode 15 results in an error that looks roughly like this: ``` = note: ld: warning: search path...
Reproduction is in Custom MIR. Not sure if this can be triggered from surface rust ```rust #![feature(custom_mir, core_intrinsics)] extern crate core; use core::intrinsics::mir::*; #[custom_mir(dialect = "runtime", phase = "initial")] pub...
auto-reduced (treereduce-rust): ````rust #[repr(align(536870912))] enum Aligned { Zero = 0, One = 1, } fn main() { let aligned = Aligned::Zero; assert_eq!(tou8(Aligned::Zero), 0); } fn tou8(al: Aligned) -> u8 {...
https://doc.rust-lang.org/nightly/reference/attributes/debugger.html#using-debugger_visualizer-with-gdb https://github.com/rust-lang/rust/blob/ab0f3e680e4fd50218914b8afa6900a67377721c/compiler/rustc_codegen_llvm/src/debuginfo/gdb.rs The `.debug_gdb_scripts` section should contain `\x01gdb_load_rust_pretty_printers.py` followed by for each `#![debugger_visualizer(gdb_script_file = "...")]` the pretty printer inlined into the executable. Except if one of the conditions to omit...
Setting up the tool like in the Readme, I am getting this error when running it as `cargo clif build`: ``` error: failed to run `rustc` to learn about target-specific...
Error: ``` trap at Instance { def: Item(DefId(1:15432 ~ core[fb63]::core_arch::x86::sha::_mm_sha1rnds4_epu32)), args: [0_i32] } (_ZN4core9core_arch3x863sha19_mm_sha1rnds4_epu3217hded8966227fb8788E): llvm.x86.sha1rnds4 ``` looks like due [sha2](https://crates.io/crates/sha2) crate usage. Should be related to https://github.com/rust-lang/rustc_codegen_cranelift/issues/1173 and https://github.com/rust-lang/rustc_codegen_cranelift/issues/1427. Let...
auto-reduced (treereduce-rust): ````rust struct SliceWithHead(u8, [u8]); fn main() { let buf = [0u32; 1]; let ptr: *const SliceWithHead = unsafe { std::mem::transmute((&buf, 1)) }; } ```` original: ````rust // should...
`rustc src/main.rs -Zcodegen-backend=cranelift -Zmir-opt-level=2` ````rust #![feature(associated_type_bounds)] trait Tr1: Copy { type As1: Copy; } impl Tr1 for &str { type As1 = bool; } union Un3 src/main.rs:17:9 | 17 |...
Hi all, I was informed a little over a week ago that it should be possible to mix ``LLVM`` and cranelift in the same rust target. I went about writing...