This is an archive of the discontinued LLVM Phabricator instance.

[Mips] Handle -mips32r[3|5] / -mips64r[3|5] options while selecting lib/headers paths
ClosedPublic

Authored by atanasyan on Feb 24 2015, 11:38 PM.

Details

Reviewers
dsanders
Summary

There is no supported toolchain which provides headers / libs / object files specific to the mips32r[3|5] and mips64r[3|5] ISA. So select "r2"
specific folders when they are available.

Diff Detail

Event Timeline

atanasyan updated this revision to Diff 20655.Feb 24 2015, 11:38 PM
atanasyan retitled this revision from to [Mips] Handle -mips32r[3|5] / -mips64r[3|5] options while selecting lib/headers paths.
atanasyan updated this object.
atanasyan edited the test plan for this revision. (Show Details)
atanasyan added a reviewer: dsanders.
atanasyan set the repository for this revision to rL LLVM.
atanasyan added a subscriber: Unknown Object (MLST).
dsanders accepted this revision.Feb 25 2015, 9:21 AM
dsanders edited edge metadata.

LGTM if that's formatted how clang-format would do it. Otherwise LGTM with the formatting nit fixed.

lib/Driver/ToolChains.cpp
1786–1788

Nit: Is this what clang-format would do? I would have expected:

addMultilibFlag(
    CPUName == "mips32r2" || CPUName == "mips32r3" || CPUName == "mips32r5",
    "march=mips32r2", Flags);
This revision is now accepted and ready to land.Feb 25 2015, 9:21 AM
atanasyan closed this revision.Feb 25 2015, 8:49 PM

Thanks for review.

Closed by commit rL230611.

lib/Driver/ToolChains.cpp
1786–1788

At least the latest version of clang-format generates this indentation.