[clang] [lld] [llvm] [lld][WebAssembly][Clang][MC] WASIP3 and component model threading support (PR #175800)

Sam Clegg via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 17 15:01:27 PST 2026


================
@@ -50,9 +51,12 @@ enum class BuildIdKind { None, Fast, Sha1, Hexstring, Uuid };
 // and such fields have the same name as the corresponding options.
 // Most fields are initialized by the driver.
 struct Config {
+  bool isMultithreaded() const { return sharedMemory || componentModelThreadContext; }
----------------
sbc100 wrote:

I find this rather confusing since I normally think of multi-threading as absolutely requiring shared memory.

I'd need to look at how `isMultithreaded` is used, but maybe it should be more like `isGreenThreaded`?   I'm not sure yet.

https://github.com/llvm/llvm-project/pull/175800


More information about the cfe-commits mailing list