diff options
author | Sven van Haastregt <sven.vanhaastregt@arm.com> | 2019-04-17 09:08:50 +0000 |
---|---|---|
committer | Sven van Haastregt <sven.vanhaastregt@arm.com> | 2019-04-17 09:08:50 +0000 |
commit | d3aea926b7c072a026e66504bcc2186cf6ecf7f8 (patch) | |
tree | d95e6ffface0b9a415deda6b9de5c987114e695d /tools/libclang | |
parent | 07085cfb0ca4661856c4921a6ac9b5821cfe2475 (diff) | |
download | clang-d3aea926b7c072a026e66504bcc2186cf6ecf7f8.tar.gz |
[libclang] Expose ext_vector_type
Differential Revision: https://reviews.llvm.org/D60775
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@358566 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/libclang')
-rw-r--r-- | tools/libclang/CXType.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/libclang/CXType.cpp b/tools/libclang/CXType.cpp index eb2d17f0c3..4d22a5e00b 100644 --- a/tools/libclang/CXType.cpp +++ b/tools/libclang/CXType.cpp @@ -109,6 +109,7 @@ static CXTypeKind GetTypeKind(QualType T) { TKCASE(VariableArray); TKCASE(DependentSizedArray); TKCASE(Vector); + TKCASE(ExtVector); TKCASE(MemberPointer); TKCASE(Auto); TKCASE(Elaborated); @@ -600,6 +601,7 @@ CXString clang_getTypeKindSpelling(enum CXTypeKind K) { TKIND(VariableArray); TKIND(DependentSizedArray); TKIND(Vector); + TKIND(ExtVector); TKIND(MemberPointer); TKIND(Auto); TKIND(Elaborated); @@ -804,6 +806,9 @@ CXType clang_getElementType(CXType CT) { case Type::Vector: ET = cast<VectorType> (TP)->getElementType(); break; + case Type::ExtVector: + ET = cast<ExtVectorType>(TP)->getElementType(); + break; case Type::Complex: ET = cast<ComplexType> (TP)->getElementType(); break; @@ -827,6 +832,9 @@ long long clang_getNumElements(CXType CT) { case Type::Vector: result = cast<VectorType> (TP)->getNumElements(); break; + case Type::ExtVector: + result = cast<ExtVectorType>(TP)->getNumElements(); + break; default: break; } |