diff options
author | Bill Seurer <seurer@linux.vnet.ibm.com> | 2015-01-12 19:35:51 +0000 |
---|---|---|
committer | Bill Seurer <seurer@linux.vnet.ibm.com> | 2015-01-12 19:35:51 +0000 |
commit | cf2c96b0f69ae4f00985761c89fd10a1fd8d3468 (patch) | |
tree | a5e7d7c4c360e61e888216331b8998461970386b /clang/lib/Parse/ParseTentative.cpp | |
parent | b6550529a62a1f47c966f33687a10b2a4dc6885a (diff) | |
download | bcm5719-llvm-cf2c96b0f69ae4f00985761c89fd10a1fd8d3468.tar.gz bcm5719-llvm-cf2c96b0f69ae4f00985761c89fd10a1fd8d3468.zip |
[PowerPC]To provide better compatibility with gcc I added the __bool keyword to the Alitivec support in clang. __bool is functionally identical to using bool when declaring vector types. For example:
vector bool char v_bc;
vector __bool char v___bc;
clang already supported vector/__vector and pixel/__pixel but was missing __bool.
http://llvm.org/bugs/show_bug.cgi?id=19220
For reference: https://gcc.gnu.org/onlinedocs/gcc-4.9.2/gcc/PowerPC-AltiVec_002fVSX-Built-in-Functions.html
http://reviews.llvm.org/D6882
llvm-svn: 225664
Diffstat (limited to 'clang/lib/Parse/ParseTentative.cpp')
-rw-r--r-- | clang/lib/Parse/ParseTentative.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Parse/ParseTentative.cpp b/clang/lib/Parse/ParseTentative.cpp index 929242f2004..abf16fa6222 100644 --- a/clang/lib/Parse/ParseTentative.cpp +++ b/clang/lib/Parse/ParseTentative.cpp @@ -992,6 +992,7 @@ Parser::isExpressionOrTypeSpecifierSimple(tok::TokenKind Kind) { case tok::kw___unaligned: case tok::kw___vector: case tok::kw___pixel: + case tok::kw___bool: case tok::kw__Atomic: case tok::kw___unknown_anytype: return TPResult::False; |