[Mips] MSA frontend option support
authorJack Carter <jack.carter@imgtec.com>
Mon, 12 Aug 2013 17:20:29 +0000 (17:20 +0000)
committerJack Carter <jack.carter@imgtec.com>
Mon, 12 Aug 2013 17:20:29 +0000 (17:20 +0000)
commit44ff1e567387ea143cc832682c13121833372cd4
tree8f3710be7ef58406efd0bb0481a8f338e59ed101
parent73537eac3d149f425e1c0febf03c6f2b6562ecbd
[Mips] MSA frontend option support

This patch adds -mmsa and -mno-msa to the options supported by
clang to enable and disable support for MSA.

When MSA is enabled, a predefined macro '__mips_msa' is defined to 1.

Patch by Daniel Sanders

llvm-svn: 188184
clang/include/clang/Driver/Options.td
clang/lib/Basic/Targets.cpp
clang/lib/Driver/Tools.cpp
clang/test/Driver/mips-features.c
clang/test/Preprocessor/init.c