Stream: git-wasmtime

Topic: wasmtime / PR #3402 Remove more old backend ISA concepts


view this post on Zulip Wasmtime GitHub notifications bot (Sep 30 2021 at 23:29):

bnjbvr opened PR #3402 from unify-targetisa-mach-backend to main:

This also paves the way for unifying TargetIsa and MachBackend, since now they map one to one. In theory the two traits could be merged, which would be nice to limit the number of total concepts. Also they have quite different responsibilities, so it might be fine to keep them separate. Any thoughts @cfallin?

Interestingly, this PR started as removingRegInfo from the TargetIsa trait since the adapter returned a dummy value there. From the fallout, noticed that all Display implementations didn't needed an ISA anymore (since these were only used to render ISA specific registers). Also the whole family of RegInfo / ValueLoc / RegUnit was exclusively used for the old backend, and these could be removed. Notably, some IR instructions needed to be removed, because they were using RegUnit too: this was the oddball of regfill / regmove / regspill / copy_special, which were IR instructions inserted by the old regalloc. Fare thee well!

view this post on Zulip Wasmtime GitHub notifications bot (Sep 30 2021 at 23:30):

bnjbvr edited PR #3402 from unify-targetisa-mach-backend to main:

This also paves the way for unifying TargetIsa and MachBackend, since now they map one to one. In theory the two traits could be merged, which would be nice to limit the number of total concepts. Also they have quite different responsibilities, so it might be fine to keep them separate. Any thoughts @cfallin?

Interestingly, this PR started as removingRegInfo from the TargetIsa trait since the adapter returned a dummy value there. From the fallout, noticed that all Display implementations didn't needed an ISA anymore (since these were only used to render ISA specific registers). Also the whole family of RegInfo / ValueLoc / RegUnit was exclusively used for the old backend, and these could be removed. Notably, some IR instructions needed to be removed, because they were using RegUnit too: this was the oddball of regfill / regmove / regspill / copy_special, which were IR instructions inserted by the old regalloc. Fare thee well!

(feel free to squash the commits before merging, the history of this PR is a bit messy right now)

view this post on Zulip Wasmtime GitHub notifications bot (Sep 30 2021 at 23:58):

cfallin submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 01 2021 at 04:49):

bjorn3 submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 01 2021 at 04:49):

bjorn3 created PR review comment:

Can you directly implement Display for Signature?

view this post on Zulip Wasmtime GitHub notifications bot (Oct 01 2021 at 04:50):

bjorn3 edited PR review comment.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 01 2021 at 04:51):

bjorn3 submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 01 2021 at 04:51):

bjorn3 created PR review comment:

Same

view this post on Zulip Wasmtime GitHub notifications bot (Oct 01 2021 at 04:58):

bjorn3 submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 01 2021 at 04:58):

bjorn3 created PR review comment:

I think I use this in cg_clif.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 01 2021 at 05:00):

bjorn3 edited PR review comment.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 01 2021 at 05:03):

bjorn3 submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 01 2021 at 05:03):

bjorn3 created PR review comment:

Same re Display.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 04 2021 at 07:54):

bnjbvr submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 04 2021 at 07:54):

bnjbvr created PR review comment:

Indeed, thanks!

view this post on Zulip Wasmtime GitHub notifications bot (Oct 04 2021 at 07:54):

bnjbvr submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 04 2021 at 07:54):

bnjbvr created PR review comment:

Kept as i.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 04 2021 at 07:54):

bnjbvr edited PR review comment.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 04 2021 at 08:03):

bnjbvr updated PR #3402 from unify-targetisa-mach-backend to main.

view this post on Zulip Wasmtime GitHub notifications bot (Oct 04 2021 at 08:36):

bnjbvr merged PR #3402.


Last updated: Dec 23 2024 at 12:05 UTC