Generating Web Assembly for opt tool #81
Unanswered
talha-10xE
asked this question in
Q&A
Replies: 1 comment
-
Hi, yeah it was certainly not easy getting it a large project to work 😂 but we have a docker setup now here that will build an image that contains LLVM & MLIR libraries & binaries built for WebAssembly. You just need to copy the files you want out of it. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi! How did you generate WebAssembly for the MLIR opt tool? While it's relatively straightforward to generate .wasm files for simple C/C++ programs using Emscripten, projects like MLIR often have many files and dependencies. I tried to compile LLVM from Emscripten using emmake with the command:
emmake cmake -G "Unix Makefiles" -DLLVM_ENABLE_PROJECTS="llvm" -DCMAKE_BUILD_TYPE=Release ../llvm
However, I encountered continuous errors. Can you provide guidance on how you compiled mlir-opt using Emscripten?
Beta Was this translation helpful? Give feedback.
All reactions