This is an archive of the discontinued LLVM Phabricator instance.

Allow case-insensitive values for -mcpu for AArch64 target in line with GCC.
ClosedPublic

Authored by enefaim on Jun 12 2015, 8:27 AM.

Details

Summary

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

Diff Detail

Repository
rL LLVM

Event Timeline

enefaim updated this revision to Diff 27578.Jun 12 2015, 8:27 AM
enefaim retitled this revision from to Allow case-insensitive values for -mcpu for AArch64 target 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).

I have one comment about a missing regression test, but otherwise this patch seems fine to me. I understand the previous version broke the ARM bot, so I will let Renato have last say.

test/Driver/aarch64-cpus.c
114

It seems your patch also allows mixed case in the +feature part of the argument. This is in line with GCC 4.9, but I would expect a regression test checking that here.

enefaim updated this revision to Diff 27583.Jun 12 2015, 10:04 AM
enefaim edited edge metadata.

New in this version:

  • Added tests for the +feature part of -mcpu.
rengolin accepted this revision.Jun 12 2015, 10:31 AM
rengolin edited edge metadata.

The ARM side should be fixed already. LGTM. Thanks!

Let's see what the bots think about it... :)

This revision is now accepted and ready to land.Jun 12 2015, 10:31 AM
enefaim closed this revision.Jun 12 2015, 10:39 AM

r239619