This is an archive of the discontinued LLVM Phabricator instance.

[Attributor] Use MemoryLocation to get pointer operand and accessed type (NFCI)
ClosedPublic

Authored by nikic on Jan 21 2022, 3:15 AM.

Details

Summary

This relies on existing APIs and avoids accessing the pointer element type. The alternative would be to extend getPointerOperand() to also return the accessed type, but I figured going through MemoryLocation would be cleaner.

Diff Detail

Event Timeline

nikic created this revision.Jan 21 2022, 3:15 AM
nikic requested review of this revision.Jan 21 2022, 3:15 AM
Herald added a reviewer: sstefan1. · View Herald Transcript
Herald added a reviewer: baziotis. · View Herald Transcript
Herald added a project: Restricted Project. · View Herald Transcript
jdoerfert accepted this revision.Jan 22 2022, 9:00 AM

LG, assuming all tests pass. Clang format please.

This revision is now accepted and ready to land.Jan 22 2022, 9:00 AM
This revision was landed with ongoing or failed builds.Jan 24 2022, 1:13 AM
This revision was automatically updated to reflect the committed changes.