[PATCH] D82130: [WebAssembly] Adding 64-bit versions of __stack_pointer and other globals
Derek Schuff via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 22 15:35:53 PDT 2020
dschuff added a comment.
So the code LGTM, were you going to add to usertest.ll in this CL?
================
Comment at: llvm/lib/Target/WebAssembly/WebAssemblyMCInstLower.cpp:84
WasmSym->setGlobalType(wasm::WasmGlobalType{
- uint8_t(Subtarget.hasAddr64() ? wasm::WASM_TYPE_I64
- : wasm::WASM_TYPE_I32),
+ uint8_t(Subtarget.hasAddr64() && strcmp(Name, "__table_base") != 0
+ ? wasm::WASM_TYPE_I64
----------------
aardappel wrote:
> dschuff wrote:
> > should __table_base stay as i32?
> I'd think so, right? since it refers to table indices, not memory
Oh, right; I'd misread this as setting it just for table_base but I had it backwards; it's exempting table_base. So yeah this is right.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D82130/new/
https://reviews.llvm.org/D82130
More information about the llvm-commits
mailing list