Stream: git-wasmtime

Topic: wasmtime / PR #3541 aarch64: Initial work to transition b...


view this post on Zulip Wasmtime GitHub notifications bot (Nov 16 2021 at 23:31):

alexcrichton opened PR #3541 from aarch64-isle to main:

This commit is what is hoped to be the initial commit towards migrating
the aarch64 backend to ISLE. There's seemingly a lot of changes here but
it's intended to largely be code motion. The current thinking is to
closely follow the x64 backend for how all this is handled and
organized.

Major changes in this PR are:

My main goal with this PR was to get AArch64 into a place where new
instructions can be added with relative ease. Additionally I'm hoping to
figure out as part of this change how much to share for ISLE between
AArch64 and x64 (and other backends).

<!--

Please ensure that the following steps are all taken care of before submitting
the PR.

Please ensure all communication adheres to the code of conduct.
-->

view this post on Zulip Wasmtime GitHub notifications bot (Nov 16 2021 at 23:33):

alexcrichton created PR review comment:

Someone more familiar with AArch64 may want to confirm this, I'm respecting the original ordering that's implemented today, but I'm not sure if it matters matching it precisely or if any of the three one-instruction forms is fine to materialize a constant with.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 16 2021 at 23:33):

alexcrichton submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 16 2021 at 23:59):

cfallin submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 16 2021 at 23:59):

cfallin created PR review comment:

Some of these type-defs seem like they could be shared with x64 than pub use common::* into this module, probably?

view this post on Zulip Wasmtime GitHub notifications bot (Nov 16 2021 at 23:59):

cfallin submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 16 2021 at 23:59):

cfallin created PR review comment:

Does the syntax support a wildcard (.../isa/*/lower/isle/generated_code.rs) here?

view this post on Zulip Wasmtime GitHub notifications bot (Nov 16 2021 at 23:59):

cfallin created PR review comment:

Since they're all 1-instruction lowerings, it should be fine (and equal cost) to use any that fit, I think. (Though at least MOVZ and MOVN should be completely mutually exclusive, since all the other bits except the shifted 16-bit field are all 0 or all 1 respectively, but ORI's range overlaps with MOVZ.)

So I think it's slightly better to exclude the priorities here so the decision trie build has more freedom to merge and reorder.

Excellent attention to preserving original behavior though, thanks for taking care with that!

view this post on Zulip Wasmtime GitHub notifications bot (Nov 17 2021 at 15:47):

alexcrichton updated PR #3541 from aarch64-isle to main.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 17 2021 at 15:52):

alexcrichton updated PR #3541 from aarch64-isle to main.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 17 2021 at 15:53):

alexcrichton requested fitzgen for a review on PR #3541.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 17 2021 at 22:29):

fitzgen submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 17 2021 at 22:29):

fitzgen submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 17 2021 at 22:29):

fitzgen submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 17 2021 at 22:29):

fitzgen created PR review comment:

I think this file should be at cranelift/codegen/src/machinst/isle.rs

view this post on Zulip Wasmtime GitHub notifications bot (Nov 18 2021 at 15:37):

alexcrichton updated PR #3541 from aarch64-isle to main.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 18 2021 at 15:38):

alexcrichton submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Nov 18 2021 at 15:38):

alexcrichton created PR review comment:

Oops I thought I did that already...

view this post on Zulip Wasmtime GitHub notifications bot (Nov 18 2021 at 16:38):

alexcrichton merged PR #3541.


Last updated: Dec 23 2024 at 12:05 UTC