rustc_codegen_cranelift icon indicating copy to clipboard operation
rustc_codegen_cranelift copied to clipboard

Cranelift based backend for rustc

Results 147 rustc_codegen_cranelift issues
Sort by recently updated
recently updated
newest added

👋 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...

C-enhancement
A-testing
O-SystemZ

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...

C-bug
help wanted
O-macos

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...

C-bug
O-x86_64
upstream

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 {...

C-bug
upstream

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...

C-enhancement
good first issue
A-debuginfo

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...

C-bug
O-windows
upstream

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...

C-enhancement
A-core-arch
O-x86_64

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...

C-bug

`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...

C-bug