[CodeGen] Refactor MachineMemOperand::Flags's target-specific flags.
authorJustin Lebar <jlebar@google.com>
Thu, 14 Jul 2016 18:15:20 +0000 (18:15 +0000)
committerJustin Lebar <jlebar@google.com>
Thu, 14 Jul 2016 18:15:20 +0000 (18:15 +0000)
commit288b3376aea428ba90aaf789725b85f65ba0b3e9
tree8e192b4bd873044045ead720d3d1f186656187a1
parent1e6416151fa5c8fef6c1dd70e5caca64a599d782
[CodeGen] Refactor MachineMemOperand::Flags's target-specific flags.

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.

Reviewers: MatzeB

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D22372

llvm-svn: 275451
llvm/include/llvm/CodeGen/MachineMemOperand.h
llvm/lib/CodeGen/MachineInstr.cpp
llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
llvm/lib/Target/AArch64/AArch64InstrInfo.h