Skip to content

Sync rustc_codegen_cranelift #85743

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

Merged
merged 53 commits into from
May 28, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
fa559fb
Implement RFC 1260 with feature_name `imported_main`.
crlf0710 Apr 25, 2021
95e6481
Set correct segment from #[link_section] for MachO
eggyal Apr 30, 2021
ee570b1
Sync rustc_codegen_cranelift 'ddd4ce25535cf71203ba3700896131ce55fde795'
XAMPPRocky Apr 30, 2021
df68e5a
[cg_clif] Fix run_jit from sync
XAMPPRocky Apr 30, 2021
0a1b87c
Merge commit '15c8d31392b9fbab3b3368b67acc4bbe5983115a' into cranelif…
XAMPPRocky Apr 30, 2021
6d30315
Merge pull request #1169 from eggyal/macho-link-section
bjorn3 Apr 30, 2021
55dbf17
Pass target_cpu to LinkerInfo::new instead of link_binary
bjorn3 Mar 28, 2021
3b975ee
Sync from rust 7a0f1781d04662041db5deaef89598a8edd53717
bjorn3 May 4, 2021
e7f9301
Rustup to rustc 1.54.0-nightly (716394d65 2021-05-03)
bjorn3 May 4, 2021
7a61ec3
Add missing change
bjorn3 May 4, 2021
6266e9d
Update rust bootstrap patches
bjorn3 May 4, 2021
20600f1
Force deprecation warning that was promoted to an error back to a war…
bjorn3 May 4, 2021
8b69357
Rustfmt
bjorn3 May 4, 2021
fea01cf
Update Cranelift
bjorn3 May 4, 2021
ac5272b
Use RealFileName for Session::working_dir as it may also be remapped
cbeuw Apr 10, 2021
5de83e7
Revamp RealFileName public methods
cbeuw Apr 14, 2021
e162eeb
Use local and remapped paths where appropriate
cbeuw Apr 19, 2021
91dc696
Implement RFC 2951: Native link modifiers
luqmana Mar 25, 2021
8794d07
Avoid trailing / in git path for Wasmtime
bjorn3 May 7, 2021
62f64af
Use the object crate for metadata reading
bjorn3 Mar 29, 2021
961d8b6
Sync from rust d6d028369be9eb02d219506c0dd662a2f863fc18
bjorn3 May 9, 2021
bcc68c2
Rustup to rustc 1.54.0-nightly (881c1ac40 2021-05-08)
bjorn3 May 9, 2021
8d96969
Re-enable fixed libcore tests
bjorn3 May 9, 2021
801eb19
Remove unnecessary compiler builtins patch
bjorn3 May 9, 2021
459a519
Update Cranelift
bjorn3 May 10, 2021
4663ed7
Rustup to rustc 1.54.0-nightly (79e50bf77 2021-05-10)
bjorn3 May 11, 2021
7c40338
Implement imported_main feature
bjorn3 May 11, 2021
24c459c
Use declare_anonymous_data for anonymous_str
bjorn3 May 11, 2021
a606fde
Fix syntax in patch section of Cargo.toml
bjorn3 May 11, 2021
809722d
Auto merge of #83610 - bjorn3:driver_cleanup, r=cjgillot
bors May 12, 2021
40a62a9
Auto merge of #83813 - cbeuw:remap-std, r=michaelwoerister
bors May 12, 2021
f22ab98
Use () in dependency_formats.
cjgillot May 11, 2021
3a869ca
Use () for entry_fn.
cjgillot May 11, 2021
915d766
Use () for codegen queries.
cjgillot May 11, 2021
d342a34
Add support for const operands and options to global_asm!
Amanieu Apr 11, 2021
a5da29c
Auto merge of #83640 - bjorn3:shared_metadata_reader, r=nagisa
bors May 14, 2021
328f067
Update Cranelift
bjorn3 May 16, 2021
a9d033d
Return 0 from cpuid for all subleaves of leaf 7
bjorn3 May 16, 2021
3c53005
Auto merge of #85178 - cjgillot:local-crate, r=oli-obk
bors May 17, 2021
5e52b61
CTFE core engine allocation & memory API improvemenets
RalfJung May 16, 2021
beab751
Move some code around a bit
bjorn3 May 18, 2021
8a2520c
Sync from rust a5560a6a90f08a84728802bb5fa5632a17a78672
bjorn3 May 18, 2021
6e06f22
Rustup to rustc 1.54.0-nightly (3e99439f4 2021-05-17)
bjorn3 May 18, 2021
9d41e8f
(try to) fix cranelift
RalfJung May 23, 2021
2f9ca10
Update Cranelift, object and gimli
bjorn3 May 24, 2021
9fc56fb
Update rustc bootstrap patch
bjorn3 May 24, 2021
f8c2a7e
Rustfmt
bjorn3 May 24, 2021
39ffd9a
Allow switching the regalloc algorithm from the commandline
bjorn3 May 26, 2021
e20fe21
Sync from rust 1969c2e312303faa458cf19dad9783165e3c72c8
bjorn3 May 26, 2021
56facc4
Rustup to rustc 1.54.0-nightly (ff2c947c0 2021-05-25)
bjorn3 May 27, 2021
40dd3e2
Rustfmt
bjorn3 May 27, 2021
fa702d0
Merge commit '40dd3e2b7089b5e96714e064b731f6dbf17c61a9' into sync_cg_…
bjorn3 May 27, 2021
6487127
Remove unused tidy dep exceptions
bjorn3 May 27, 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
140 changes: 24 additions & 116 deletions compiler/rustc_codegen_cranelift/Cargo.lock
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,6 @@ version = "1.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "cf1de2fe8c75bc145a2f577add951f8134889b4795d47466a54a5c846d691693"

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

