Commit Graph

  • 2549abd671 Merge pull request #133 from kubkon/kubkon/rust-tutorial Till Schneidereit 2019-05-05 15:10:05 +02:00
  • cd39c1dfd8 Extract common interface from lucet-wasi Jakub Konka 2019-05-04 14:28:22 +02:00
  • d6059d4605 [meta] Use the Rust crate for settings generation; Benjamin Bouvier 2019-04-16 15:32:06 +02:00
  • f335c5c56c [meta] Small fixes in the settings generation; Benjamin Bouvier 2019-04-16 15:20:18 +02:00
  • 390cfb37da [meta] Use named predicates for x86 settings in the Rust crate too; Benjamin Bouvier 2019-04-16 15:24:28 +02:00
  • 6a25354520 [meta-python] Use named predicates for x86 encodings instead of anonymous predicates; Benjamin Bouvier 2019-04-15 16:51:15 +02:00
  • e41d333878 Update WASI tutorial with Rust howto as well Jakub Konka 2019-05-02 22:02:19 +02:00
  • e12f797c2c Merge pull request #132 from kubkon/patch-1 Till Schneidereit 2019-05-02 15:56:01 +02:00
  • 5c14d1eb6f Add link to Rust version of the WASI tutorial Jakub Konka 2019-05-02 15:49:30 +02:00
  • 5cd0724fef Clarify that FixedTied constraints are not Tied (#756) Lars T Hansen 2019-05-02 14:33:54 +02:00
  • 18a5386c08 Remove and reorganize IntCC/FloatCC imports to avoid a build warning; Benjamin Bouvier 2019-04-25 16:54:52 +02:00
  • dca168f350 [meta] Switch to the Rust crate to generate legalizations and remove Python code; Benjamin Bouvier 2019-04-25 11:15:49 +02:00
  • d6b2faeeb4 Modify fd_prestat to hold C-str together with its length Jakub Konka 2019-05-01 17:05:59 +02:00
  • f7245f40a1 Port host::__wasi_preopentype_t to Rust Jakub Konka 2019-05-01 15:23:28 +02:00
  • 5c555406ca Add Rust impl of wasmtime_ssp_fd_prestat_get Jakub Konka 2019-04-30 21:20:50 +02:00
  • b0eab7398d Don't decode the incoming events to poll_oneoff. (#113) Dan Gohman 2019-04-30 06:42:48 -07:00
  • abf0048972 Merge data alignment bjorn3 2019-04-24 19:58:16 +02:00
  • 8216b83c65 Make alignment magic number constants bjorn3 2019-04-24 19:53:24 +02:00
  • 556d5d45e9 Rustfmt bjorn3 2019-03-30 17:29:28 +01:00
  • cb6268118c Make it possible to define data alignment bjorn3 2019-03-30 16:45:58 +01:00
  • 443e48aee1 [wasm] Raise an error instead of panicking for unhandled function local types; Benjamin Bouvier 2019-04-29 13:44:01 +02:00
  • 3ce5d2057d [wasm] Add the ability to provide a user-defined error; Benjamin Bouvier 2019-04-29 11:34:45 +02:00
  • 02e114cf3d [wasm] Make FuncEnvironment functions fallible (fixes #752); Benjamin Bouvier 2019-04-29 11:27:13 +02:00
  • efdb7d86b3 Fixes #607: Use a wrapping multiply when computing div/rem magic numbers; (#757) Benjamin Bouvier 2019-04-30 11:46:54 +02:00
  • ce3c0d98d3 Don't rewrite EBUSY to EINVAL in path_rename. Dan Gohman 2019-04-23 12:34:02 -07:00
  • 049c926e08 Handle set-size rights correctly when truncating a file. Dan Gohman 2019-04-23 12:24:02 -07:00
  • e62607e552 When path_open fails, set the output fd to -1. Dan Gohman 2019-04-23 12:31:46 -07:00
  • 86b7a52009 Port host::__wasi_errno_t errors to Rust Jakub Konka 2019-04-29 11:06:01 +02:00
  • a51ffb6b6d Add Rust impl of wasmtime_ssp_sched_yield Jakub Konka 2019-04-28 16:48:43 +02:00
  • 79d6978e29 cranelift-simplejit: add a translation mechanism for LibCalls (#747) antoyo 2019-04-29 10:58:39 -04:00
  • 26cbbaab41 Clarify that path_open's path is a relative path. Dan Gohman 2019-04-23 12:09:55 -07:00
  • 29c2616484 Update the documentation about C/C++ toolchain limitations. Dan Gohman 2019-04-18 05:45:09 -07:00
  • d8d573208b Remove unwrap() for branch folding Antoni Boucher 2019-04-28 14:06:41 -04:00
  • 4ee2747c5b Fix cranelift_preopt panic Antoni Boucher 2019-04-28 13:28:17 -04:00
  • 69e44caa29 Add Rust impl of wasmtime_ssp_proc_exit Jakub Konka 2019-04-27 10:57:35 +02:00
  • e906370661 Make path_open return ELOOP on O_NOFOLLOW|O_DIRECTORY on a symlink. Dan Gohman 2019-04-23 12:39:34 -07:00
  • f10cd2f4b1 Don't allow a preopened file descriptor to be renamed over. Dan Gohman 2019-04-23 12:41:16 -07:00
  • 75ec950a12 Merge pull request #743 from CraneStation/expose-function-definitions Pat Hickey 2019-04-25 14:58:36 -07:00
  • 95e6fc9efc Avoid inserting checks during div/rem legalization when the input is a constant immediate; Benjamin Bouvier 2019-04-24 16:32:33 +02:00
  • e3e66acfb1 [meta] Generate legalizations in the Rust crate; Benjamin Bouvier 2019-04-18 17:53:10 +02:00
  • 1f21349c4b [meta] Add CPU modes to the meta crate; Benjamin Bouvier 2019-04-18 18:22:43 +02:00
  • d00e42ede3 [meta] Port shared and x86 legalizations to the Rust crate; Benjamin Bouvier 2019-04-18 18:26:01 +02:00
  • 494f3abf1d [meta] Add type inference, transforms and AST helpers for legalization; Benjamin Bouvier 2019-04-18 18:16:38 +02:00
  • dfb27c3402 [meta] Make TypeVar shareable and mutable; Benjamin Bouvier 2019-04-18 18:38:11 +02:00
  • b85146e945 [meta] Add helper methods and tests to TypeSet; Benjamin Bouvier 2019-04-18 18:33:33 +02:00
  • e71ae7b02f [meta] Add instruction predicates; Benjamin Bouvier 2019-04-18 18:29:20 +02:00
  • d92778a19e [meta] Add Instruction helpers and change its representation to make it easily copiable; Benjamin Bouvier 2019-04-18 18:27:33 +02:00
  • 45013a1d2b Expose function definitions and populate FaerieCompiledFunction with function lengths iximeow 2019-04-18 16:51:26 -07:00
  • 21cdd55cd2 Fix various panics and miscompilations Jef 2019-04-24 15:00:15 +02:00
  • 6acf9be540 Refactor simple-preopt to make it slightly simpler to read; Benjamin Bouvier 2019-04-15 15:46:37 +02:00
  • 745d9ae162 Implement rem in backend - not every backend will act like x86 Jef 2019-04-24 12:32:17 +02:00
  • 00429ebe99 [meta] Fix outdented_line in srcgen; Benjamin Bouvier 2019-04-12 18:34:20 +02:00
  • d2d2cdcd78 [meta] Rejigger comments in cdsl/formats; Benjamin Bouvier 2019-04-12 18:28:47 +02:00
  • faa9b25691 [meta-python] Simplify Var ctor since it never is given a typevar argument; Benjamin Bouvier 2019-04-12 18:27:40 +02:00
  • b3a950b589 [meta] Fix condition codes in immediates; Benjamin Bouvier 2019-04-11 19:08:07 +02:00
  • ea1ec9491e Don't use cmov (no need) Jef 2019-04-24 09:16:38 +02:00
  • 7813cc9d2d Fix a trace logging message. Dan Gohman 2019-04-23 12:07:02 -07:00
  • a2eafd400f Document using wasmtime as a dependency in the README Jake Lang 2019-04-19 17:17:25 -04:00
  • b8fbae29e1 WASI-api.md: fix fsync -> fcntl Joel Martin 2019-04-18 13:16:43 -05:00
  • a2ef962ed7 Fix shift's incorrect register freeing logic Jef 2019-04-17 16:06:51 +02:00
  • 82e810c8d2 Avoid emitting tests on select Jef 2019-04-17 15:47:22 +02:00
  • 274415d5ee Fixes #738: Check ebbs used in jump tables in the verifier; Benjamin Bouvier 2019-04-16 17:48:15 +02:00
  • ced654f907 Allow register allocation to fail Jef 2019-04-17 15:13:38 +02:00
  • 3b1583ebb7 Style changes in response to code review. Tyler McMullen 2019-04-16 10:57:47 +09:00
  • 4d427d7c71 Remove old commented out code Tyler McMullen 2019-04-13 00:15:52 -07:00
  • 1090dc5069 Switch from fallthrough back to jump. Tyler McMullen 2019-04-10 14:17:23 -07:00
  • 5596b5fadc Address code review comments, simplifying some bits of branch_opt. Tyler McMullen 2019-04-10 13:41:49 -07:00
  • 402d0d9c83 Add comments to branch folding and reordering functions in simple_preopt. Tyler McMullen 2019-01-03 11:56:36 -08:00
  • fd6940baaf Switch branch order opt from brif/brff to br_icmp, as that's what frontends should produce. Tyler McMullen 2019-01-02 20:24:50 -08:00
  • 571b87414f Switch ifcmp+brif folding to be icmp+brz folding, which is what frontends actually produce. Tyler McMullen 2019-01-02 20:01:52 -08:00
  • 67cc5aafec Refactoring of branch ordering and zero-check optimization based on PR feedback. Tyler McMullen 2019-01-02 11:51:58 -08:00
  • 861ef3a2e5 Questionable change: Remove domtree generation from simple_preopt testing. Tyler McMullen 2018-12-20 16:38:27 -08:00
  • 89a2dd9414 Add tests for branch order and branch comparison folding. Tyler McMullen 2018-12-20 16:37:28 -08:00
  • 947130be81 Add branch order optimization to simple_preopt to encourage fallthroughs. Tyler McMullen 2018-12-20 16:36:49 -08:00
  • 57f087c9da Add note to simple_preopt differentiating its use from the preopt crate. Tyler McMullen 2018-12-18 12:38:18 -08:00
  • fc6876c68e Fold 'ifcmp_imm' + 'brif' where imm is zero and cond is 'eq' or 'ne', into 'brz' or 'brnz'. Tyler McMullen 2018-12-18 12:10:00 -08:00
  • 3351befb3b Allow access to memory_index and grow on Instance (#105) Stefano Buliani 2019-04-16 19:59:54 -07:00
  • a99107203e Document the preopened file descriptor range. Dan Gohman 2019-04-09 12:53:20 -07:00
  • d722b354db Miscellaneous tidying in the API docs. Dan Gohman 2019-04-09 12:19:18 -07:00
  • 9b1cd4bc7b Document __wasi_preopentype_t and __wasi_prestat_t. Dan Gohman 2019-04-09 12:19:02 -07:00
  • 4262178cf5 Document the git clone --recurse-submodules requirement. Dan Gohman 2019-04-11 16:55:18 -07:00
  • 07a6ca8f4e Hack to not allow inlining even when Rust wants to do it in release mode. Yury Delendik 2019-04-10 10:32:58 -05:00
  • 9b156fd9bb [meta] Use the Rust crate for opcodes/inst_builder code generation; Benjamin Bouvier 2019-03-11 19:50:31 +01:00
  • b5595aadd2 [meta] Generate opcodes.rs/inst_builder.rs with the Rust crate; Benjamin Bouvier 2019-03-11 19:18:48 +01:00
  • 1f9167f44d Add a link to bindgen's documentation of the clang dependency. Dan Gohman 2019-04-04 16:12:40 -07:00
  • f32581706f Document that cmake and clang are build dependencies. Dan Gohman 2019-04-04 15:19:14 -07:00
  • aa926e9097 Allow readonly nontrapping loads to be hoisted by licm (#727) Lars T Hansen 2019-04-09 11:40:23 +02:00
  • 9062810c34 Fix the publish script to include the remote when pushing the tag; Benjamin Bouvier 2019-04-08 16:13:19 +02:00
  • 0166d6507a Adding comment about copying RiscV abi file into ARM32. carolinecullen 2019-03-27 15:27:20 -05:00
  • 8ab7170a07 Updated comments. carolinecullen 2019-03-12 08:21:35 -07:00
  • 72bc035d70 Beginnings of arm32 backend. carolinecullen 2019-03-11 11:50:24 -07:00
  • b74b49f7c6 Fix x86-64 encoding of uextend.i64.i8 Philip Craig 2019-04-05 20:40:22 +10:00
  • 7e11511abd Remove dead code. Dan Gohman 2019-04-05 16:35:54 -07:00
  • b37ab7d13e Fix a copy+pasto in the tutorial. Dan Gohman 2019-04-05 16:32:04 -07:00
  • 7eccb2b622 microwasm: fix comment typo for BrIf Tibor Vass 2019-04-06 11:43:09 -07:00
  • 07b83c5db3 Add __WASI_RIGHT_PATH_FILESTAT_SET_SIZE to RIGHTS_DIRECTORY_BASE. Dan Gohman 2019-04-05 15:09:14 -07:00
  • b509ca0aa5 Tidy up unused import warnings. Dan Gohman 2019-04-05 14:07:28 -07:00
  • 30dcf4aed6 Lightbeam requires nightly, so don't use cargo test --all. Dan Gohman 2019-04-05 13:42:54 -07:00
  • 9bf6d73210 Integrate Lightbeam (#51) Jef 2019-04-05 21:42:54 +02:00
  • 84fede890c [meta] Optimize the sequence table to use whole table suffix prefixing; Benjamin Bouvier 2019-04-05 13:12:49 +02:00