Stream: git-wasmtime

Topic: wasmtime / PR #4399 Implement `iabs` in ISLE (AArch64)


view this post on Zulip Wasmtime GitHub notifications bot (Jul 07 2022 at 13:57):

dheaton-arm opened PR #4399 from isle-iabs to main:

Converts the existing implementation of iabs for AArch64 into ISLE,
and fixes support for iabs on scalar values.

Copyright (c) 2022 Arm Limited.

<!--

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 (Jul 07 2022 at 15:10):

alexcrichton submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 07 2022 at 15:10):

alexcrichton created PR review comment:

Just a drive-by-comment from me, but I think that the intention is that while this technically works today we'd one day like to add a "chaos mode" of sorts to ISLE selection where any matching rule can be chosen for a lowering. In that sense iabs with an i64 result would match this rule but it's not valid to match this rule since it only works for vectors. I think that this would probably be best to have a matcher/extractor of some sort for the ty here like multi_lane (or ideally something like multi_integer_lane to avoid matching f64x2 but I don't think we have that yet)

view this post on Zulip Wasmtime GitHub notifications bot (Jul 07 2022 at 17:33):

cfallin created PR review comment:

Yep, this is a somewhat persistent subtle issue to keep in mind, sorry @dheaton-arm -- each rule has to be correct on its own. One can use rule priorities to make one rule semantically shadowed by others though; that's probably the easiest approach here. So (rule -1 (lower (has_type ty ...))) (lower numbers are lower priority).

view this post on Zulip Wasmtime GitHub notifications bot (Jul 07 2022 at 17:33):

cfallin submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 13 2022 at 14:33):

dheaton-arm updated PR #4399 from isle-iabs to main.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 18 2022 at 18:12):

cfallin submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Jul 18 2022 at 18:12):

cfallin merged PR #4399.


Last updated: Dec 23 2024 at 12:05 UTC