This is an archive of the discontinued LLVM Phabricator instance.

[AA] Make ModRefInfo a bitmask enum (NFC)
ClosedPublic

Authored by nikic on Jul 31 2022, 11:31 PM.

Details

Summary

Mark ModRefInfo as a bitmask enum, which allows using normal & and | operators on it. This supersedes various functions like unionModRef() and intersectModRef(). I think this makes the code cleaner than going through helper functions...

Diff Detail

Event Timeline

nikic created this revision.Jul 31 2022, 11:31 PM
nikic requested review of this revision.Jul 31 2022, 11:31 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 31 2022, 11:31 PM
nikic updated this revision to Diff 448924.Jul 31 2022, 11:36 PM

Rebase over minor cleanup.

fhahn accepted this revision.Aug 1 2022, 8:58 AM

LGTM, thanks! Might be good to wait with committing this a day or so in case there are additional thought on the change of style.

This revision is now accepted and ready to land.Aug 1 2022, 8:58 AM
This revision was landed with ongoing or failed builds.Aug 3 2022, 1:06 AM
This revision was automatically updated to reflect the committed changes.