Stream: git-wasmtime

Topic: wasmtime / Issue #2586 x64 backend: refactor for uniform ...


view this post on Zulip Wasmtime GitHub notifications bot (Jan 14 2021 at 22:47):

cfallin opened Issue #2586:

Currently, the new x64 backend encodes operand-size information into x64::Insts in various ways, depending on the arm of the enum. We should refactor so that we use an OperandSize universally; this would cut down a bit on boilerplate and would add some clarity.

Related to that, we also have some fairly subtle logic surrounding REX-prefix emission. We should modify RexFlags so that it takes an OperandSize in its constructor, to make REX-prefix errors less likely.

view this post on Zulip Wasmtime GitHub notifications bot (Jan 27 2021 at 06:42):

kaseyc commented on Issue #2586:

Hi Chris,

From looking at inst/mod.rs refactoring Inst to use OperandSize seems straightforward enough on the surface (famous last words).

Do you mind if I take a stab at it?

view this post on Zulip Wasmtime GitHub notifications bot (Jan 27 2021 at 16:05):

bnjbvr labeled Issue #2586:

Currently, the new x64 backend encodes operand-size information into x64::Insts in various ways, depending on the arm of the enum. We should refactor so that we use an OperandSize universally; this would cut down a bit on boilerplate and would add some clarity.

Related to that, we also have some fairly subtle logic surrounding REX-prefix emission. We should modify RexFlags so that it takes an OperandSize in its constructor, to make REX-prefix errors less likely.

view this post on Zulip Wasmtime GitHub notifications bot (Jan 27 2021 at 16:05):

bnjbvr labeled Issue #2586:

Currently, the new x64 backend encodes operand-size information into x64::Insts in various ways, depending on the arm of the enum. We should refactor so that we use an OperandSize universally; this would cut down a bit on boilerplate and would add some clarity.

Related to that, we also have some fairly subtle logic surrounding REX-prefix emission. We should modify RexFlags so that it takes an OperandSize in its constructor, to make REX-prefix errors less likely.

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

cfallin commented on Issue #2586:

@kaseyc -- please do! This is a pretty well-scoped issue I think -- you should be able to change the Inst enum first and then just follow the type errors all the way. Thanks!

view this post on Zulip Wasmtime GitHub notifications bot (Feb 18 2021 at 03:27):

cfallin closed Issue #2586:

Currently, the new x64 backend encodes operand-size information into x64::Insts in various ways, depending on the arm of the enum. We should refactor so that we use an OperandSize universally; this would cut down a bit on boilerplate and would add some clarity.

Related to that, we also have some fairly subtle logic surrounding REX-prefix emission. We should modify RexFlags so that it takes an OperandSize in its constructor, to make REX-prefix errors less likely.


Last updated: Oct 23 2024 at 20:03 UTC