[clang] [lld] [llvm] [WebAssembly] Emit constant initializers for addrspace(1) globals (PR #212007)

Yuta Saito via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 28 02:31:19 PDT 2026


================
@@ -28,6 +28,7 @@ class MCSymbolWasm : public MCSymbol {
   wasm::WasmSignature *Signature = nullptr;
   std::optional<wasm::WasmGlobalType> GlobalType;
   std::optional<wasm::WasmTableType> TableType;
+  std::optional<uint64_t> GlobalInitValue;
----------------
kateinoigakukun wrote:

Please define a dedicated type instead of using `uint64_t` as the init expr storage because it's not extensible for v128 and extended const arithmetic. 

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


More information about the cfe-commits mailing list