[PATCH] D118122: [WebAssembly] Refactor and fix emission of external IR global decls
Paulo Matos via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 3 06:44:11 PST 2022
pmatos added a comment.
I confirmed with Anton K. in discord that indeed it's not possible to obtain a `TLI` outside a function, because a function can change the subtarget. Apparently ARM allows this with ARM vs Thumb functions being defined in the same file.
That means that we either reimplement `computeLegalValueVTs` such that it doesn't need to call `TLI.getNumRegisters` nor `TLI.getRegisterType()`, or find a way not to call it at all. I am continuing my investigation.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D118122/new/
https://reviews.llvm.org/D118122
More information about the llvm-commits
mailing list