This is an archive of the discontinued LLVM Phabricator instance.

Refactor getMipsEFlags.
ClosedPublic

Authored by ruiu on Aug 7 2016, 2:50 PM.

Details

Summary

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.

Diff Detail

Repository
rL LLVM

Event Timeline

ruiu updated this revision to Diff 67104.Aug 7 2016, 2:50 PM
ruiu retitled this revision from to Refactor getMipsEFlags..
ruiu updated this object.
ruiu added a reviewer: atanasyan.
ruiu added a subscriber: llvm-commits.
ruiu updated this revision to Diff 67105.Aug 7 2016, 2:53 PM
  • Fixed a minor bug.
atanasyan accepted this revision.Aug 7 2016, 9:57 PM
atanasyan edited edge metadata.

LGTM. Thanks.

This revision is now accepted and ready to land.Aug 7 2016, 9:57 PM
This revision was automatically updated to reflect the committed changes.