Stream: git-wasmtime

Topic: wasmtime / PR #4697 Cranelift: Remove the `LowerCtx` trait


view this post on Zulip Wasmtime GitHub notifications bot (Aug 11 2022 at 22:33):

fitzgen requested cfallin for a review on PR #4697.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 11 2022 at 22:33):

fitzgen opened PR #4697 from no-more-local-ctx-trait to main:

The trait had only one implementation: the Lower struct. It is easier to just
use that directly, and not introduce unnecessary layers of generics and
abstractions.

Once upon a time, there was hope that we would have other implementations of the
LowerCtx trait, that did things like lower CLIF to SMTLIB for
verification. However, this is not practical these days given the way that the
trait has evolved over time, and our verification efforts are focused on ISLE
now anyways, and we're actually making some progress on that front (much more
than anyone ever did on a second LowerCtx trait implementation!)

<!--

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 (Aug 11 2022 at 22:43):

cfallin submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 11 2022 at 22:43):

cfallin created PR review comment:

FWIW, I found these "section headers" kind of useful when I spent more time looking at the lowering API. Could we keep them around by making them doc-comments on separate impl blocks? Something like:

/// Function-level query API on Lower.
impl Lower { ... }

/// Instruction-level query API on Lower.
impl Lower { ... }

/// Instruction input/output query API on Lower.
impl Lower { ... }

/// Codegen action API on Lower.
impl Lower { ... }

view this post on Zulip Wasmtime GitHub notifications bot (Aug 11 2022 at 22:43):

cfallin submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 11 2022 at 23:00):

fitzgen updated PR #4697 from no-more-local-ctx-trait to main.

view this post on Zulip Wasmtime GitHub notifications bot (Aug 11 2022 at 23:54):

fitzgen merged PR #4697.


Last updated: Oct 23 2024 at 20:03 UTC