Dan Gohman
51698f93f2
Merge branch 'master' into bforest
2018-08-13 15:55:31 -07:00
Dan Gohman
4769e67468
Fix a few declarations for the no_std build.
2018-08-13 12:52:43 -07:00
Dan Gohman
d4a83576e4
Add a few miscellaneous comments.
2018-08-13 12:51:49 -07:00
Dan Gohman
cc4bf1c7fb
Deny unstable_features in "std" builds.
2018-08-13 12:51:49 -07:00
Benjamin Bouvier
a044f58cea
Fixes #404 : Use log.rs and a file-per-thread logger instead of the dbg! macro;
2018-08-13 12:51:14 -07:00
Amanieu d'Antras
0b548c720c
Don't make the Comparator a type argument for bforest
2018-08-12 15:46:35 +02:00
Amanieu d'Antras
ae3a3c368b
Move bforest into a separate crate
2018-08-12 15:46:35 +02:00
Benjamin Bouvier
f7e481d9ac
Implement wasm saturating conversions;
2018-08-09 19:50:41 -07:00
Sergey Pepyakin
9dbfbbde10
Stack Limit as an Argument Purpose ( #372 )
...
* Initial approach.
* Move stack_limit check before opening the frame
* Account for GPRs and frame pointer in stack check
* Check stack_limit example.
* Remove stack_limit attribute code.
Amends #359
* fmt
2018-08-04 06:16:21 -07:00
Bruce Mitchener
76a7efc8db
Clippy improvements ( #408 )
...
* clippy: Allow subsec_nanos usage for now.
The recommendation from clippy requires Rust 1.27, but we currently
support Rust 1.25 and later.
* Simplify ref pattern matches.
This was recommended by clippy.
2018-08-02 22:10:51 -07:00
Dan Gohman
c0af810ec0
Add an explicit version to the cranelift-codegen-meta dependency.
...
This allows it to work in crates.io.
2018-08-02 20:37:58 -07:00
Dan Gohman
cd02010a78
Bump version to 0.18.1
2018-08-02 20:10:23 -07:00
Dan Gohman
a52c547d0e
Rename "meta" back to "cranelift-codegen-meta" and publish it.
...
It appears that having the meta directory crate be inside the codegen
directory is not enough to allow codegen to depend on it without it
being published. So, let's just publish it.
2018-08-02 20:04:41 -07:00
Dan Gohman
c4a056a7a0
Bump version to 0.18.0
2018-08-02 18:34:22 -07:00
Dan Gohman
570f7bc20b
Rename "cranelift-meta" to just "meta".
...
This makes it easier for the publish-all.sh script to know to skip this
crate, and it avoids the need to use `extern cranelift_meta as meta`.
2018-08-02 15:36:54 -07:00
Dan Gohman
5cf2c6f0f7
Update cranelift-meta's Cargo.toml to reflect that it's not published.
2018-08-02 15:25:09 -07:00
Dan Gohman
1b30265c5c
Define a "table" concept.
...
"Table" is to WebAssembly tables as "Heap" is to WebAssembly linear
memories.
2018-08-02 15:21:34 -07:00
Dan Gohman
cd75176f10
Update to the rustfmt in rust 1.28, which is now stable.
...
Also, rustfmt's --write-mode=check is now named --check.
2018-08-02 09:55:40 -07:00
Dan Gohman
26d122306d
Don't attempt to shrink regfill/regspill/regmove instructions.
...
This is a temporary workaround for bugs such as #420 , where normal
operand constraint checking doesn't correctly handle such instructions.
2018-08-02 09:53:25 -07:00
Dan Gohman
c61f8a5baf
Rename langref.rst to ir.rst.
...
This aligns with our use of the term "IR" rather than "IL" or
other terms involving "language".
2018-08-02 09:18:59 -07:00
Dan Gohman
bc8e5f82c8
Add use declarations needed for no_std mode.
2018-08-01 14:10:54 -07:00
Dan Gohman
f89cb1df64
Fix the test script to return an error if formatting diffs are found.
2018-08-01 13:24:53 -07:00
bjorn3
01729be8d7
Add comment support ( #379 )
...
* Add comment support
* Don't print empty comments
* Add nop instruction
* Add test and note
* Add FuncWriter trait
* Remove comment support
* Add write_preamble to FuncWriter
* Fix test
* Some changes
2018-08-01 11:21:05 -07:00
Dan Gohman
c42bed7452
Update paths for the meta => meta-python rename.
2018-08-01 05:05:33 -07:00
Benjamin Bouvier
3a550d185f
Enhance Verifier error reporting;
2018-07-31 08:02:14 -07:00
Dan Gohman
1b42105faa
Remove reserved_reg functionality. ( #424 )
...
* Remove reserved_reg functionality.
This wasn't implemented, and if we need it in the future, it seems like
it would be better to extend the concept of global values to cover this.
* Use GlobalValue::reserved_value() for sentinal values.
2018-07-31 07:57:37 -07:00
data-pup
d9d40e1cdf
lib/codegen-meta moved into lib/codegen. ( #423 )
...
* lib/codegen-meta moved into lib/codegen.
* Renamed codegen-meta and existing meta.
2018-07-31 07:56:26 -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
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
Dan Gohman
45ef3149f1
Update hashmap_core to 0.1.9.
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
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
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
8930cb1b5d
Update dependency versions.
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