Commit Graph

9165 Commits

Author SHA1 Message Date
Alex Crichton
713ce07d35 Add some debug logging for timing in module compiles (#3417)
* Add some debug logging for timing in module compiles

This is sometimes helpful when debugging slow compiles from fuzz bugs or
similar.

* Fix total duration calculation to not double-count
2021-10-11 12:50:15 -05:00
Advance Software
8194c3a2a1 Merge branch 'bytecodealliance:main' into main 2021-10-11 18:47:02 +01:00
Pat Hickey
3d8253beb5 Merge pull request #3433 from bjorn3/stackslot_remove_dead_code
Remove a lot of dead code from the stackslot module
2021-10-11 10:34:22 -07:00
Chris Fallin
ee60a361e9 Merge pull request #3440 from cfallin/wasmtime-meeting-20211014
Add Wasm EH discussion (#3427) to Wasmtime meeting agenda for 2021-10-14.
2021-10-11 09:54:23 -07:00
Chris Fallin
92eb210ff7 Add Wasm EH discussion (#3427) to Wasmtime meeting agenda for 2021-10-14. 2021-10-11 09:52:08 -07:00
bjorn3
3f87b768d5 Update filetests 2021-10-11 17:44:21 +02:00
bjorn3
a894594ae5 Update parser 2021-10-11 16:41:45 +02:00
bjorn3
20463d60f3 Replace StackSlots struct with a type alias 2021-10-11 16:41:45 +02:00
bjorn3
fd59a3e045 Remove all unused stackslot handling code 2021-10-11 16:41:45 +02:00
Steve
92a10d1ace Added resolve_vmctx_memory function to enable debuggers to resolve sandbox pointers - required because sandbox 'this' pointer cannot be resolved by lldb any other way as lldb expects "this" and "self" to be standard pointers, not sandbox handles. 2021-10-11 09:08:14 +01:00
Advance Software
2fcce7129c Merge branch 'bytecodealliance:main' into main 2021-10-11 10:04:05 +01:00
Pat Hickey
ed31678161 Merge pull request #3437 from jedisct1/wasi-crypto-update
Update wasi-crypto crate
2021-10-10 17:13:02 -07:00
Frank Denis
0ee1689e2f Update wasi-crypto crate
This pulls more recent versions of its dependencies.
2021-10-10 21:34:43 +02:00
Pat Hickey
f3d06d61d2 Merge pull request #3428 from bjorn3/fix_cranelift_codegen_benches
Fix cranelift-codegen benches
2021-10-10 10:01:27 -07:00
Pat Hickey
d3f81a3cb9 Merge pull request #3435 from bjorn3/remove_various_dead_code
Remove various dead code
2021-10-10 10:00:42 -07:00
Pat Hickey
ccab8c5357 Merge pull request #3434 from bjorn3/remove_cssa_verifier
Remove the CSSA verifier
2021-10-10 10:00:19 -07:00
Pat Hickey
bca6946a9d Merge pull request #3432 from bjorn3/remove_reloc_constant
ConstantData related cleanups for the removal of the old backend
2021-10-10 09:59:13 -07:00
Pat Hickey
b7375817b1 Merge pull request #3431 from bjorn3/remove_sarg_t
Remove the sarg_t type and dummy_sarg_t instruction
2021-10-10 09:58:14 -07:00
Pat Hickey
b0fbab67ba Merge pull request #3429 from bjorn3/shrink_cranelift_codegen_shared
Move condcodes from cranelift-codegen-shared to cranelift-codegen
2021-10-10 09:56:44 -07:00
Pat Hickey
8bb4e4584e Merge pull request #3430 from bjorn3/simplify_meta_types
Make ValueType::number unfailable
2021-10-10 09:56:16 -07:00
bjorn3
80709ab624 Rustfmt 2021-10-10 15:26:43 +02:00
bjorn3
54293a5929 Remove predicates module
It is dead code now
2021-10-10 15:25:29 +02:00
bjorn3
fad3868c1d Remove no longer existing passes from timing.rs 2021-10-10 15:25:29 +02:00
bjorn3
f7ce91e174 Remove the CSSA verifier
The old register allocator required CSSA as intermediate step. The new
register allocator doesn't use SSA at all.
2021-10-10 15:17:19 +02:00
bjorn3
355dd996a2 Fix tests 2021-10-10 15:00:25 +02:00
bjorn3
aa0486eb15 Remove offset fields from ConstantPool 2021-10-10 14:47:53 +02:00
bjorn3
d78f436daf Remove reloc_constant
It is no longer used by the new backends
2021-10-10 14:43:55 +02:00
bjorn3
8a8797b911 Remove the sarg_t type and dummy_sarg_t instruction
They are no longer necessary with the new style backends
2021-10-10 14:38:35 +02:00
bjorn3
eec3528254 Make ValueType::number unfailable 2021-10-10 14:37:41 +02:00
bjorn3
2b89b13c57 Move condcodes from cranelift-codegen-shared to cranelift-codegen 2021-10-10 14:23:35 +02:00
bjorn3
ed5764c79f Fix cranelift-codegen benches 2021-10-10 14:19:08 +02:00
Chris Fallin
855ba39217 Merge pull request #3425 from fitzgen/remove-postopt-references
Remove references to the old `postopt` pass
2021-10-07 15:35:18 -07:00
Nick Fitzgerald
dbe01ff51e Remove references to the old postopt pass 2021-10-07 14:44:07 -07:00
Anton Kirilov
a986cf2438 Increase the default code section alignment to 64 KB for AArch64 targets (#3424)
Some platforms such as AArch64 Linux support different memory page
sizes, so we need to be conservative when choosing the code section
alignment (which is equal to the page size) by using the maximum.

Copyright (c) 2021, Arm Limited.
2021-10-07 12:49:40 -05:00
Alex Crichton
ba3ce2280a Remove a dead script in the CI directory (#3423)
This is no longer used on CI
2021-10-07 10:57:17 -05:00
Alex Crichton
319e1c6e16 Enhance the publish script to be ideally run once (#3421)
This commit improves our small publish script for Wasmtime with the goal
of being able to run it on CI. This fixes a few issues with the current
script such as:

* If you rerun the script it won't try to republish crates already
  published.
* Once a crate is published it won't print an error trying to re-add the
  `wasmtime-publish` owner group.
* This will automatically retry publishing crates if they fail to get
  published, hopefully handling issues like rate limiting and/or waiting
  for the index to update.

The eventual goal is to run this script on a tag automatically on CI so
we don't have to do it manually, and these changes should make the
script more robust to run on CI and also makes it so we can inspect
failure outputs and rerun it locally.

For now these changes aren't heavily tested since it's somewhat
difficult to do so, so for now I figure we'll need to babysit the next
release or two with this script.
2021-10-07 09:09:02 -05:00
bjorn3
2db3b5b9df Remove code offsets from Function (#3412)
* Remove code offsets from Function

* Remove reloc_jt and fix wasmtime-cranelift
2021-10-07 15:54:00 +02:00
Afonso Bordado
fc33700071 cranelift: Enable umulhi tests for s390x 2021-10-06 20:59:53 +01:00
Chris Fallin
d269271264 Merge pull request #3091 from cratelyn/katie/spooky-entity-impl
🌈 cranelift: Provide an `entity_impl!` variation for external handles
2021-10-06 12:22:46 -07:00
Alex Crichton
91482f39d0 Disable module linking in compilation fuzzer (#3416)
Module linking is otherwise covered by other fuzzers and by enabling
module linking it rejects more modules than necessary due to
restrictions on import strings.
2021-10-05 09:12:11 -05:00
Alex Crichton
f0219da09d Add cranelift meeting notes (#3411)
* Add cranelift meeting tnoes

* Update cranelift-10-04.md
2021-10-04 15:13:26 -05:00
Chris Fallin
df5fa773ef Merge pull request #3413 from bjorn3/no_stack_layout
Remove StackLayoutInfo
2021-10-04 11:17:13 -07:00
Chris Fallin
a42fc181e4 Merge pull request #3407 from bnjbvr/remove-enccursor
Cranelift: remove unused `EncCursor`
2021-10-04 11:13:01 -07:00
bjorn3
a0f777b677 Remove BranchRange 2021-10-04 19:40:58 +02:00
bjorn3
c5c7508289 Remove StackLayoutInfo 2021-10-04 19:39:33 +02:00
bjorn3
b3702f5821 Remove old_signature 2021-10-04 19:39:33 +02:00
Benjamin Bouvier
772176dbfb Cranelift: remove unused EncCursor 2021-10-04 19:11:52 +02:00
Benjamin Bouvier
43a86f14d5 Remove more old backend ISA concepts (#3402)
This also paves the way for unifying TargetIsa and MachBackend, since now they map one to one. In theory the two traits could be merged, which would be nice to limit the number of total concepts. Also they have quite different responsibilities, so it might be fine to keep them separate.

Interestingly, this PR started as removing RegInfo from the TargetIsa trait since the adapter returned a dummy value there. From the fallout, noticed that all Display implementations didn't needed an ISA anymore (since these were only used to render ISA specific registers). Also the whole family of RegInfo / ValueLoc / RegUnit was exclusively used for the old backend, and these could be removed. Notably, some IR instructions needed to be removed, because they were using RegUnit too: this was the oddball of regfill / regmove / regspill / copy_special, which were IR instructions inserted by the old regalloc. Fare thee well!
2021-10-04 10:36:12 +02:00
Chris Fallin
76afcab0c2 Merge pull request #3405 from bytecodealliance/fitzgen-patch-1
Add ISLE tutorial to agenda and link to slides
2021-10-01 15:39:31 -07:00
Nick Fitzgerald
189ba667f4 Add ISLE tutorial to agenda and link to slides 2021-10-01 15:38:14 -07:00