Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rollup of 13 pull requests #81622

Closed
wants to merge 92 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
92 commits
Select commit Hold shift + click to select a range
77f74ed
Merge commit 'dbee13661efa269cb4cd57bb4c6b99a19732b484' into sync_cg_…
bjorn3 Dec 27, 2020
50a6a84
Merge branch 'sync_from_rust'
bjorn3 Dec 27, 2020
2c41a69
Rustup to rustc 1.51.0-nightly (44e3daf5e 2020-12-31)
bjorn3 Jan 1, 2021
1a1cdac
Remove code that was moved from the backend to rustc_incremental
bjorn3 Jan 2, 2021
3ea8915
Disable timings by default for cargo.sh
bjorn3 Jan 6, 2021
ea73caa
codegen_cranelift: Fix redundant semicolon warn
osa1 Jan 16, 2021
c34e165
Update Cranelift
bjorn3 Jan 16, 2021
1952b1f
Update dependencies
bjorn3 Jan 16, 2021
cfedad1
Clear domtree after cg_clif optimizations
bjorn3 Jan 16, 2021
c3d7dc9
Use ty::{IntTy,UintTy,FloatTy} in rustc
LeSeulArtichaut Dec 12, 2020
c0aefeb
Rustup to rustc 1.51.0-nightly (a4cbb44ae 2021-01-20)
bjorn3 Jan 21, 2021
7f60301
Disable new failing libcore tests
bjorn3 Jan 21, 2021
9bf5cb4
Fix indirectly linking to libstd.so with the JIT
bjorn3 Jan 21, 2021
a19ef67
Update Cranelift
bjorn3 Jan 18, 2021
173ec34
Add a feature flag to switch between oldbe and newbe
bjorn3 Jan 18, 2021
da4aa92
Test both oldbe and newbe on CI
bjorn3 Jan 21, 2021
500faf2
Merge pull request #1127 from bjorn3/newbe
bjorn3 Jan 21, 2021
2ced8c0
Fix rust-analyzer pref name
bjorn3 Jan 21, 2021
ae6daf7
Default to Cranelift newBE
bjorn3 Jan 22, 2021
d6eb4f5
clean up some const error reporting around promoteds
RalfJung Jan 24, 2021
496836a
Improve `rustc_mir_build::matches` docs
camelid Jan 25, 2021
d39b441
Start using ArgAbi
bjorn3 Jan 25, 2021
6170fc6
Split abi adjustments out
bjorn3 Jan 25, 2021
ff33042
Rustup to rustc 1.51.0-nightly (1d0d76f8d 2021-01-24)
bjorn3 Jan 25, 2021
de713a8
Replace all uses of PassMode with ArgAbi
bjorn3 Jan 25, 2021
2b58d8c
Misc cleanups
bjorn3 Jan 25, 2021
4555737
Split symbol name and signature calculation
bjorn3 Jan 26, 2021
fc595f1
[WIP] Use FnAbi everywhere instead of our own abi calculations
bjorn3 Jan 26, 2021
d263447
Replace EmptySinglePair with SmallVec
bjorn3 Jan 27, 2021
aa23f86
Remove vararg support check
bjorn3 Jan 27, 2021
e564a0a
Rustfmt
bjorn3 Jan 27, 2021
268d7bc
Remove fn_sig_for_fn_abi
bjorn3 Jan 27, 2021
f8e0e78
Rename NLL* to Nll* accordingly to C-CASE
hkmatsumoto Jan 28, 2021
9e4ed33
Suggest accessing field when code compiles with it
hkmatsumoto Jan 28, 2021
e67b72d
Rollup merge of #81333 - RalfJung:const-err-simplify, r=oli-obk
JohnTitor Jan 29, 2021
a9abf6f
Add test for match expression
hkmatsumoto Jan 29, 2021
f641f51
Add rust-fix test
hkmatsumoto Jan 29, 2021
d10ee0d
Fix invalid camel case suggestion involving unicode idents
estebank Jan 29, 2021
849dc1a
Indicate both start and end of pass RSS in time-passes output
tgnottingham Jan 25, 2021
e8f48e4
[WIP] Implement PassMode::Cast
bjorn3 Jan 29, 2021
ad9f707
Fix test to check help message as well
hkmatsumoto Jan 30, 2021
08d31e0
Remove logging iterator
hkmatsumoto Jan 30, 2021
2ce2d14
Account for union
hkmatsumoto Jan 30, 2021
6bc9634
Rename function to `suggest_accessing_field_where_appropriate`
hkmatsumoto Jan 30, 2021
139a6d1
Fix 128bit checked math intrinsic calls
bjorn3 Jan 30, 2021
b5ddb76
Force stack slot size to be a multiple of 16
bjorn3 Jan 30, 2021
2d69817
Handle argument extension mode
bjorn3 Jan 30, 2021
7fcf59f
Add print on panic for predefining of a function
bjorn3 Jan 30, 2021
3eb649c
dont set rustflags when no specific linker needed
Uriopass Jan 30, 2021
6a739b3
Merge pull request #1132 from Uriopass/master
bjorn3 Jan 30, 2021
18de1b1
Merge pull request #1131 from bjorn3/abi_compat
bjorn3 Jan 30, 2021
f344768
Handle PassMode::Cast in combination with #[repr(align)]
bjorn3 Jan 30, 2021
8faae29
Add missing dir to .gitignore
bjorn3 Jan 30, 2021
d34b5e2
Rustup to rustc 1.51.0-nightly (b12290861 2021-01-29)
bjorn3 Jan 30, 2021
356d749
Update Readme.md for the fixed abi compatibility
bjorn3 Jan 30, 2021
7657ebc
Fix macOS build
bjorn3 Jan 30, 2021
84f24e5
Re-enable mir inlining for the sysroot
bjorn3 Jan 30, 2021
f6bab65
more things are const evaluatable *sparkles*
BoxyUwU Jan 31, 2021
fa9a99f
review comments
estebank Jan 31, 2021
a292ac7
Fix prefix of debug log
hkmatsumoto Jan 31, 2021
f45a993
Rustfmt
hkmatsumoto Jan 31, 2021
1548411
Add missing directory to clean_all.sh
bjorn3 Jan 31, 2021
9c943bf
Fix sysroot dir for cg_clif_build_sysroot
bjorn3 Jan 31, 2021
9384af4
Link examples to the correct libc when targeting Windows
bjorn3 Jan 31, 2021
0a93cb3
Remove unneeded explicit width from search results
GuillaumeGomez Jan 31, 2021
07f5ca7
Prevent search section to go over search input
GuillaumeGomez Jan 31, 2021
be9b112
Improve resize handling
GuillaumeGomez Jan 31, 2021
9164653
Split config.sh and add support for copying the mingw runtime objects
bjorn3 Jan 31, 2021
8c7ae41
Remove code comment
bjorn3 Jan 31, 2021
0929e37
Fix a small error in the readme
bjorn3 Jan 31, 2021
17cffc1
Move some env var definitions around to fix cross-compilation
bjorn3 Jan 31, 2021
4105506
specialize io::copy to use the memory of the writer if it is a BufWriter
the8472 Nov 1, 2020
1fe1fa9
Avoid building LLVM just for llvm-dwp
bjorn3 Jan 31, 2021
3acd1a4
Fix calling convention for CRT startup
Jan 31, 2021
d556c56
Add option to build using the sysroot of rustc
bjorn3 Jan 31, 2021
6a03f03
Add error message for private fn
JulianKnodt Nov 22, 2020
2bb4a69
Move some tests to more reasonable directories
c410-f3r Jan 31, 2021
8b52cdc
Update outdated comment
camelid Jan 31, 2021
2785533
Merge commit 'd556c56f792756dd7cfec742b9f2e07612dc10f4' into sync_cg_…
bjorn3 Feb 1, 2021
ea037c3
Rollup merge of #78641 - the8472:buffered-copy, r=sfackler
jonas-schievink Feb 1, 2021
9840a4e
Rollup merge of #79291 - JulianKnodt:ce_priv, r=petrochenkov
jonas-schievink Feb 1, 2021
714d422
Rollup merge of #81364 - camelid:improve-build-matches-docs, r=varkor
jonas-schievink Feb 1, 2021
a33da8f
Rollup merge of #81387 - c410-f3r:tests-tests-tests, r=petrochenkov
jonas-schievink Feb 1, 2021
a55c0cd
Rollup merge of #81463 - matsujika:nll-ensure-c-case, r=varkor
jonas-schievink Feb 1, 2021
cd5f5ef
Rollup merge of #81504 - matsujika:suggestion-field-access, r=estebank
jonas-schievink Feb 1, 2021
a376019
Rollup merge of #81529 - estebank:case_lints, r=davidtwco
jonas-schievink Feb 1, 2021
ae75352
Rollup merge of #81536 - tgnottingham:time-passes-rss, r=oli-obk
jonas-schievink Feb 1, 2021
4ea82a6
Rollup merge of #81577 - BoxyUwU:subexpr_const_evaluatable, r=oli-obk
jonas-schievink Feb 1, 2021
afa5163
Rollup merge of #81592 - GuillaumeGomez:rustdoc-ui-fixes, r=Nemo157
jonas-schievink Feb 1, 2021
92fe441
Rollup merge of #81594 - bjorn3:avoid_building_llvm_for_dwp, r=sanxiyn
jonas-schievink Feb 1, 2021
bb912f7
Rollup merge of #81598 - sivadeilra:windows_dll_imports_fix_x86, r=m-…
jonas-schievink Feb 1, 2021
5d5f900
Rollup merge of #81618 - bjorn3:sync_cg_clif-2021-02-01, r=bjorn3
jonas-schievink Feb 1, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Cargo.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4133,6 +4133,7 @@ dependencies = [
"rustc_middle",
"rustc_session",
"rustc_span",
"rustc_trait_selection",
"rustc_typeck",
"tracing",
]
Expand Down
5 changes: 4 additions & 1 deletion compiler/rustc_codegen_cranelift/.github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
env:
- BACKEND: ""
- BACKEND: --oldbe

steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -51,7 +54,7 @@ jobs:
export COMPILE_RUNS=2
export RUN_RUNS=2

./test.sh
./test.sh $BACKEND

- name: Package prebuilt cg_clif
run: tar cvfJ cg_clif.tar.xz build
Expand Down
1 change: 1 addition & 0 deletions compiler/rustc_codegen_cranelift/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ perf.data.old
*.string*
/build
/build_sysroot/sysroot_src
/build_sysroot/compiler-builtins
/rust
/rand
/regex
Expand Down
2 changes: 1 addition & 1 deletion compiler/rustc_codegen_cranelift/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
// source for rustc_* is not included in the rust-src component; disable the errors about this
"rust-analyzer.diagnostics.disabled": ["unresolved-extern-crate"],
"rust-analyzer.assist.importMergeBehaviour": "last",
"rust-analyzer.assist.importMergeBehavior": "last",
"rust-analyzer.cargo.loadOutDirsFromCheck": true,
"rust-analyzer.linkedProjects": [
"./Cargo.toml",
Expand Down
89 changes: 45 additions & 44 deletions compiler/rustc_codegen_cranelift/Cargo.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
# It is not intended for manual editing.
[[package]]
name = "anyhow"
version = "1.0.34"
version = "1.0.38"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bf8dcb5b4bbaa28653b647d8c77bd4ed40183b48882e130c1f1ffb73de069fd7"
checksum = "afddf7f520a80dbf76e6f50a35bca42a2331ef227a28b3b6dc5c2e2338d114b1"

[[package]]
name = "ar"
Expand All @@ -25,15 +25,15 @@ checksum = "cf1de2fe8c75bc145a2f577add951f8134889b4795d47466a54a5c846d691693"

[[package]]
name = "byteorder"
version = "1.3.4"
version = "1.4.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "08c48aae112d48ed9f069b33538ea9e3e90aa263cfa3d1c24309612b1f7472de"
checksum = "ae44d1a3d5a19df61dd0c8beb138458ac2a53a7ac09eba97d55592540004306b"

[[package]]
name = "cc"
version = "1.0.62"
version = "1.0.66"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f1770ced377336a88a67c473594ccc14eca6f4559217c34f64aac8f83d641b40"
checksum = "4c0496836a84f8d0495758516b8621a622beb77c0fed418570e50764093ced48"

[[package]]
name = "cfg-if"
Expand All @@ -49,16 +49,16 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"

[[package]]
name = "cranelift-bforest"
version = "0.68.0"
source = "git+https://github.com/bytecodealliance/wasmtime/?branch=main#8f7f8ee0b4c5007ace6de29b45505c360450b1bb"
version = "0.69.0"
source = "git+https://github.com/bytecodealliance/wasmtime/?branch=main#986b5768f9e68f1564b43f32b8a4080a6582c8ca"
dependencies = [
"cranelift-entity",
]

[[package]]
name = "cranelift-codegen"
version = "0.68.0"
source = "git+https://github.com/bytecodealliance/wasmtime/?branch=main#8f7f8ee0b4c5007ace6de29b45505c360450b1bb"
version = "0.69.0"
source = "git+https://github.com/bytecodealliance/wasmtime/?branch=main#986b5768f9e68f1564b43f32b8a4080a6582c8ca"
dependencies = [
"byteorder",
"cranelift-bforest",
Expand All @@ -75,27 +75,27 @@ dependencies = [

[[package]]
name = "cranelift-codegen-meta"
version = "0.68.0"
source = "git+https://github.com/bytecodealliance/wasmtime/?branch=main#8f7f8ee0b4c5007ace6de29b45505c360450b1bb"
version = "0.69.0"
source = "git+https://github.com/bytecodealliance/wasmtime/?branch=main#986b5768f9e68f1564b43f32b8a4080a6582c8ca"
dependencies = [
"cranelift-codegen-shared",
"cranelift-entity",
]

[[package]]
name = "cranelift-codegen-shared"
version = "0.68.0"
source = "git+https://github.com/bytecodealliance/wasmtime/?branch=main#8f7f8ee0b4c5007ace6de29b45505c360450b1bb"
version = "0.69.0"
source = "git+https://github.com/bytecodealliance/wasmtime/?branch=main#986b5768f9e68f1564b43f32b8a4080a6582c8ca"

[[package]]
name = "cranelift-entity"
version = "0.68.0"
source = "git+https://github.com/bytecodealliance/wasmtime/?branch=main#8f7f8ee0b4c5007ace6de29b45505c360450b1bb"
version = "0.69.0"
source = "git+https://github.com/bytecodealliance/wasmtime/?branch=main#986b5768f9e68f1564b43f32b8a4080a6582c8ca"

[[package]]
name = "cranelift-frontend"
version = "0.68.0"
source = "git+https://github.com/bytecodealliance/wasmtime/?branch=main#8f7f8ee0b4c5007ace6de29b45505c360450b1bb"
version = "0.69.0"
source = "git+https://github.com/bytecodealliance/wasmtime/?branch=main#986b5768f9e68f1564b43f32b8a4080a6582c8ca"
dependencies = [
"cranelift-codegen",
"log",
Expand All @@ -105,8 +105,8 @@ dependencies = [

[[package]]
name = "cranelift-jit"
version = "0.68.0"
source = "git+https://github.com/bytecodealliance/wasmtime/?branch=main#8f7f8ee0b4c5007ace6de29b45505c360450b1bb"
version = "0.69.0"
source = "git+https://github.com/bytecodealliance/wasmtime/?branch=main#986b5768f9e68f1564b43f32b8a4080a6582c8ca"
dependencies = [
"anyhow",
"cranelift-codegen",
Expand All @@ -123,8 +123,8 @@ dependencies = [

[[package]]
name = "cranelift-module"
version = "0.68.0"
source = "git+https://github.com/bytecodealliance/wasmtime/?branch=main#8f7f8ee0b4c5007ace6de29b45505c360450b1bb"
version = "0.69.0"
source = "git+https://github.com/bytecodealliance/wasmtime/?branch=main#986b5768f9e68f1564b43f32b8a4080a6582c8ca"
dependencies = [
"anyhow",
"cranelift-codegen",
Expand All @@ -135,8 +135,8 @@ dependencies = [

[[package]]
name = "cranelift-native"
version = "0.68.0"
source = "git+https://github.com/bytecodealliance/wasmtime/?branch=main#8f7f8ee0b4c5007ace6de29b45505c360450b1bb"
version = "0.69.0"
source = "git+https://github.com/bytecodealliance/wasmtime/?branch=main#986b5768f9e68f1564b43f32b8a4080a6582c8ca"
dependencies = [
"cranelift-codegen",
"raw-cpuid",
Expand All @@ -145,8 +145,8 @@ dependencies = [

[[package]]
name = "cranelift-object"
version = "0.68.0"
source = "git+https://github.com/bytecodealliance/wasmtime/?branch=main#8f7f8ee0b4c5007ace6de29b45505c360450b1bb"
version = "0.69.0"
source = "git+https://github.com/bytecodealliance/wasmtime/?branch=main#986b5768f9e68f1564b43f32b8a4080a6582c8ca"
dependencies = [
"anyhow",
"cranelift-codegen",
Expand Down Expand Up @@ -209,35 +209,35 @@ checksum = "d7afe4a420e3fe79967a00898cc1f4db7c8a49a9333a29f8a4bd76a253d5cd04"

[[package]]
name = "indexmap"
version = "1.6.0"
version = "1.6.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "55e2e4c765aa53a0424761bf9f41aa7a6ac1efa87238f59560640e27fca028f2"
checksum = "4fb1fa934250de4de8aef298d81c729a7d33d8c239daa3a7575e6b92bfc7313b"
dependencies = [
"autocfg",
"hashbrown",
]

[[package]]
name = "libc"
version = "0.2.80"
version = "0.2.82"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4d58d1b70b004888f764dfbf6a26a3b0342a1632d33968e4a179d8011c760614"
checksum = "89203f3fba0a3795506acaad8ebce3c80c0af93f994d5a1d7a0b1eeb23271929"

[[package]]
name = "libloading"
version = "0.6.5"
version = "0.6.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1090080fe06ec2648d0da3881d9453d97e71a45f00eb179af7fdd7e3f686fdb0"
checksum = "351a32417a12d5f7e82c368a66781e307834dae04c6ce0cd4456d52989229883"
dependencies = [
"cfg-if 1.0.0",
"winapi",
]

[[package]]
name = "log"
version = "0.4.11"
version = "0.4.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4fabed175da42fed1fa0746b0ea71f412aa9d35e76e95e59b192c64b9dc2bf8b"
checksum = "fcf3805d4480bb5b86070dcfeb9e2cb2ebc148adb753c5cca5f884d1d65a42b2"
dependencies = [
"cfg-if 0.1.10",
]
Expand Down Expand Up @@ -272,9 +272,9 @@ dependencies = [

[[package]]
name = "quote"
version = "1.0.7"
version = "1.0.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "aa563d17ecb180e500da1cfd2b028310ac758de548efdd203e18f283af693f37"
checksum = "991431c3519a3f36861882da93630ce66b52918dcf1b8e2fd66b397fc96f28df"
dependencies = [
"proc-macro2",
]
Expand Down Expand Up @@ -333,6 +333,7 @@ dependencies = [
"indexmap",
"libloading",
"object",
"smallvec",
"target-lexicon",
]

Expand Down Expand Up @@ -362,15 +363,15 @@ checksum = "388a1df253eca08550bef6c72392cfe7c30914bf41df5269b68cbd6ff8f570a3"

[[package]]
name = "smallvec"
version = "1.4.2"
version = "1.6.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fbee7696b84bbf3d89a1c2eccff0850e3047ed46bfcd2e92c29a2d074d57e252"
checksum = "fe0f37c9e8f3c5a4a66ad655a93c74daac4ad00c441533bf5c6e7990bb42604e"

[[package]]
name = "syn"
version = "1.0.48"
version = "1.0.58"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cc371affeffc477f42a221a1e4297aedcea33d47d19b61455588bd9d8f6b19ac"
checksum = "cc60a3d73ea6594cd712d830cc1f0390fd71542d8c8cd24e70cc54cdfd5e05d5"
dependencies = [
"proc-macro2",
"quote",
Expand All @@ -385,18 +386,18 @@ checksum = "4ee5a98e506fb7231a304c3a1bd7c132a55016cf65001e0282480665870dfcb9"

[[package]]
name = "thiserror"
version = "1.0.22"
version = "1.0.23"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0e9ae34b84616eedaaf1e9dd6026dbe00dcafa92aa0c8077cb69df1fcfe5e53e"
checksum = "76cc616c6abf8c8928e2fdcc0dbfab37175edd8fb49a4641066ad1364fdab146"
dependencies = [
"thiserror-impl",
]

[[package]]
name = "thiserror-impl"
version = "1.0.22"
version = "1.0.23"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "9ba20f23e85b10754cd195504aebf6a27e2e6cbe28c17778a0c930724628dd56"
checksum = "9be73a2caec27583d0046ef3796c3794f868a5bc813db689eed00c7631275cd1"
dependencies = [
"proc-macro2",
"quote",
Expand Down
4 changes: 3 additions & 1 deletion compiler/rustc_codegen_cranelift/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ crate-type = ["dylib"]

[dependencies]
# These have to be in sync with each other
cranelift-codegen = { git = "https://github.com/bytecodealliance/wasmtime/", branch = "main", features = ["unwind"] }
cranelift-codegen = { git = "https://github.com/bytecodealliance/wasmtime/", branch = "main", features = ["unwind", "x86", "x64"] }
cranelift-frontend = { git = "https://github.com/bytecodealliance/wasmtime/", branch = "main" }
cranelift-module = { git = "https://github.com/bytecodealliance/wasmtime/", branch = "main" }
cranelift-jit = { git = "https://github.com/bytecodealliance/wasmtime/", branch = "main", optional = true }
Expand All @@ -21,6 +21,7 @@ object = { version = "0.22.0", default-features = false, features = ["std", "rea
ar = { git = "https://github.com/bjorn3/rust-ar.git", branch = "do_not_remove_cg_clif_ranlib" }
indexmap = "1.0.2"
libloading = { version = "0.6.0", optional = true }
smallvec = "1.6.1"

# Uncomment to use local checkout of cranelift
#[patch."https://github.com/bytecodealliance/wasmtime/"]
Expand All @@ -37,6 +38,7 @@ libloading = { version = "0.6.0", optional = true }
default = ["jit", "inline_asm"]
jit = ["cranelift-jit", "libloading"]
inline_asm = []
oldbe = []

[profile.dev]
# By compiling dependencies with optimizations, performing tests gets much faster.
Expand Down
7 changes: 2 additions & 5 deletions compiler/rustc_codegen_cranelift/Readme.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# WIP Cranelift codegen backend for rust

> ⚠⚠⚠ Certain kinds of FFI don't work yet. ⚠⚠⚠
# Cranelift codegen backend for rust

The goal of this project is to create an alternative codegen backend for the rust compiler based on [Cranelift](https://github.com/bytecodealliance/wasmtime/blob/main/cranelift).
This has the potential to improve compilation times in debug mode.
Expand Down Expand Up @@ -103,8 +101,7 @@ function jit_calc() {

## Not yet supported

* Good non-rust abi support ([several problems](https://github.com/bjorn3/rustc_codegen_cranelift/issues/10))
* Inline assembly ([no cranelift support](https://github.com/bytecodealliance/wasmtime/issues/1041)
* Inline assembly ([no cranelift support](https://github.com/bytecodealliance/wasmtime/issues/1041))
* On Linux there is support for invoking an external assembler for `global_asm!` and `asm!`.
`llvm_asm!` will remain unimplemented forever. `asm!` doesn't yet support reg classes. You
have to specify specific registers instead.
Expand Down
Loading