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

Andy Wingo via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 2 23:40:48 PST 2021


wingo added a comment.

In D90948#2533714 <https://reviews.llvm.org/D90948#2533714>, @wingo wrote:

>> - All feature detection happens in codegen, not in object writing.
>
> Yes, for `call_indirect`.   But when we emit a function pointer at the MC layer -- either in data or in code -- we need that to cause the function table to be present.  For function pointers in code, i think we can find the feature set just fine, so that for reftypes we cause a symtab entry to be emitted for the function table.  But for function pointers in data I don't know a good way to do feature detection; do you have any ideas here?

Gentle ping regarding this point -- this is why I was mucking with features in the writer.  I plan on having another look in lowering but if you have other ideas they are welcome.


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