Add a CLIF interpreter

This is an incomplete version of a Cranelift IR interpreter: only a small subset of instructions are implemented and (known) missing parts are marked with TODO or FIXME.
This commit is contained in:
Andrew Brown
2020-04-21 11:57:08 -07:00
parent b4238229c2
commit 8b18fc5937
7 changed files with 831 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
[package]
name = "cranelift-interpreter"
version = "0.1.0"
authors = ["The Cranelift Project Developers"]
description = "Interpret Cranelift IR"
repository = "https://github.com/bytecodealliance/wasmtime"
documentation = "https://docs.rs/cranelift-interpreter"
categories = ["no-std"]
license = "Apache-2.0 WITH LLVM-exception"
readme = "README.md"
edition = "2018"
[dependencies]
cranelift-codegen = { path = "../codegen", version = "*", default-features = false }
cranelift-entity = { path = "../entity", version = "*" }
cranelift-reader = { path = "../reader", version = "*" }
hashbrown = { version = "0.7.1", optional = true }
log = { version = "0.4.8", default-features = false }
thiserror = "1.0.15"
walkdir = "2.3.1"
pretty_env_logger = "0.4.0"
[dev-dependencies]
cranelift-frontend = { path = "../frontend", version = "*" }
[badges]
maintenance = { status = "experimental" }