GCC allows case-insensitive values for -mcpu, -march and -mtune options.
This patch implements the same behaviour for the -mcpu option.
This is a new version of r236859, which has been reverted due to test failures
in the AArch64 code path when running on 32 ARM buildbot.
I separated the ARM code path into this patch, while debugging the AArch64 failures.
Don't you need to change the type in the callers, too? Otherwise, the StringRef will refer to a temp variable that may disappear until it's used.