Stream: git-wasmtime

Topic: wasmtime / issue #12363 Support platform-defined intrinsi...


view this post on Zulip Wasmtime GitHub notifications bot (Jan 15 2026 at 23:04):

alexcrichton opened issue #12363:

This is an issue which proposes adding the concept of platform-defined intrinsics to Cranelift. This is in contrast to today's IR where any functionality must be modeled as a CLIF instruction with precise semantics. The downside of today's situation is that there's a loose expectation that all CLIF instructions are implemented on all platforms (in the limit at least). There are a variety of ways to achieve this and improve on the current situation, but this doesn't map well to a number of scenarios:

Overall while a platform-defined intrinsic is not the best fit for all functionality I personally at least believe that it's a good fit for some functionality still. There's currently no real mechanism by which today Cranelift can support platform-specific intrinsics, and that's what this issue is proposing. What I'd roughly envision for something in Cranelift is along these lines:

I'm not aware of a burning desire for any particular intrinsic at this time as most desirable instructions right now fit pretty well into CLIF as-is, but wanted to write down this issue nonetheless.

view this post on Zulip Wasmtime GitHub notifications bot (Jan 15 2026 at 23:04):

alexcrichton added the cranelift label to Issue #12363.


Last updated: Jan 29 2026 at 13:25 UTC