This is an archive of the discontinued LLVM Phabricator instance.

[CodeGen] Refactor MachineMemOperand::Flags's target-specific flags.
ClosedPublic

Authored by jlebar on Jul 14 2016, 11:08 AM.

Details

Summary

Make the target-specific flags in MachineMemOperand::Flags real, bona
fide enum values. This simplifies users, prevents various constants
from going out of sync, and avoids the false sense of security provided
by declaring static members in classes and then forgetting to define
them inside of cpp files.

Diff Detail

Repository
rL LLVM

Event Timeline

jlebar updated this revision to Diff 64011.Jul 14 2016, 11:08 AM
jlebar retitled this revision from to [CodeGen] Refactor MachineMemOperand::Flags's target-specific flags..
jlebar updated this object.
jlebar added a reviewer: MatzeB.
jlebar added a subscriber: llvm-commits.
MatzeB accepted this revision.Jul 14 2016, 11:19 AM
MatzeB edited edge metadata.

LGTM

This revision is now accepted and ready to land.Jul 14 2016, 11:19 AM
This revision was automatically updated to reflect the committed changes.