Commit Graph

  • dc79d155ff Comment wording cleanups. Dan Gohman 2017-08-31 12:18:15 -07:00
  • bc528917fd Avoid redundant '@ _' in match patterns. Dan Gohman 2017-08-31 12:18:03 -07:00
  • ebbb836bb9 Use debug_assert_eq rather than debug_assert with an ==. Dan Gohman 2017-08-31 12:16:44 -07:00
  • 3c5755cfbd Avoid unneeded return keywords. Dan Gohman 2017-08-31 12:15:33 -07:00
  • a7d629c368 Use the Self keyword where applicable. Dan Gohman 2017-08-31 12:12:04 -07:00
  • 99b361567a Remove unneeded mut keywords. Dan Gohman 2017-08-31 12:09:42 -07:00
  • 55ae51acfe Add an underscore between a literal value and its suffix. Dan Gohman 2017-08-31 12:09:33 -07:00
  • da2c2151b1 Fix trivial_numeric_casts errors. Dan Gohman 2017-08-31 12:07:54 -07:00
  • 9726bb7367 Avoid matching with reference patterns. Dan Gohman 2017-08-31 11:59:26 -07:00
  • 5a8d1a9fda Use if let instead of match. Dan Gohman 2017-08-31 11:57:03 -07:00
  • 574031e4d2 Avoid unneeded passing by value. Dan Gohman 2017-08-31 11:49:33 -07:00
  • b6641ff443 Avoid clone() on a Copy type. Dan Gohman 2017-08-31 11:48:14 -07:00
  • 105998944e Avoid redundant borrows. Dan Gohman 2017-08-31 11:46:45 -07:00
  • 9a8f01b832 Avoid unnecessary '&' in matches. Dan Gohman 2017-08-31 11:46:05 -07:00
  • acf4f1009b Eliminate redundant uses of format!. Dan Gohman 2017-08-31 11:43:54 -07:00
  • abbc6ddf24 Use is_empty() instead of comparing len() with 0. Dan Gohman 2017-08-31 11:40:18 -07:00
  • adfdd77311 Avoid creating a reference to a reference. Dan Gohman 2017-08-31 11:38:55 -07:00
  • b411d01d6d Use [] instead of .get().unwrap(). Dan Gohman 2017-08-31 11:37:58 -07:00
  • 2efdc0ed37 Update rustfmt to 0.9.0. Dan Gohman 2017-08-31 10:44:59 -07:00
  • 46fb64cbb4 Add SideEffects::new(). Dan Gohman 2017-08-07 13:59:26 -07:00
  • 52186b8390 Refactor code for obtaining the header block. Dan Gohman 2017-08-31 09:33:07 -07:00
  • fc374b6c06 Test that stack layout with an unsupported offset is rejected cleanly. Dan Gohman 2017-08-31 07:45:39 -07:00
  • bd0590604d Test dfg's next_inst(). Dan Gohman 2017-08-31 07:45:35 -07:00
  • 4c3ac6053f Test the error case of condcode parsing. Dan Gohman 2017-08-31 07:45:29 -07:00
  • 6702221e94 Change EbbHeaderBlockData's predecessors list from a HashMap to a Vec. (#148) Dan Gohman 2017-08-31 08:54:34 -07:00
  • a0a3401ef1 Don't special-case br_table with an empty table. Dan Gohman 2017-08-30 09:21:58 -07:00
  • 4ccd21ba94 Simplify iteration. Dan Gohman 2017-08-30 11:21:02 -07:00
  • 110697cfdd Replace match blocks with .expect calls. Dan Gohman 2017-08-30 11:17:25 -07:00
  • 5e99a4fb6a Simplify a pattern-match. Dan Gohman 2017-08-30 11:12:05 -07:00
  • 0cc8bd06cd Remove unnecessary () values. Dan Gohman 2017-08-30 09:10:50 -07:00
  • 8647b10135 Loop over references to containers instead of using explicit iteration methods. Dan Gohman 2017-08-10 13:59:46 -07:00
  • 03698f6bc8 Use slices rather than Vec borrows. Dan Gohman 2017-08-10 14:18:27 -07:00
  • 01744d6f65 Avoid unneeded return keywords. Dan Gohman 2017-08-30 12:40:44 -07:00
  • 3532c3533a Teach simple_gvn that iconst.i32 is not congruent to iconst.i64. Dan Gohman 2017-08-30 14:33:54 -07:00
  • 9ea5226b89 Add simple_gvn to the optimization pipeline for WebAssembly functions. Dan Gohman 2017-08-30 14:32:42 -07:00
  • dcb65b59c1 Remove an unnecessary mut, fixing a compiler warning. Dan Gohman 2017-08-29 06:25:19 -07:00
  • b2fcb1ad17 Change translate_module to use a slice rather than a borrowed Vec. Dan Gohman 2017-08-29 06:21:28 -07:00
  • 5303e7708b Handle wasmparser errors gracefully. Dan Gohman 2017-08-29 06:16:22 -07:00
  • 0deaa616a3 Record identity assignments in regalloc constraint solver. Jakob Stoklund Olesen 2017-08-29 10:24:30 -07:00
  • 8f6957296e Merge commit '051bc08d23df0930be5e959645c50dd0cdf411d4' Dan Gohman 2017-08-29 07:12:47 -07:00
  • 344fbed77a Initial commit Dan Gohman 2017-08-29 07:01:55 -07:00
  • c380df1d04 Eliminate a heap allocation. Dan Gohman 2017-08-29 05:44:40 -07:00
  • 4afa5df3b6 Remove the last_inst_return field. Dan Gohman 2017-08-29 04:40:48 -07:00
  • ea1d053831 Simplify the "am I in unreachable code" predicate. Dan Gohman 2017-08-29 03:36:38 -07:00
  • c71d4fc01b Remove a stale comment. Dan Gohman 2017-08-29 03:30:22 -07:00
  • 253f602a4c Fix a few warnings. Dan Gohman 2017-08-28 17:17:41 -07:00
  • f905dc914b Enable missing_docs errors in the wasm crate. Dan Gohman 2017-08-28 17:07:28 -07:00
  • ee9989c4b9 Dumped code from the wasm2cretonne repo. Denis Merigoux 2017-08-10 16:05:04 -07:00
  • e8276ed965 Add more heap expansion tests. Jakob Stoklund Olesen 2017-08-28 14:34:46 -07:00
  • 2201e6249e Add Intel encodings for brz.b1 and brnz.b1. Jakob Stoklund Olesen 2017-08-28 14:54:35 -07:00
  • 217434b474 Add custom legalization for conditional traps. Jakob Stoklund Olesen 2017-08-25 12:40:43 -07:00
  • 6d9198d55f Recompute the dominator tree on demand. Jakob Stoklund Olesen 2017-08-28 11:13:53 -07:00
  • fecbcbb7b4 Drop the domtree argument to legalize_function(). Jakob Stoklund Olesen 2017-08-25 10:36:25 -07:00
  • aae946128b Add heap_addr custom legalization. Jakob Stoklund Olesen 2017-08-24 14:04:35 -07:00
  • 3b71a27632 Add heaps to the Cretonne IL. Jakob Stoklund Olesen 2017-08-18 12:51:54 -07:00
  • a9238eda7a Clean up the documentation for the entity module. Jakob Stoklund Olesen 2017-08-18 17:14:31 -07:00
  • 9cb0529be4 Move EntityList and SparseMap into the entity module. Jakob Stoklund Olesen 2017-08-18 16:09:13 -07:00
  • 7e08b14cf6 Split EntityMap into entity::PrimaryMap and entity::EntityMap. Jakob Stoklund Olesen 2017-08-18 15:04:10 -07:00
  • 8599372098 Rename the entity_ref module to 'entity'. Jakob Stoklund Olesen 2017-08-18 14:37:03 -07:00
  • c7b9bc1abf Prefer to use qualified type names in generated code. Jakob Stoklund Olesen 2017-08-18 14:14:23 -07:00
  • 6bcb24b3a6 Add a uimm32 operand kind. Jakob Stoklund Olesen 2017-08-18 13:06:37 -07:00
  • f2ebabaf5f Custom legalization for global_addr. Jakob Stoklund Olesen 2017-08-18 09:08:41 -07:00
  • 5dba00b761 Add support for custom legalization actions. Jakob Stoklund Olesen 2017-08-17 18:33:53 -07:00
  • 4b94ea21ed Switch to a FuncCursor in the top-level legalizer loop. Jakob Stoklund Olesen 2017-08-17 15:45:21 -07:00
  • 5566c99dba Check for global variable deref cycles in the verifier. Jakob Stoklund Olesen 2017-08-17 15:11:35 -07:00
  • bf4ae3bb2e Add global variables to Cretonne IL. Jakob Stoklund Olesen 2017-08-17 11:30:00 -07:00
  • 7e402a6104 Document memory operation flags. Jakob Stoklund Olesen 2017-08-17 10:40:35 -07:00
  • 66da171050 Fix for #141 (#142) d1m0 2017-08-14 20:19:47 -07:00
  • 591f6c1632 Added tests for verifier type checking. Angus Holder 2017-03-30 23:38:31 +01:00
  • 79d8aa366d Don't perform gvn on instructions with other_side_effects(). Dan Gohman 2017-08-08 14:14:59 -07:00
  • 8546cabc8f Verifier now checks it branch target ebbs are inserted in the layout Denis Merigoux 2017-08-08 13:43:20 -07:00
  • 051bc08d23 Added description and license to Cargo.toml Denis Merigoux 2017-08-11 15:49:47 -07:00
  • 727f297ba9 Bugfix: wrong jump arguments for br_if to loops Denis Merigoux 2017-08-11 13:38:56 -07:00
  • 5fc61bd6f6 Added Fibonacci test case Denis Merigoux 2017-08-11 11:10:21 -07:00
  • dfdab56a54 Integrated wasm test suite translation as cretonne test Denis Merigoux 2017-08-10 16:30:09 -07:00
  • 234e72a5b3 Dumped code from the wasm2cretonne repo Denis Merigoux 2017-08-10 16:05:04 -07:00
  • ffae39377c Switch branch relaxation to a FuncCursor. Jakob Stoklund Olesen 2017-08-04 16:00:48 -07:00
  • 378e7cfe6b Switch branch relaxation to a FuncCursor. Jakob Stoklund Olesen 2017-08-04 16:00:48 -07:00
  • 92c3d8f87b Add a FuncCursor type to the cursor library. Jakob Stoklund Olesen 2017-08-04 15:31:08 -07:00
  • 6f024267c6 Add a FuncCursor type to the cursor library. Jakob Stoklund Olesen 2017-08-04 15:31:08 -07:00
  • e904bff420 Use EncCursor for reload.rs. Jakob Stoklund Olesen 2017-08-04 15:02:46 -07:00
  • 8b2f5c418b Use EncCursor for reload.rs. Jakob Stoklund Olesen 2017-08-04 15:02:46 -07:00
  • f15abe7154 Use EncCursor in regalloc/spilling.rs Jakob Stoklund Olesen 2017-08-04 14:13:56 -07:00
  • 3eb80fde15 Use EncCursor in regalloc/spilling.rs Jakob Stoklund Olesen 2017-08-04 14:13:56 -07:00
  • 87cee86acb Cursor library. Jakob Stoklund Olesen 2017-08-03 21:08:36 -07:00
  • 0ab1976231 Cursor library. Jakob Stoklund Olesen 2017-08-03 21:08:36 -07:00
  • 621abb5026 Reorganize the instruction builder traits. Jakob Stoklund Olesen 2017-08-04 11:23:37 -07:00
  • ff39458f96 Reorganize the instruction builder traits. Jakob Stoklund Olesen 2017-08-04 11:23:37 -07:00
  • aa0c37235a Add CursorBase builder methods. Jakob Stoklund Olesen 2017-08-03 18:03:58 -07:00
  • 019e5dd894 Add CursorBase builder methods. Jakob Stoklund Olesen 2017-08-03 18:03:58 -07:00
  • dba0df787c Move most Cursor methods into a CursorBase trait. Jakob Stoklund Olesen 2017-08-03 16:43:47 -07:00
  • 78db5b3715 Move most Cursor methods into a CursorBase trait. Jakob Stoklund Olesen 2017-08-03 16:43:47 -07:00
  • f175882030 Avoid evaluating dbg!() arguments in a closure. Jakob Stoklund Olesen 2017-08-04 08:44:17 -07:00
  • 81ff9bac72 Avoid evaluating dbg!() arguments in a closure. Jakob Stoklund Olesen 2017-08-04 08:44:17 -07:00
  • 05ba8dcab6 Added partial recompute of dominator tree in case of Ebb splitting (#135) Denis Merigoux 2017-08-03 18:26:41 -07:00
  • e0fd5252d5 Added partial recompute of dominator tree in case of Ebb splitting (#135) Denis Merigoux 2017-08-03 18:26:41 -07:00
  • 92392c6041 Add a prologue_epilogue() hook to TargetIsa. Jakob Stoklund Olesen 2017-08-03 13:48:30 -07:00
  • d591b38b37 Add a prologue_epilogue() hook to TargetIsa. Jakob Stoklund Olesen 2017-08-03 13:48:30 -07:00
  • 39cc7efc2d Move the stack layout computation into its own module. Jakob Stoklund Olesen 2017-08-03 13:31:58 -07:00
  • f82004e3c0 Move the stack layout computation into its own module. Jakob Stoklund Olesen 2017-08-03 13:31:58 -07:00