[PATCH] D109256: [WebAssembly] Support opaque pointers in AddMissingPrototypes

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 3 13:01:31 PDT 2021


nikic created this revision.
nikic added reviewers: opaque-pointers, tlively, aheejin.
Herald added subscribers: dexonsmith, ecnelises, sunfish, hiraditya, jgravelle-google, sbc100, dschuff.
nikic requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

The change here is basically the same as in D108880 <https://reviews.llvm.org/D108880>: Rather than looking at bitcasts, look at calls and their function type. We still need to look through bitcasts to find those calls.

The change in llvm/test/CodeGen/WebAssembly/add-prototypes-conflict.ll is due to different visitation order. add-prototypes-opaque-ptrs.ll is a copy of add-prototypes.ll with `-force-opaque-pointers`.


https://reviews.llvm.org/D109256

Files:
  llvm/lib/Target/WebAssembly/WebAssemblyAddMissingPrototypes.cpp
  llvm/test/CodeGen/WebAssembly/add-prototypes-conflict.ll
  llvm/test/CodeGen/WebAssembly/add-prototypes-opaque-ptrs.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D109256.370656.patch
Type: text/x-patch
Size: 6420 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210903/2b143b7b/attachment.bin>


More information about the llvm-commits mailing list