bnjbvr opened PR #3402 from unify-targetisa-mach-backend
to main
:
This also paves the way for unifying
TargetIsa
andMachBackend
, 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 removing
RegInfo
from theTargetIsa
trait since the adapter returned a dummy value there. From the fallout, noticed that allDisplay
implementations didn't needed an ISA anymore (since these were only used to render ISA specific registers). Also the whole family ofRegInfo
/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 usingRegUnit
too: this was the oddball ofregfill
/regmove
/regspill
/copy_special
, which were IR instructions inserted by the old regalloc. Fare thee well!
bnjbvr edited PR #3402 from unify-targetisa-mach-backend
to main
:
This also paves the way for unifying
TargetIsa
andMachBackend
, 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 removing
RegInfo
from theTargetIsa
trait since the adapter returned a dummy value there. From the fallout, noticed that allDisplay
implementations didn't needed an ISA anymore (since these were only used to render ISA specific registers). Also the whole family ofRegInfo
/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 usingRegUnit
too: this was the oddball ofregfill
/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)
cfallin submitted PR review.
bjorn3 submitted PR review.
bjorn3 created PR review comment:
Can you directly implement Display for Signature?
bjorn3 edited PR review comment.
bjorn3 submitted PR review.
bjorn3 created PR review comment:
Same
bjorn3 submitted PR review.
bjorn3 created PR review comment:
I think I use this in cg_clif.
bjorn3 edited PR review comment.
bjorn3 submitted PR review.
bjorn3 created PR review comment:
Same re Display.
bnjbvr submitted PR review.
bnjbvr created PR review comment:
Indeed, thanks!
bnjbvr submitted PR review.
bnjbvr created PR review comment:
Kept as i.
bnjbvr edited PR review comment.
bnjbvr updated PR #3402 from unify-targetisa-mach-backend
to main
.
bnjbvr merged PR #3402.
Last updated: Nov 22 2024 at 16:03 UTC