6 ms·
Almost. But it isn't quite so simple that any compiler using LLVM could benefit. For example, if a language uses a feature like GC, but that isn't supported by
by azakai 11y ago
Almost. But it isn't quite so simple that any compiler using LLVM could benefit.
For example, if a language uses a feature like GC, but that isn't supported by a target, then that can't work.
Also, the frontend needs to emit code for the new target. That might be as easy as switching it from "x86" to "wasm", but if say a language only knows how to emit 64-bit LLVM IR, that won't work in a 32-bit target machine.
But aside from issues like those, having an LLVM backend for wasm in upstream will make it very easy for suitable LLVM-using projects to target wasm, and that is the goal here.