[PATCH] D22281: [CodeGen] Refactor MachineMemOperand's Flags enum.
Justin Lebar via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 12 15:03:20 PDT 2016
jlebar created this revision.
jlebar added a reviewer: chandlerc.
jlebar added a subscriber: llvm-commits.
- Give it a shorter name (because we're going to refer to it often from
SelectionDAG and friends).
- Specialize FlagsEnumTraits for it, so we can do bitwise ops on it
without losing type information.
- Make some enum values constants in MachineMemOperand instead.
MOMaxBits should not be a valid Flag.
- Simplify some of the bitwise ops for dealing with Flags.
http://reviews.llvm.org/D22281
Files:
include/llvm/CodeGen/MachineMemOperand.h
lib/CodeGen/MachineFunction.cpp
lib/CodeGen/MachineInstr.cpp
lib/Target/AArch64/AArch64InstrInfo.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D22281.63733.patch
Type: text/x-patch
Size: 8128 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160712/67c28cca/attachment.bin>
More information about the llvm-commits
mailing list