HomePhabricator

Refactor getMipsEFlags.

Authored by ruiu on Aug 8 2016, 12:39 PM.

Description

Refactor getMipsEFlags.

Previously, we incrementally updated the reuslting flag as we check
file flags, so it was not very clear who is updating what flags.
This patch makes them pure functions -- that has no side effect and
don't update arguments to improve readability.

Now each function construct a patial result, and all resutls are then
bitwise-OR'ed to construct the final result.

This patch also creates a new file, Mips.cpp, to move all these
MIPS functions to a separate file.

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

llvm-svn: 278042

Details

Committed
ruiuAug 8 2016, 12:39 PM
Differential Revision
D23249: Refactor getMipsEFlags.
Parents
rG75331f7f2e31: [MemorySSA] Fix windows build breakage caused by r278028 (take 2)
Branches
Unknown
Tags
Unknown