This is an archive of the discontinued LLVM Phabricator instance.

[mips] Remove trivial header files of various passes. NFC.
AbandonedPublic

Authored by vkalintiris on Feb 23 2015, 1:49 PM.

Details

Reviewers
dsanders
Summary

Remove the headers of the passes: MipsOs16, Mips16HardFloat &
MipsModuleISelDagToDag. Provide the definition and implementation of the
correspondent classes from a single source file. This way we avoid cluttering
the Mips directory with needlesss headers. No functional change intended.

Diff Detail

Event Timeline

vkalintiris retitled this revision from to [mips] Remove header files for MipsOs16 & Mips16HardFloat passes. NFC..
vkalintiris updated this object.
vkalintiris edited the test plan for this revision. (Show Details)
vkalintiris added a reviewer: dsanders.
vkalintiris added a subscriber: Unknown Object (MLST).
vkalintiris retitled this revision from [mips] Remove header files for MipsOs16 & Mips16HardFloat passes. NFC. to [mips] Remove trivial header files of various passes. NFC..
vkalintiris updated this object.

Remove MipsModuleISelDagToDag's header file too.

Forgot to remove the MipsModuleISelDagToDag's header from the initial review
request.

In general this patch should be split up across things that sound like a good incremental fixup. It's a lot of stuff right now. I.e. you could probably split it up on a pass by pass basis and then the target machine bits as a final one.

One nit I saw inline.

-eric

lib/Target/Mips/Mips16HardFloat.cpp
16

Standard headers go last.

dsanders edited edge metadata.Mar 2 2015, 6:52 AM

The total changes LGTM (with the include order nit) but I agree that this ought to be multiple commits. Eric's suggestion for splitting it up makes sense to me.

vkalintiris abandoned this revision.Mar 14 2015, 2:38 AM

Submitted in 3 separate commits: r232258, r232259 and r232260.
Thanks for the review.

lib/Target/Mips/MipsModuleISelDAGToDAG.cpp