back

by dochtman·13y ago·view on hn ↗
So will there be code to turn LLVM IR into asm.js stuff? That would be pretty awesome (and a nice way to make Emscripten more accessible to other languages?).
2 comments
> So will there be code to turn LLVM IR into asm.js stuff?

There already is, that is precisely what emscripten does when run with the ASM_JS=1 flag set. Emscripten's input is LLVM IR, not C or C++. (Although, it has been mostly tested on LLVM IR generated from clang that was given C or C++.)

Emscripten is trying to move their backend into LLVM which would accomplish the same thing.