54 Commits

Author SHA1 Message Date
Juan Bono
1ed7c89e3d Add riscv64 backend to the README (#6085) 2023-03-22 02:29:19 +00:00
Chris Fallin
43f1765272 Cranellift: remove Baldrdash support and related features. (#4571)
* Cranellift: remove Baldrdash support and related features.

As noted in Mozilla's bugzilla bug 1781425 [1], the SpiderMonkey team
has recently determined that their current form of integration with
Cranelift is too hard to maintain, and they have chosen to remove it
from their codebase. If and when they decide to build updated support
for Cranelift, they will adopt different approaches to several details
of the integration.

In the meantime, after discussion with the SpiderMonkey folks, they
agree that it makes sense to remove the bits of Cranelift that exist
to support the integration ("Baldrdash"), as they will not need
them. Many of these bits are difficult-to-maintain special cases that
are not actually tested in Cranelift proper: for example, the
Baldrdash integration required Cranelift to emit function bodies
without prologues/epilogues, and instead communicate very precise
information about the expected frame size and layout, then stitched
together something post-facto. This was brittle and caused a lot of
incidental complexity ("fallthrough returns", the resulting special
logic in block-ordering); this is just one example. As another
example, one particular Baldrdash ABI variant processed stack args in
reverse order, so our ABI code had to support both traversal
orders. We had a number of other Baldrdash-specific settings as well
that did various special things.

This PR removes Baldrdash ABI support, the `fallthrough_return`
instruction, and pulls some threads to remove now-unused bits as a
result of those two, with the  understanding that the SpiderMonkey folks
will build new functionality as needed in the future and we can perhaps
find cleaner abstractions to make it all work.

[1] https://bugzilla.mozilla.org/show_bug.cgi?id=1781425

* Review feedback.

* Fix (?) DWARF debug tests: add `--disable-cache` to wasmtime invocations.

The debugger tests invoke `wasmtime` from within each test case under
the control of a debugger (gdb or lldb). Some of these tests started to
inexplicably fail in CI with unrelated changes, and the failures were
only inconsistently reproducible locally. It seems to be cache related:
if we disable cached compilation on the nested `wasmtime` invocations,
the tests consistently pass.

* Review feedback.
2022-08-02 19:37:56 +00:00
Chris Fallin
d65d8b25a5 Update Cranelift README. (#4220)
Our README was starting to show its age; it did not reflect the current
status of Cranelift well with respect to production maturity, current
supported backends, or performance. This PR makes a pass over the
"Status" section to fix that. It also removes some old/out-of-date
details, like `no_std` support (which has bitrotted).
2022-06-03 16:02:57 -07:00
Andrew Brown
b1ad02e43a docs: remove fuzzit badge (#3719)
The badge no longer displays. I believe this is due to the acquisition by GitLab; other repositories seem to be reporting similar issues.
2022-01-24 10:46:34 -08:00
omar
79649a15f6 Update README.md 2021-01-25 15:29:51 -08:00
bjorn3
411ec3a857 Rename SimpleJIT to JIT as it isn't simple anymore 2020-12-04 13:21:13 -08:00
Ömer Sinan Ağacan
3fcf9fcf3e Cranelift README: fix markdown link syntax (#2044) 2020-07-19 19:41:53 -05:00
Dan Gohman
66460f2139 Miscellaneous doc updates (#1383)
* Add additional links to embedding and tutorial documentation.

* Fix a broken link to CONTRIBUTING.md.

Fixes #1280.
2020-03-23 09:58:08 -07:00
Andrew Brown
84464627b8 Add docs badges (#1379)
* Add wasmtime docs badge

* Add cranelift docs badge, closes #1160
2020-03-23 11:25:40 -05:00
Till Schneidereit
8f824a9fc1 Update outdated references to the Cranelift repository
This patch updates or removes all references to the Cranelift repository. It affects links in README documents, issues that were transferred to the Wasmtime repository, CI badges, and a small bunch of sundry items.
2020-03-09 14:06:24 +01:00
Alex Crichton
3179dcf6f1 Update Cranelift's documentation after the merger. (#1238)
Update the documentation for the merger, and also for various changes in
Cranelift. Remove some old obsolete documentation, and convert the remaining
Sphinx files to Markdown. Some of the remaining content is still out of
date, but this is a step forward.
2020-03-05 15:51:12 -06:00
Benjamin Bouvier
d586e0679f Replace Gitter and IRC by a Bytecode Alliance Zulip stream; 2020-02-21 18:57:45 +01:00
Andrew Brown
e1e4e0bfc6 Update build badge (#1264) 2019-12-02 21:33:11 +01:00
Benjamin Bouvier
0b7e7916bd Fixes #1228: add a link to the contributing.md file from the readme. (#1245) 2019-11-19 13:49:50 +01:00
Benjamin Bouvier
9080a02e10 Replace CraneStation by bytecodealliance everywhere; (#1221) 2019-11-12 10:09:31 -08:00
Till Schneidereit
f4b021c072 Make it a Bytecode Alliance project (#1220) 2019-11-12 07:52:48 -08:00
bookmoons
156938facf Continuous fuzzing with Fuzzit (#1042)
Enables automated fuzzing on Fuzzit. Runs fuzz regression tests
every push and PR. Runs full fuzzing every push. Fuzzit emails
if it finds crashes.

Uses the existing fuzz targets:
* translate-module - Fuzz valid WebAssembly modules.
* reader-parse - Fuzz IR text format parsing.
2019-09-18 14:35:30 +09:00
Till Schneidereit
8d62d5f724 Revert "Continuous fuzzing (#944)" (#1036)
This reverts commit 374fd238b06860a1e6e3f8bb9eb598afe91b90fe.
2019-09-17 15:06:37 +09:00
bookmoons
f8d0e6ecab Continuous fuzzing (#944)
Enables automated fuzzing on Fuzzit. Runs fuzz regression tests
every push and PR. Runs full fuzzing every push. Fuzzit emails
if it finds crashes.

Uses the existing fuzz targets:
* translate-module - Fuzz valid WebAssembly modules.
* reader-parse - Fuzz IR text format parsing.
2019-09-17 14:12:31 +09:00
Benjamin Bouvier
173cfb02e6 Fixes #841: Bump the required version of rustc to 1.37; 2019-08-27 11:48:59 +02:00
Benjamin Bouvier
276bb5e26d Fixes #877: Remove appveyor configuration and badge;
See #877: there's an attempt to switch to Azure Pipelines.
2019-08-21 06:34:27 -07:00
Benjamin Bouvier
f29a26de14 [meta] Remove the Python DSL
KILL THE SNAKE WITH FIRE.
2019-07-05 17:50:17 +02:00
Dan Gohman
102dbbb343 Bump the required rust version to 1.35.
Rust 1.34 gets errors like this:

```
$ cargo +1.34.0 build --release
   Compiling cranelift-wasm v0.32.0 (cranelift/cranelift-wasm)
error[E0259]: the name `std` is defined multiple times
  |
  = note: `std` must be defined only once in the type namespace of this module

error: aborting due to previous error

For more information about this error, try `rustc --explain E0259`.
error: Could not compile `cranelift-wasm`.

To learn more, run the command again with --verbose.
```

Updating to Rust 1.35 fixes this.
2019-07-03 14:49:15 +02:00
Dan Gohman
83715d638b Update the Rust version badge to match what's tested in CI. 2019-06-28 10:24:41 +02:00
Dan Gohman
d1bb93294e Update Travis from trusty to xenial, and to Rust 1.33. 2019-03-31 20:29:46 -07:00
bjorn3
00cfe62380 Update README.md 2019-03-08 17:01:36 +01:00
lazypassion
747ad3c4c5 moved crates in lib/ to src/, renamed crates, modified some files' text (#660)
moved crates in lib/ to src/, renamed crates, modified some files' text (#660)
2019-01-28 15:56:54 -08:00
Lukas Bergdoll
54959cf5bb Fix link to cargo workspace documentation 2019-01-28 14:38:44 -08:00
Dan Gohman
06a072ead0 Mention wasmtime as a planned use. 2019-01-16 14:13:54 -08:00
Dan Gohman
aeb9161e2c Update no_std support for Rust 2018 Edition.
With Rust 2018 Edition, the `mod std` trick to alias `core` names to
`std` no longer works, so switch to just having the code use `core`
explicitly.

So instead, switch to just using `core::*` for things that in core.
This is more consistent with other Rust no_std code. And it allows
us to enable `no_std` mode unconditionally in the crates that support
it, which makes testing a little easier.

There actually three cases:

 - For things in std and also in core, like `cmp`: Just use them via
   `core::*`.

 - For things in std and also in alloc, like `Vec`: Import alloc as std, as
   use them from std. This allows them to work on both stable (which
   doesn't provide alloc, but we don't support no_std mode anyway) and
   nightly.

 - For HashMap and similar which are not in core or alloc, import them in
   the top-level lib.rs files from either std or the third-party hashmap_core
   crate, and then have the code use super::hashmap_core.

Also, no_std support continues to be "best effort" at this time and not
something most people need to be testing.
2019-01-14 21:48:15 -08:00
Muhammad Mominul Huque
effe6c04e4 Update to Rust 2018 edition (#632)
* initial cargo fix run

* Upgrade cranelift-entity crate

* Upgrade bforest crate

* Upgrade the codegen crate

* Upgrade the faerie crate

* Upgrade the filetests crate

* Upgrade the codegen-meta crate

* Upgrade the frontend crate

* Upgrade the cranelift-module crate

* Upgrade the cranelift-native crate

* Upgrade the cranelift-preopt crate

* Upgrade the cranelift-reader crate

* Upgrade the cranelift-serde crate

* Upgrade the cranelift-simplejit crate

* Upgrade the cranelift or cranelift-umbrella crate

* Upgrade the cranelift-wasm crate

* Upgrade cranelift-tools crate

* Use new import style on remaining files

* run format-all.sh

* run test-all.sh, update Readme and travis ci configuration
fixed an AssertionError also

* Remove deprecated functions
2018-12-26 09:49:05 -08:00
Dan Gohman
998a7d2b6d Mention Wasmtime as a complete implementation of the Environment traits. 2018-12-24 09:32:20 -08:00
Dan Gohman
f065b39d65 Add Wasmtime as another example user of Cranelift. 2018-12-07 01:01:12 -05:00
Dan Gohman
323a9925e5 Change the Rust version banner to green, because that looks nicer here. 2018-12-05 19:13:14 -05:00
Dan Gohman
0e601ac4a5 Add an appveyor build badge. 2018-11-28 15:46:31 -08:00
Dan Gohman
039188a4bf Move Vim integration files into their own repo.
https://github.com/CraneStation/cranelift.vim
2018-11-13 16:13:54 -08:00
Dan Gohman
ef2e11265c Update to Rust 1.30. 2018-11-12 07:13:53 -08:00
Dan Gohman
62e55f63e6 Update the minimum supported Rust version to 1.29.
We no longer need the Ubuntu LTS restriction, so now the only only
constraint I'm aware of is Firefox's policy. Fortunately, that tracks
the latest stable delayed by only two weeks. So this puts is at
Rust 1.29 now.
2018-10-31 12:54:16 -07:00
Dan Gohman
fcb1151dd1 Add a badge indicating Rust 1.25 support. 2018-10-19 11:05:35 -07:00
Benjamin Bouvier
0b3d3ac880 Remove logging levels restrictions (#538)
* Fixes #537: Remove release mode logging levels restrictions;

* Add information about log's logging levels in the README;
2018-10-02 10:45:23 -07:00
Dan Gohman
87e43ccb94 Mention in the README that we avoid using callstack recursion.
Callstack recursion has the property that the maximum stack depth can
grow significantly, depending on the input program. Cranelift uses
several recursive algorithms, however it uses explicit heap-based
stacks to do so.
2018-09-26 13:07:43 -07:00
Dan Gohman
8055abf90d Add a mention of simplejit-demo to the README. 2018-09-21 20:52:59 -07:00
Dan Gohman
ea0c196c11 More introductory documentation (#520)
* Add a comment to .rustfmt.toml explaning why it's here.

* Use `<details>` for specialized information in README.md.

* Describe a more elaborate issue-labelling system.
2018-09-21 20:16:55 -07:00
Dan Gohman
fd081f2af8 Update README.md to mention the actual version of Rust supported. 2018-09-21 19:50:05 -07:00
Dan Gohman
e7565a8893 Mention the Windows x64 calling convention support in README.md. 2018-09-21 19:49:24 -07:00
Dan Gohman
51698f93f2 Merge branch 'master' into bforest 2018-08-13 15:55:31 -07:00
Caroline Cullen
6f9982fdf5 Updating Sphinx link and install instructions 2018-08-13 15:46:51 -07:00
bjorn3
eb01ae530b Fix gitter link (fixes #458) 2018-08-13 11:59:44 -07:00
Amanieu d'Antras
ae3a3c368b Move bforest into a separate crate 2018-08-12 15:46:35 +02:00
Dan Gohman
c5a554db83 Move the comment about Sphinx 1.4 out of the top-level README. 2018-08-02 15:25:09 -07:00