[mips] Support `micromips` attribute
authorSimon Atanasyan <simon@atanasyan.com>
Mon, 22 May 2017 12:47:43 +0000 (12:47 +0000)
committerSimon Atanasyan <simon@atanasyan.com>
Mon, 22 May 2017 12:47:43 +0000 (12:47 +0000)
commit2c87f5341dd0e0614d5b1e423e3dc1168cfedf44
tree935bee54cec40e178dcaf8c58700ae436f4a72a3
parente0b726f2fa4b9881e088c040791bb61b10b96632
[mips] Support `micromips` attribute

This patch adds support for the `micromips` and `nomicromips` attributes
for MIPS targets.

Differential revision: https://reviews.llvm.org/D33363

llvm-svn: 303546
clang/include/clang/Basic/Attr.td
clang/include/clang/Basic/AttrDocs.td
clang/lib/CodeGen/TargetInfo.cpp
clang/lib/Sema/SemaDeclAttr.cpp
clang/test/CodeGen/micromips-attr.c [new file with mode: 0644]
clang/test/Misc/pragma-attribute-supported-attributes-list.test
clang/test/Sema/attr-micromips.c [new file with mode: 0644]