diff options
author | Sjoerd Meijer <sjoerd.meijer@arm.com> | 2017-09-08 09:42:32 +0000 |
---|---|---|
committer | Sjoerd Meijer <sjoerd.meijer@arm.com> | 2017-09-08 09:42:32 +0000 |
commit | b9fefa5ec7a31eebaa84c4938ec7efff89db9972 (patch) | |
tree | 965d4731c80416987844ecd89059b090df436c41 /include/clang/AST/BuiltinTypes.def | |
parent | 62fdde37170e9e52f53bd71e0eb5572558531103 (diff) |
Add _Float16 as a C/C++ source language type
This adds _Float16 as a source language type, which is a 16-bit floating point
type defined in C11 extension ISO/IEC TS 18661-3.
In follow up patches documentation and more tests will be added.
Differential Revision: https://reviews.llvm.org/D33719
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@312781 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/AST/BuiltinTypes.def')
-rw-r--r-- | include/clang/AST/BuiltinTypes.def | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/clang/AST/BuiltinTypes.def b/include/clang/AST/BuiltinTypes.def index 181131aba0..e4f5f7db2f 100644 --- a/include/clang/AST/BuiltinTypes.def +++ b/include/clang/AST/BuiltinTypes.def @@ -133,6 +133,9 @@ FLOATING_TYPE(Double, DoubleTy) // 'long double' FLOATING_TYPE(LongDouble, LongDoubleTy) +// '_Float16' +FLOATING_TYPE(Float16, HalfTy) + // '__float128' FLOATING_TYPE(Float128, Float128Ty) |