diff options
| author | Jack Carter <jack.carter@imgtec.com> | 2013-08-15 15:16:57 +0000 |
|---|---|---|
| committer | Jack Carter <jack.carter@imgtec.com> | 2013-08-15 15:16:57 +0000 |
| commit | 24bef98f9685e8724fe3a2a72f7e013502a0fbb6 (patch) | |
| tree | 85bd24c418052868a6321ab95cbee07eaf7cc3bb /clang/lib/AST | |
| parent | 51f358209f6104eee25296b3bb5b5c9ad7e57dee (diff) | |
| download | bcm5719-llvm-24bef98f9685e8724fe3a2a72f7e013502a0fbb6.tar.gz bcm5719-llvm-24bef98f9685e8724fe3a2a72f7e013502a0fbb6.zip | |
[Mips][msa] Add support for half
Add support for half (a.k.a. __fp16) in builtin descriptions.
The second argument to BUILTIN() now accepts 'h' to represent half.
Patch by Daniel Sanders
llvm-svn: 188464
Diffstat (limited to 'clang/lib/AST')
| -rw-r--r-- | clang/lib/AST/ASTContext.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp index f38a24811bc..29ddb37525d 100644 --- a/clang/lib/AST/ASTContext.cpp +++ b/clang/lib/AST/ASTContext.cpp @@ -7552,6 +7552,11 @@ static QualType DecodeTypeFromStr(const char *&Str, const ASTContext &Context, "Bad modifiers used with 'v'!"); Type = Context.VoidTy; break; + case 'h': + assert(HowLong == 0 && !Signed && !Unsigned && + "Bad modifiers used with 'f'!"); + Type = Context.HalfTy; + break; case 'f': assert(HowLong == 0 && !Signed && !Unsigned && "Bad modifiers used with 'f'!"); |

