Add a sparse Switch usable instead of JumpTable to cranelift-frontend (#517)

* Add a sparse Switch usable instead of JumpTable to cranelift-frontend (fixes #438)
This commit is contained in:
bjorn3
2018-09-25 16:34:32 +02:00
committed by Dan Gohman
parent 81d6731e76
commit 2c53e2102c
3 changed files with 355 additions and 0 deletions

View File

@@ -177,12 +177,16 @@
#![cfg_attr(not(feature = "std"), feature(alloc))]
extern crate cranelift_codegen;
#[macro_use]
extern crate log;
pub use frontend::{FunctionBuilder, FunctionBuilderContext};
pub use switch::Switch;
pub use variable::Variable;
mod frontend;
mod ssa;
mod switch;
mod variable;
#[cfg(not(feature = "std"))]