Aaron Power
13fea26c95
Correctly handle duplicate definitions
2018-07-28 11:48:13 -07:00
Dan Gohman
d0fbf47987
Fix rustfmt errors.
2018-07-26 11:51:12 -07:00
Dan Gohman
e0124fa82f
Rename local variables to clarify their purpose.
2018-07-26 11:14:52 -07:00
Dan Gohman
15520fa961
Enable a few more clippy lints.
2018-07-26 10:10:36 -07:00
Aaron Power
cc7ba7e69a
Fixed remaning clippy warnings
2018-07-25 13:05:14 -07:00
Aaron Power
952a086f32
Fixed trivially_copy_pass_by_ref warnings
2018-07-25 10:31:01 -07:00
Aaron Power
eed861c6e1
Implemented clippy improvements
2018-07-24 12:36:34 -07:00
Dan Gohman
d6d1e7253d
Bump version to 0.17.0
2018-07-23 16:57:51 -07:00
Dan Gohman
8904ec77c9
Temporarily disable use of cretonne-codegen-meta.
...
Once we figure out how to publish this code, we can re-enable it.
2018-07-23 16:57:51 -07:00
Dan Gohman
6cb03a873d
Bump version to 0.17.0-alpha
2018-07-23 16:15:53 -07:00
Benjamin Bouvier
78b04fc8ab
Promote the (Block, Inst) tuple into a PredBlock struct;
2018-07-23 15:26:11 -07:00
Benjamin Bouvier
f72ff791b4
Promote the BasicBlock tuple to a real struct;
...
It makes reading code that uses it easier to understand.
2018-07-23 15:26:11 -07:00
data-pup
ce177d643e
Remove gen_build_deps module.
2018-07-22 13:51:23 -07:00
Benjamin Bouvier
5f3cd868cd
[wasm] Rename native_pointer() to pointer_type() to make it more apparent it's a type;
2018-07-20 13:11:36 -07:00
Dan Gohman
32d657d62a
Update to faerie 0.4.4 and goblin 0.0.17.
2018-07-19 11:58:08 -07:00
Dan Gohman
45ef3149f1
Update hashmap_core to 0.1.9.
2018-07-19 11:08:53 -07:00
Dan Gohman
c77df6f6d9
Add a TODO about a potential optimization opportunity.
2018-07-19 11:08:53 -07:00
data-pup
06319b415a
Added initial Rust codegen-meta implementation. ( #403 )
...
* Added initial Rust codegen-meta implementation.
* Replace 'Cretonne' in comments.
* Prevent iterator overflow.
* 1.25.0 compatibility changes.
* Implemented debug traits for type variants.
* Added consistent comments.
* Cleaned up a loop via clippy fix.
* Added new license to codegen-meta Cargo.toml
* Edited lane type iterator `next` method.
* Removed functions that are not needed in Rust, and edited desc.
* Debug trait derived for valuetype.
* Added comments for iterator types in the base types submodule.
* Numbering is now handled in the cdsl/types.rs file.
* Moved type number logic into cdsl/types.
* Repeating the lane change cleanup.
* Removed codegen-meta crate from codegen deps.
* Typo fix.
* Addressing a patch note.
* Addressing patch note.
* Lowercase in vector names.
* Fixing a comment bug.
* Added a copy of the license file.
* Formatting changes.
* Cleaned up the vector type numbering.
* 1.25 compatibility.
* Fixed pattern match arms.
2018-07-19 09:56:23 -07:00
Benjamin Bouvier
7b290cd900
Move the code section parsing into its own function;
2018-07-19 06:39:56 -07:00
Benjamin Bouvier
03159a9200
Misc refactorings when looking at the wasm code;
2018-07-19 06:39:56 -07:00
Dan Gohman
c068721964
Bump version to 0.16.1
2018-07-18 13:33:15 -07:00
Dan Gohman
1081d06173
Use the new realm-switching ABI in the baldrdash calling convention.
2018-07-17 22:44:00 -07:00
Dan Gohman
ce27b2a74f
Bump version to 0.16.0
2018-07-17 15:49:04 -07:00
Dan Gohman
76a537e3d4
Update to wasmparser.rs 0.17.2.
2018-07-17 15:46:35 -07:00
Dan Gohman
289145e7cf
Update to wasmparser.rs 0.17.1.
2018-07-17 15:43:39 -07:00
Dan Gohman
17db4e6be8
Add a LICENSE file to each crate.
...
The individual crates are published separately from the main repository
on crates.io. To ensure that a copy of the LICENSE file accompanies all
published copies of the code, give each crate its own LICENSE file.
2018-07-17 12:48:27 -07:00
Dan Gohman
a28a3c3ea9
Bump version to 0.15.0
2018-07-14 07:27:35 -07:00
Dan Gohman
eb98082155
Update to faerie 0.4.3.
...
This resolves conflicts when multiple versions of target-lexicon are
used at the same time.
2018-07-14 06:46:22 -07:00
Dan Gohman
8930cb1b5d
Update dependency versions.
2018-07-13 16:34:34 -07:00
Dan Gohman
f833d25ad1
Add a comment mentioning why we're remaining at cpuid 3.x for now.
2018-07-13 16:34:34 -07:00
Dan Gohman
2db2d946b8
Support the rustc in the latest Ubuntu LTS.
...
At this time, this is Bionic, with Rust 1.25.0.
2018-07-13 16:26:21 -07:00
Lachlan Sneff
202e45c213
Fix broken build on no_std
2018-07-13 16:26:02 -07:00
Dan Gohman
262689908e
Bump version to 0.14.0
2018-07-13 09:26:46 -07:00
Dan Gohman
401c872c52
Update more paths for the CraneStation/cranelift rename.
2018-07-13 09:22:15 -07:00
Dan Gohman
f4dbd38a4c
Rename Cretonne to Cranelift!
2018-07-13 09:15:16 -07:00
Dan Gohman
19a636af96
Change Cretonne's license to "Apache-2.0 WITH LLVM-exception".
...
This adds the "LLVM-exception" to Cretonne's existing Apache-2.0
license.
https://spdx.org/licenses/LLVM-exception.html
2018-07-13 07:25:32 -07:00
Amanieu d'Antras
65ef4a7583
Add EntityList::from_slice to build a list from an existing slice
2018-07-12 09:05:46 -07:00
Benjamin Bouvier
7204026bc8
Don't display stderr for the testing command in check.sh's runif;
...
And remove an obsolete comment in check-clippy.sh.
2018-07-11 13:47:25 -07:00
Benjamin Bouvier
bcc268a3cd
[clippy] Fix a few clippy issues in lib/codegen/;
...
- don't generate "&& true" when generating instruction eq() fn;
- use more Self;
- use subsec_millis instead of subsec_nanos and divide;
- coalesce two ifs;
2018-07-11 13:47:25 -07:00
Benjamin Bouvier
0616a960d6
[clippy] A few fixes in module/src/module.rs;
...
- use Self more to indicate the current type;
- explicitly clone one Option;
- invert !is_none to is_some;
2018-07-11 13:47:25 -07:00
Benjamin Bouvier
25508ac66e
[clippy] Pass more types by value;
...
wasmparser::Type is an enum, and there was one Location I missed.
2018-07-11 13:47:25 -07:00
Benjamin Bouvier
bea843519c
[clippy] Return explicit unit values;
2018-07-11 13:47:25 -07:00
Benjamin Bouvier
26523fdf5c
[clippy] Pass a few argument types by value, not by reference;
...
Since Location is basically just a usize, and wasmparser::Type is an
enum, and both are copiable, this passes them down by value instead of
by reference, as suggested by Clippy.
2018-07-10 06:11:30 -07:00
Benjamin Bouvier
b263a8344c
[clippy] Use subsec_millis() instead of nanos and division;
2018-07-10 06:11:30 -07:00
Benjamin Bouvier
0ad7dbf689
[clippy] Remove unnecessary closures;
2018-07-10 06:11:30 -07:00
Dan Gohman
b616644495
Document that cretonne-module is an optional part of Cretonne.
2018-07-07 13:37:40 -07:00
Amanieu d'Antras
5c7aeb46dd
Make InstructionData comparable and hashable ( #388 )
...
* Don't implement Eq and Hash for EntityList
* Generate eq and hash methods for InstructionData
* Use the eq() and hash() methods of InstructionData in simple_gvn
2018-07-06 12:09:20 -07:00
bjorn3
4f352fa6f1
s/uextend/sextend/ for sload* ( #390 )
2018-07-06 12:05:01 -07:00
Amanieu d'Antras
c6badde836
Update wabt to 0.4 ( #389 )
...
This fixes compilation on system with GCC 8.
2018-07-05 19:17:53 -07:00
bjorn3
5db45d26cc
Legalize several i8 insts ( #380 )
...
* Legalize several i8 insts
* X86: implement regmove.{i8,i16}
* Legalize bnot
* Remove comments
* Nicer type param binding in legalize.py
* Legalize sdiv_imm.i8
* Hopefully fix mypy error
* Add missing trailing newlines
* Fix tests
2018-07-04 06:31:00 -07:00