[PATCH] D90948: [WebAssembly] call_indirect issues table number relocs

Andy Wingo via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 28 00:30:01 PST 2021


wingo added a comment.

Just to be clear -- here is my use case.

https://github.com/Igalia/ref-cpp/blob/master/milestones/m3/test.S#L76

WAT version here:

https://github.com/Igalia/ref-cpp/blob/master/milestones/m3/test.wat#L47

Basically I am implementing a side table mapping externref to index, in webassembly instead of in JS.  I want to have named table symbols so I can have different mappings, and to be able to table.get / table.set / etc on them, but to do this I need to solve the table linking problem.  But to solve table linking I had to fix call_indirect.  That's why I'm here.  I can see how address spaces may relate to this on an IR level, but on the MC level (where I am right now) I think I can probably ignore it.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D90948/new/

https://reviews.llvm.org/D90948



More information about the llvm-commits mailing list