This is an archive of the discontinued LLVM Phabricator instance.

Allow case-insensitive values for -march for ARM in line with GCC.
ClosedPublic

Authored by enefaim on Jun 8 2015, 12:08 PM.

Details

Summary

GCC allows case-insensitive values for -mcpu, -march and -mtune options.
This patch implements the same behaviour for the -march option for ARM.

Diff Detail

Repository
rL LLVM

Event Timeline

enefaim updated this revision to Diff 27322.Jun 8 2015, 12:08 PM
enefaim retitled this revision from to Allow case-insensitive values for -march for ARM in line with GCC..
enefaim updated this object.
enefaim edited the test plan for this revision. (Show Details)
enefaim set the repository for this revision to rL LLVM.
enefaim added a subscriber: Unknown Object (MLST).Jun 8 2015, 12:09 PM
rengolin edited edge metadata.Jun 11 2015, 5:08 AM

Hi Gabor,

Does this fix the problems we were seeing in the ARM side? Was that because we're using StringRef's instead of std::string?

cheers,
--renato

Hi Renato,

Does this fix the problems we were seeing in the ARM side? Was that because we're using StringRef's instead of std::string?

The problems in the ARM side were in the first version of the -mcpu patch, on the AArch64 code path.
This patch is the -march implementation without the AArch64 code path.
I'm still working on the AArch64 side of -mcpu and -march, trying to find a proper solution.

Thanks,
Gabor

rengolin accepted this revision.Jun 11 2015, 5:24 AM
rengolin edited edge metadata.

I see. LGTM. Thanks!

This revision is now accepted and ready to land.Jun 11 2015, 5:24 AM
enefaim closed this revision.Jun 11 2015, 5:36 AM

r239527