Andrew Brown
b017844bef
Fix interpreter semantics of 'irsub_imm'
...
Previously it used `arg - imm` but the functionality should be a wrapping `imm - arg` (see `cranelift/codegen/meta/src/shared/instructions.rs`).
2020-05-28 16:28:27 +02:00
Andrew Brown
4e016afca3
Add trace-level logging to interpreter
2020-05-26 18:45:25 +02:00
Andrew Brown
ca0c24e346
Avoid recursion in Interpreter::block
2020-05-26 18:45:25 +02:00
Andrew Brown
6e7276e48d
Replace single use of Frame::with_parameters with Frame::set_all
2020-05-26 09:56:58 +02:00
Andrew Brown
d73cb48c29
Add logging to frame operations
2020-05-26 09:56:58 +02:00
Andrew Brown
8b18fc5937
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.
2020-05-07 16:51:09 -07:00