[[package]]
name = "cfg-if"
version = "1.0.0"
Expand All @@ -39,18 +33,17 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"

[[package]]
name = "cranelift-bforest"
version = "0.73.0"
source = "git+https://github.com/bytecodealliance/wasmtime/?branch=main#45bee40f338c631bff4a799288101ba328c7ad36"
version = "0.74.0"
source = "git+https://github.com/bytecodealliance/wasmtime.git?branch=main#76c6b83f6a21a12a11d4f890490f8acb6329a600"
dependencies = [
"cranelift-entity",
]

[[package]]
name = "cranelift-codegen"
version = "0.73.0"
source = "git+https://github.com/bytecodealliance/wasmtime/?branch=main#45bee40f338c631bff4a799288101ba328c7ad36"
version = "0.74.0"
source = "git+https://github.com/bytecodealliance/wasmtime.git?branch=main#76c6b83f6a21a12a11d4f890490f8acb6329a600"
dependencies = [
"byteorder",
"cranelift-bforest",
"cranelift-codegen-meta",
"cranelift-codegen-shared",
Expand All @@ -60,32 +53,31 @@ dependencies = [
"regalloc",
"smallvec",
"target-lexicon",
"thiserror",
]

[[package]]
name = "cranelift-codegen-meta"
version = "0.73.0"
source = "git+https://github.com/bytecodealliance/wasmtime/?branch=main#45bee40f338c631bff4a799288101ba328c7ad36"
version = "0.74.0"
source = "git+https://github.com/bytecodealliance/wasmtime.git?branch=main#76c6b83f6a21a12a11d4f890490f8acb6329a600"
dependencies = [
"cranelift-codegen-shared",
"cranelift-entity",
]

[[package]]
name = "cranelift-codegen-shared"
version = "0.73.0"
source = "git+https://github.com/bytecodealliance/wasmtime/?branch=main#45bee40f338c631bff4a799288101ba328c7ad36"
version = "0.74.0"
source = "git+https://github.com/bytecodealliance/wasmtime.git?branch=main#76c6b83f6a21a12a11d4f890490f8acb6329a600"

[[package]]
name = "cranelift-entity"
version = "0.73.0"
source = "git+https://github.com/bytecodealliance/wasmtime/?branch=main#45bee40f338c631bff4a799288101ba328c7ad36"
version = "0.74.0"
source = "git+https://github.com/bytecodealliance/wasmtime.git?branch=main#76c6b83f6a21a12a11d4f890490f8acb6329a600"

[[package]]
name = "cranelift-frontend"
version = "0.73.0"
source = "git+https://github.com/bytecodealliance/wasmtime/?branch=main#45bee40f338c631bff4a799288101ba328c7ad36"
version = "0.74.0"
source = "git+https://github.com/bytecodealliance/wasmtime.git?branch=main#76c6b83f6a21a12a11d4f890490f8acb6329a600"
dependencies = [
"cranelift-codegen",
"log",
Expand All @@ -95,15 +87,14 @@ dependencies = [

[[package]]
name = "cranelift-jit"
version = "0.73.0"
source = "git+https://github.com/bytecodealliance/wasmtime/?branch=main#45bee40f338c631bff4a799288101ba328c7ad36"
version = "0.74.0"
source = "git+https://github.com/bytecodealliance/wasmtime.git?branch=main#76c6b83f6a21a12a11d4f890490f8acb6329a600"
dependencies = [
"anyhow",
"cranelift-codegen",
"cranelift-entity",
"cranelift-module",
"cranelift-native",
"errno",
"libc",
"log",
"region",
Expand All @@ -113,29 +104,28 @@ dependencies = [

[[package]]
name = "cranelift-module"
version = "0.73.0"
source = "git+https://github.com/bytecodealliance/wasmtime/?branch=main#45bee40f338c631bff4a799288101ba328c7ad36"
version = "0.74.0"
source = "git+https://github.com/bytecodealliance/wasmtime.git?branch=main#76c6b83f6a21a12a11d4f890490f8acb6329a600"
dependencies = [
"anyhow",
"cranelift-codegen",
"cranelift-entity",
"log",
"thiserror",
]

[[package]]
name = "cranelift-native"
version = "0.73.0"
source = "git+https://github.com/bytecodealliance/wasmtime/?branch=main#45bee40f338c631bff4a799288101ba328c7ad36"
version = "0.74.0"
source = "git+https://github.com/bytecodealliance/wasmtime.git?branch=main#76c6b83f6a21a12a11d4f890490f8acb6329a600"
dependencies = [
"cranelift-codegen",
"target-lexicon",
]

[[package]]
name = "cranelift-object"
version = "0.73.0"
source = "git+https://github.com/bytecodealliance/wasmtime/?branch=main#45bee40f338c631bff4a799288101ba328c7ad36"
version = "0.74.0"
source = "git+https://github.com/bytecodealliance/wasmtime.git?branch=main#76c6b83f6a21a12a11d4f890490f8acb6329a600"
dependencies = [
"anyhow",
"cranelift-codegen",
Expand All @@ -154,38 +144,11 @@ dependencies = [
"cfg-if",
]

[[package]]
name = "errno"
version = "0.2.7"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fa68f2fb9cae9d37c9b2b3584aba698a2e97f72d7aef7b9f7aa71d8b54ce46fe"
dependencies = [
"errno-dragonfly",
"libc",
"winapi",
]

[[package]]
name = "errno-dragonfly"
version = "0.1.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "14ca354e36190500e1e1fb267c647932382b54053c50b14970856c0b00a35067"
dependencies = [
"gcc",
"libc",
]

[[package]]
name = "gcc"
version = "0.3.55"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8f5f3913fa0bfe7ee1fd8248b6b9f42a5af4b9d65ec2dd2c3c26132b950ecfc2"

[[package]]
name = "gimli"
version = "0.23.0"
version = "0.24.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f6503fe142514ca4799d4c26297c4248239fe8838d827db6bd6065c6ed29a6ce"
checksum = "0e4075386626662786ddb0ec9081e7c7eeb1ba31951f447ca780ef9f5d568189"
dependencies = [
"indexmap",
]
Expand Down Expand Up @@ -242,32 +205,14 @@ dependencies = [

[[package]]
name = "object"
version = "0.23.0"
version = "0.24.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a9a7ab5d64814df0fe4a4b5ead45ed6c5f181ee3ff04ba344313a6c80446c5d4"
checksum = "1a5b3dd1c072ee7963717671d1ca129f1048fda25edea6b752bfc71ac8854170"
dependencies = [
"crc32fast",
"indexmap",
]

[[package]]
name = "proc-macro2"
version = "1.0.24"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1e0704ee1a7e00d7bb417d0770ea303c1bccbabf0ef1667dae92b5967f5f8a71"
dependencies = [
"unicode-xid",
]

[[package]]
name = "quote"
version = "1.0.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c3d0b9745dc2debf507c8422de05d7226cc1f0644216dfdfead988f9b1ab32a7"
dependencies = [
"proc-macro2",
]

[[package]]
name = "regalloc"
version = "0.0.31"
Expand Down Expand Up @@ -322,49 +267,12 @@ version = "1.6.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "fe0f37c9e8f3c5a4a66ad655a93c74daac4ad00c441533bf5c6e7990bb42604e"

[[package]]
name = "syn"
version = "1.0.60"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c700597eca8a5a762beb35753ef6b94df201c81cca676604f547495a0d7f0081"
dependencies = [
"proc-macro2",
"quote",
"unicode-xid",
]

[[package]]
name = "target-lexicon"
version = "0.12.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "64ae3b39281e4b14b8123bdbaddd472b7dfe215e444181f2f9d2443c2444f834"

[[package]]
name = "thiserror"
version = "1.0.24"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e0f4a65597094d4483ddaed134f409b2cb7c1beccf25201a9f73c719254fa98e"
dependencies = [
"thiserror-impl",
]

[[package]]
name = "thiserror-impl"
version = "1.0.24"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7765189610d8241a44529806d6fd1f2e0a08734313a35d5b3a556f92b381f3c0"
dependencies = [
"proc-macro2",
"quote",
"syn",
]

[[package]]
name = "unicode-xid"
version = "0.2.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f7fe0bb3479651439c9112f72b6c505038574c9fbb575ed1bf3b797fa39dd564"

[[package]]
name = "winapi"
version = "0.3.9"
Expand Down
28 changes: 10 additions & 18 deletions compiler/rustc_codegen_cranelift/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,27 +9,27 @@ 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-frontend = { git = "https://github.com/bytecodealliance/wasmtime/", branch = "main" }
cranelift-module = { git = "https://github.com/bytecodealliance/wasmtime/", branch = "main" }
cranelift-native = { git = "https://github.com/bytecodealliance/wasmtime/", branch = "main" }
cranelift-jit = { git = "https://github.com/bytecodealliance/wasmtime/", branch = "main", optional = true }
cranelift-object = { git = "https://github.com/bytecodealliance/wasmtime/", branch = "main" }
cranelift-codegen = { git = "https://github.com/bytecodealliance/wasmtime.git", branch = "main", features = ["unwind"] }
cranelift-frontend = { git = "https://github.com/bytecodealliance/wasmtime.git", branch = "main" }
cranelift-module = { git = "https://github.com/bytecodealliance/wasmtime.git", branch = "main" }
cranelift-native = { git = "https://github.com/bytecodealliance/wasmtime.git", branch = "main" }
cranelift-jit = { git = "https://github.com/bytecodealliance/wasmtime.git", branch = "main", optional = true }
cranelift-object = { git = "https://github.com/bytecodealliance/wasmtime.git", branch = "main" }
target-lexicon = "0.12.0"
gimli = { version = "0.23.0", default-features = false, features = ["write"]}
object = { version = "0.23.0", default-features = false, features = ["std", "read_core", "write", "archive", "coff", "elf", "macho", "pe"] }
gimli = { version = "0.24.0", default-features = false, features = ["write"]}
object = { version = "0.24.0", default-features = false, features = ["std", "read_core", "write", "archive", "coff", "elf", "macho", "pe"] }

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/"]
#[patch."https://github.com/bytecodealliance/wasmtime.git"]
#cranelift-codegen = { path = "../wasmtime/cranelift/codegen" }
#cranelift-frontend = { path = "../wasmtime/cranelift/frontend" }
#cranelift-module = { path = "../wasmtime/cranelift/module" }
#cranelift-native = { path = ../wasmtime/cranelift/native" }
#cranelift-native = { path = "../wasmtime/cranelift/native" }
#cranelift-jit = { path = "../wasmtime/cranelift/jit" }
#cranelift-object = { path = "../wasmtime/cranelift/object" }

Expand Down Expand Up @@ -70,13 +70,5 @@ debug = false
opt-level = 0
debug = false

[profile.dev.package.syn]
opt-level = 0
debug = false

[profile.release.package.syn]
opt-level = 0
debug = false

[package.metadata.rust-analyzer]
rustc_private = true
14 changes: 7 additions & 7 deletions compiler/rustc_codegen_cranelift/build_sysroot/Cargo.lock
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ checksum = "cdb031dd78e28731d87d56cc8ffef4a8f36ca26c38fe2de700543e627f8a464a"

[[package]]
name = "cc"
version = "1.0.67"
version = "1.0.68"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e3c69b077ad434294d3ce9f1f6143a2a4b89a8a2d54ef813d85003a4fd1137fd"
checksum = "4a72c244c1ff497a746a7e1fb3d14bd08420ecda70c8f25c7112f2781652d787"

[[package]]
name = "cfg-if"
Expand All @@ -56,7 +56,7 @@ dependencies = [

[[package]]
name = "compiler_builtins"
version = "0.1.40"
version = "0.1.43"
dependencies = [
"rustc-std-workspace-core",
]
Expand Down Expand Up @@ -132,9 +132,9 @@ dependencies = [

[[package]]
name = "libc"
version = "0.2.94"
version = "0.2.95"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "18794a8ad5b29321f790b55d93dfba91e125cb1a9edbd4f8e3150acc771c1a5e"
checksum = "789da6d93f1b866ffe175afc5322a4d76c038605a1c3319bb57b06967ca98a36"
dependencies = [
"rustc-std-workspace-core",
]
Expand Down Expand Up @@ -195,9 +195,9 @@ dependencies = [

[[package]]
name = "rustc-demangle"
version = "0.1.18"
version = "0.1.19"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6e3bad0ee36814ca07d7968269dd4b7ec89ec2da10c4bb613928d3077083c232"
checksum = "410f7acf3cb3a44527c5d9546bad4bf4e6c460915d5f9f2fc524498bfe8f70ce"
dependencies = [
"compiler_builtins",
"rustc-std-workspace-core",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ popd
git clone https://github.com/rust-lang/compiler-builtins.git || echo "rust-lang/compiler-builtins has already been cloned"
pushd compiler-builtins
git checkout -- .
git checkout 0.1.40
git checkout 0.1.43
git apply ../../crate_patches/000*-compiler-builtins-*.patch
popd

Expand Down

This file was deleted.

Loading