- 09 Nov, 2016 1 commit
-
-
qinsoon authored
Note: made two places in api implementation as unimplemented as the instruction/type chnaged.
-
- 08 Nov, 2016 2 commits
-
-
Kunshan Wang authored
-
Kunshan Wang authored
-
- 04 Nov, 2016 1 commit
-
-
Kunshan Wang authored
-
- 02 Nov, 2016 1 commit
-
-
Kunshan Wang authored
Added supports for all types. Support Const NULL Support conversions, the TAILCALL and NEW instructions
-
- 01 Nov, 2016 2 commits
-
-
John Zhang authored
-
John Zhang authored
-
- 31 Oct, 2016 1 commit
-
-
Kunshan Wang authored
Also fixed a bug in FuncVer building.
-
- 28 Oct, 2016 2 commits
-
-
Kunshan Wang authored
Still panics. need to debug
-
John Zhang authored
-
- 27 Oct, 2016 2 commits
-
-
Kunshan Wang authored
-
John Zhang authored
-
- 26 Oct, 2016 1 commit
-
-
Kunshan Wang authored
Now it can handle both local vars and constants. Currently only BinOp is implemented. More instructions will be built later.
-
- 25 Oct, 2016 4 commits
-
-
Kunshan Wang authored
-
Kunshan Wang authored
-
John Zhang authored
-
John Zhang authored
-
- 24 Oct, 2016 1 commit
-
-
Kunshan Wang authored
Ensure that "structs" have names, so that structs can be referred symbolically. In the future, functions and basic blocks also need to be ensured to have names. Such names are generated from their IDs if not provided by the client. The IR builder can create named or unnamed MuEntityHeader based on whether it has client-provided name or not. Can build constants now (currently only Constant::Int).
-
- 21 Oct, 2016 5 commits
-
-
Kunshan Wang authored
-
John Zhang authored
-
Kunshan Wang authored
-
Kunshan Wang authored
Also resolves dependency
-
John Zhang authored
-
- 20 Oct, 2016 4 commits
-
-
Kunshan Wang authored
Implemented dependency resolution.
-
Kunshan Wang authored
-
John Zhang authored
-
John Zhang authored
-
- 18 Oct, 2016 1 commit
-
-
Kunshan Wang authored
-
- 17 Oct, 2016 2 commits
-
-
Kunshan Wang authored
-
Kunshan Wang authored
-
- 05 Oct, 2016 2 commits
-
-
Kunshan Wang authored
Creaation and destruction of MuVM, MuCtx and MuIRBuilder. Now the `mvm->new_context`, `ctx->new_ir_builder`, `ctx->close_context` and `b->abort` works. MuVM can also be created via a top-level "C"-style exported function `mu_fastimpl_new()` so that in theory, it can be used in C programs.
-
qinsoon authored
-
- 04 Oct, 2016 1 commit
-
-
Kunshan Wang authored
Now it is the time to actually implement the public API. This commit only contains scaffolds so that it compiles, and I can fill in actual implementations later. Most of them should forward to the actual VM.* methods (with some adaptations).
-
- 30 Sep, 2016 1 commit
-
-
Kunshan Wang authored
-
- 29 Sep, 2016 3 commits
-
-
Kunshan Wang authored
Found a way to implement handle allocation and dealllocation, and a way to access MuVM from MuCtx using pointers.
-
Kunshan Wang authored
Re-wrote the muapi2rustapi.py script. Use *const for CStrings and CMuValue.
-
Kunshan Wang authored
Set linker flags properly according to the OS. Tested trap handler callback. It looks like it is easy enough for Rust to interact with C.
-
- 28 Sep, 2016 3 commits
-
-
Kunshan Wang authored
Added linker flags so it will work in Linux.
-
Kunshan Wang authored
Test whether the generated stubs are reasonable.
-
Kunshan Wang authored
Added the "localtest" directory for testing the API without touching other modules. (TODO: It could be moved somewhere else, but should not use src as an extern crate, or it will depend on the entire crate.) Use CStr for incoming strings from C. CString is for C-style strings **owned by Rust**. Added comments at the beginning of api_c.rs and api_bridge.rs to indicate some parts of the files are generated.
-