I’m wondering if it is possible to generate IR using Javascript/Typescript, and pass that IR to a version of LLVM compiled as WASM, to generate WASM, all in the browser, purely client side?
Or more advanced, generate C/C++ source code in Javascript, and then compile with a clang compiler compiled to WASM, generating WASM, again purely client side.
If feasible, what would be the best way to start?
Thanks for the feedback!