[clang] [lld] [llvm] [WebAssembly] Emit constant initializers for addrspace(1) globals (PR #212007)
Yuta Saito via cfe-commits
cfe-commits at lists.llvm.org
Sun Oct 11 22:39:24 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:
Considering link-time relocations on init expressions, I think `wasm::WasmInitExpr`, which just holds instruction bytes, might not be sufficient. Maybe `MCExpr` fits better?
https://github.com/llvm/llvm-project/pull/212007
More information about the cfe-commits
mailing list