ideas icon indicating copy to clipboard operation
ideas copied to clipboard

LLVM frontend for WASM

Open KOLANICH opened this issue 6 years ago • 5 comments

Project description

There are some tools converting LLVM IR/bitcode into WASM modules. But I have not found any doing the inverse task: converting WASM modules into LLVM IR/bitcode, though the idea seems to be obvious.

There is some demand on these tools. Some even develop VMs interpreting WASM code, but it is loss of performance.

Relevant Technology

[Write what technology is relevant. What language, what platform, any particular library/framework/existing project it is based on?]

Complexity and required time

[Please only tick off one box in each category by changing [ ] to [x]. The labels on the project will then be updated by the maintainers as soon as possible.]

Complexity

Cannot estimate.

Required time (ETA)

Cannot estimatte.

KOLANICH avatar Feb 02 '19 16:02 KOLANICH

I was thinking, what about an online wasm compiler / repl, I mean you are already on the browser, so why not!

Kreijstal avatar Mar 03 '19 17:03 Kreijstal

I was thinking, what about an online wasm compiler / repl, I mean you are already on the browser, so why not!

Completely different task.

Online compiler proposed in #160 is just a CLang + LLVM + emscripten built into wasm + some GUI for that.

Here other thing is proposed.

I mean you are already on the browser

Wasm modules are not tied to browser and can be used separately.

KOLANICH avatar Mar 04 '19 07:03 KOLANICH

So you want a disassembler for WASM bytecode into LLVM IR?

That seems to exist for x86 so why not indeed.

remram44 avatar Mar 09 '19 18:03 remram44

This would be interesting! It could be a way to compile WebAssembly to native.

trusktr avatar Aug 05 '21 07:08 trusktr

A nice work on the topic https://github.com/gwsystems/aWsm :)

Jacarte avatar Aug 05 '21 09:08 Jacarte