Rust-GCC / gccrs

GCC Front-End for Rust
https://rust-gcc.github.io/
GNU General Public License v2.0
2.3k stars 144 forks source link

Compiler Intrinsics #658

Open philberty opened 2 years ago

philberty commented 2 years ago

We need to support the extern "rust-intrinsics" GCC seems to have something at least pretty similar to a lot of these not 100% about all of them, things like transmute look more custom to rust.

https://github.com/rust-lang/rust/blob/master/library/core/src/intrinsics.rs https://github.com/rust-lang/rust/blob/master/compiler/rustc_codegen_llvm/src/intrinsic.rs

bjorn3 commented 2 years ago

rustc_peek is only used to test a part of rustc. I believe it always results in an error, but with the error message depending on the result of a certain analysis.