This is an archive of the discontinued LLVM Phabricator instance.

[WebAssembly] Support opaque pointers in AddMissingPrototypes
ClosedPublic

Authored by nikic on Sep 3 2021, 1:01 PM.

Details

Summary

The change here is basically the same as in 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.

Diff Detail

Event Timeline

nikic created this revision.Sep 3 2021, 1:01 PM
nikic requested review of this revision.Sep 3 2021, 1:01 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 3 2021, 1:01 PM
tlively accepted this revision.Sep 3 2021, 5:32 PM

LGTM

llvm/lib/Target/WebAssembly/WebAssemblyAddMissingPrototypes.cpp
119

This lint looks like a real fix.

This revision is now accepted and ready to land.Sep 3 2021, 5:32 PM
This revision was landed with ongoing or failed builds.Sep 4 2021, 2:32 AM
This revision was automatically updated to reflect the committed changes.