[PATCH] D158140: WIP: [clang-repl] Basic WebAssembly support for running inside a JS engine

Anubhab Ghosh via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 16 21:43:15 PDT 2023


argentite created this revision.
Herald added subscribers: cfe-commits, pmatos, asb, sunfish, jgravelle-google, sbc100, dschuff.
Herald added projects: clang, All.
argentite requested review of this revision.
Herald added a subscriber: aheejin.

This commit introduces support for running clang-repl and executing C++
code interactively inside a Javascript engine using WebAssembly when
built with Emscripten. This is achieved by producing WASM "shared
libraries" that can be loaded by the Emscripten runtime using dlopen()


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D158140

Files:
  clang/lib/Interpreter/CMakeLists.txt
  clang/lib/Interpreter/IncrementalExecutor.cpp
  clang/lib/Interpreter/IncrementalExecutor.h
  clang/lib/Interpreter/Interpreter.cpp
  clang/lib/Interpreter/WASM.cpp
  clang/lib/Interpreter/WASM.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D158140.550991.patch
Type: text/x-patch
Size: 9235 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230817/0839e0ab/attachment.bin>


More information about the cfe-commits mailing list