This is an archive of the discontinued LLVM Phabricator instance.

Allow subclassing ExternalAA
ClosedPublic

Authored by arsenm on Sep 9 2018, 6:49 PM.

Details

Reviewers
chandlerc
hfinkel
Summary

This allows testing AMDGPU alias analysis like any
other alias analysis pass. This fixes the existing
test pointlessly running opt -O3 when it really
just wants to run the one analysis.

Before there was no way to test this using -aa-eval
with opt, since the default constructed pass
is run. The wrapper subclass allows the
default constructor to pass the necessary callback.

The naming is kind of a mess with multiple "Wrapper" passes

Diff Detail

Event Timeline

arsenm created this revision.Sep 9 2018, 6:49 PM
hfinkel accepted this revision.Nov 1 2018, 9:04 AM
hfinkel added a subscriber: hfinkel.

Somewhat unfortunate amount of boilerplate for each target AA pass, but I don't have a better suggestion right now.

LGTM

This revision is now accepted and ready to land.Nov 1 2018, 9:04 AM
arsenm closed this revision.Nov 7 2018, 12:29 PM

r346353