Dan Gohman
8bd35e154b
Tidy up some match bindings to be more consistent with the rest of the codebase.
2018-12-11 13:22:28 -08:00
Dan Gohman
5adab629f2
Update to the rustfmt in rust 1.31, which is now stable.
2018-12-06 16:15:48 -05:00
Benjamin Bouvier
d94e027c2a
[build] Move settings generation from Python to Rust code;
2018-11-30 11:05:21 -06:00
Benjamin Bouvier
4c8f1e7a5a
[meta] Ignore empty lines to compute indent when parsing multiple lines;
2018-11-30 11:05:21 -06:00
Benjamin Bouvier
12df943409
[meta] Add support to generate Match expressions in Rust;
2018-11-30 11:05:21 -06:00
Benjamin Bouvier
ce2364ddd9
[build] Remove dead code in Python and move assertions to the Rust code generator;
2018-11-09 09:23:36 -08:00
Benjamin Bouvier
add4043bb5
[build] Introduce a TargetIsaBuilder to better encapsulate the TargetIsa;
...
It was the caller's responsibility to call TargetIsa::check() before;
now one can't manipulate a TargetIsa without calling the
TargetIsaBuilder::finish() method, which is less error-prone and more in
line with what's coming for other things we're going to generate in the
meta crate.
Also splits the construction of a RegClass in two parts: a prototype is
made first when declaring the RegClass, and missing bits are filled in
when adding it to the TargetIsa(Builder). This avoids an awkward passing
of the isa to the RegClass ctor.
2018-11-09 09:23:36 -08:00
Benjamin Bouvier
b7f2acf0ea
[build] Implement registers code generation in the Rust meta crate;
2018-11-06 13:12:17 -08:00
Benjamin Bouvier
4f2d7dd54f
[build] Move Isa enum to the meta library;
2018-11-06 13:12:17 -08:00
Dan Gohman
0b769f5020
Use Display rather than having an explicit name() function for types.
...
This is more idiomatic Rust.
2018-10-30 11:45:35 +01:00
Boris-Chengbiao Zhou
b288c6001a
Fix all clippy warnings ( #564 )
...
* Fix all clippy warnings
* Revert usage of inclusive ranges
* Remove redundant function argument
* Revert use of unavailable pointer methods
* Introduce ContiguousCaseRange
2018-10-22 21:52:35 -07:00
Dan Gohman
17a9631981
Use more Self keywords instead of repeating the type name.
2018-10-05 16:40:50 -07:00
Benjamin Bouvier
0b3d3ac880
Remove logging levels restrictions ( #538 )
...
* Fixes #537 : Remove release mode logging levels restrictions;
* Add information about log's logging levels in the README;
2018-10-02 10:45:23 -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