This is an archive of the discontinued LLVM Phabricator instance.

[PM/AA] Extract the ModRef enums from the AliasAnalysis class in preparation for de-coupling the AA implementations.
ClosedPublic

Authored by chandlerc on Jun 19 2015, 2:08 AM.

Details

Summary

In order to do this, they had to become fake-scoped using the
traditional LLVM pattern of a leading initialism. These can't be actual
scoped enumerations because they're bitfields and thus inherently we use
them as integers.

I've also renamed the behavior enums that are specific to reasoning
about the mod/ref behavior of functions when called. This makes it more
clear that they have a very narrow domain of applicability.

I think there is a significantly cleaner API for all of this, but
I don't want to try to do really substantive changes for now, I just
want to refactor the things away from analysis groups so I'm preserving
the exact original design and just cleaning up the names, style, and
lifting out of the class.

Depends on D10494
Depends on D10495

Diff Detail

Repository
rL LLVM

Event Timeline

chandlerc updated this revision to Diff 28010.Jun 19 2015, 2:08 AM
chandlerc retitled this revision from to [PM/AA] Extract the ModRef enums from the AliasAnalysis class in preparation for de-coupling the AA implementations..
chandlerc updated this object.
chandlerc edited the test plan for this revision. (Show Details)
chandlerc added a subscriber: Unknown Object (MLST).

I know this is a large patch, but it is entirely mechanical.

This revision was automatically updated to reflect the committed changes.