Empowering everyone to build reliable and efficient software.
Go to file
dependabot[bot] d7cf54dcac
Bump cranelift from 1f43e47 to 48fe38d
Bumps [cranelift](https://github.com/CraneStation/cranelift) from `1f43e47` to `48fe38d`.
- [Release notes](https://github.com/CraneStation/cranelift/releases)
- [Commits](1f43e47458...48fe38d756)

Signed-off-by: dependabot[bot] <support@dependabot.com>
2018-10-31 05:51:48 +00:00
example Implement Rvalue::Len for arrays 2018-10-06 13:50:31 +02:00
src Rustup to rustc 1.31.0-nightly (d586d5d2f 2018-10-29) 2018-10-30 17:58:42 +01:00
xargo Some changes 2018-10-10 18:36:47 +02:00
.gitignore Some more changes 2018-10-10 19:04:20 +02:00
.travis.yml Mention xargo in Readme.md and fix travis 2018-10-08 19:47:02 +02:00
0001-Disable-stdsimd.patch Disable stdsimd in libstd too 2018-10-06 11:12:06 +02:00
0002-Disable-u128-and-i128-in-libcore.patch Don't disable core::time completely 2018-10-06 13:09:46 +02:00
0003-Disable-inline-assembly-in-spin_loop_hint.patch Implement a lot of atomic intrinsics 2018-10-06 10:24:09 +02:00
0004-Disable-some-more-unsupported-stuff-in-libcore.patch Rustup to rustc 1.31.0-nightly (de3d640f5 2018-10-01), fix a atomic bug and implement intrinsic bitreverse 2018-10-02 18:12:03 +02:00
0005-Disable-compiler_builtins.patch Add some more patches 2018-10-06 14:57:06 +02:00
0006-alloc-Disable-some-unsupported-stuff.patch Add some more patches 2018-10-06 14:57:06 +02:00
0007-Fix-libstd-building.patch Add some more patches 2018-10-06 14:57:06 +02:00
build.sh Enable codegen by default 2018-10-23 10:57:09 +02:00
Cargo.lock Bump cranelift from 1f43e47 to 48fe38d 2018-10-31 05:51:48 +00:00
Cargo.toml Optimize all dependencies in debug mode 2018-09-30 10:35:44 +02:00
copy.clif Fix some bugs 2018-08-08 10:26:25 +02:00
LICENSE-APACHE Create LICENSE-APACHE 2018-06-22 19:33:35 +02:00
LICENSE-MIT Add LICENSE-MIT 2018-06-22 19:34:27 +02:00
prepare_libcore.sh Add some more patches 2018-10-06 14:57:06 +02:00
Readme.md Update Readme.md 2018-10-10 19:12:41 +02:00
rust-toolchain Initial commit 2018-06-17 18:05:11 +02:00

Work in progress cranelift codegen backend for rust

⚠⚠⚠ This doesn't do much useful yet ⚠⚠⚠

Building

$ git clone https://github.com/bjorn3/rustc_codegen_cranelift.git
$ cd rustc_codegen_cranelift
$ rustup override set nightly
$ cargo install xargo
$ git submodule update --init
$ cargo build

Usage

$ rustc -Zcodegen-backend=$(pwd)/target/debug/librustc_codegen_cranelift.so my_crate.rs --crate-type lib -Og

Building libcore

$ rustup component add rust-src
$ ./prepare_libcore.sh
$ ./build.sh

Not yet supported

  • Checked binops

  • Drop glue

  • Other call abi's

  • Sub slice

  • Inline assembly

  • Custom sections