This is an archive of the discontinued LLVM Phabricator instance.

[Attributor][NFC] Expose new API in AAPointerInfo
ClosedPublic

Authored by jdoerfert on Feb 8 2022, 7:45 AM.

Details

Summary

New users might want to check bins without a load or store instruction
at hand. Since we use those instructions only to find the offset and
size of the access anyway, we can expose an offset and size interface
to the outside world as well.

This commit mainly moves code around and exposes a class (OffsetAndSize)
as well as a method forallInterferingAccesses in AAPointerInfo.

Diff Detail

Event Timeline

jdoerfert created this revision.Feb 8 2022, 7:45 AM
jdoerfert requested review of this revision.Feb 8 2022, 7:45 AM
Herald added a reviewer: baziotis. · View Herald Transcript
Herald added a project: Restricted Project. · View Herald Transcript
Herald added a subscriber: wdng. · View Herald Transcript
ormris removed a subscriber: ormris.Feb 8 2022, 9:44 AM
arsenm added inline comments.Feb 8 2022, 6:48 PM
llvm/include/llvm/Transforms/IPO/Attributor.h
4827

Why not just -1

arsenm accepted this revision.Feb 8 2022, 6:49 PM

LGTM since this is just moving code, but I don't understand using 1<<31 as the invalid value for a 64-bit size/offset

This revision is now accepted and ready to land.Feb 8 2022, 6:49 PM
jdoerfert added inline comments.Feb 9 2022, 12:39 AM
llvm/include/llvm/Transforms/IPO/Attributor.h
4827

I'll change it, don't ask me how I ended up with it.

This revision was landed with ongoing or failed builds.Feb 10 2022, 11:54 AM
This revision was automatically updated to reflect the committed changes.