File tree Expand file tree Collapse file tree 4 files changed +17
-5
lines changed Expand file tree Collapse file tree 4 files changed +17
-5
lines changed Original file line number Diff line number Diff line change @@ -2121,6 +2121,8 @@ def __repr__(self):
2121
2121
TypeKind .OCLQUEUE = TypeKind (159 )
2122
2122
TypeKind .OCLRESERVEID = TypeKind (160 )
2123
2123
2124
+ TypeKind .EXTVECTOR = TypeKind (176 )
2125
+
2124
2126
class RefQualifierKind (BaseEnumeration ):
2125
2127
"""Describes a specific ref-qualifier of a type."""
2126
2128
Original file line number Diff line number Diff line change 32
32
* compatible, thus CINDEX_VERSION_MAJOR is expected to remain stable.
33
33
*/
34
34
#define CINDEX_VERSION_MAJOR 0
35
- #define CINDEX_VERSION_MINOR 54
35
+ #define CINDEX_VERSION_MINOR 55
36
36
37
37
#define CINDEX_VERSION_ENCODE (major , minor ) ( \
38
38
((major) * 10000) \
@@ -3315,7 +3315,9 @@ enum CXTypeKind {
3315
3315
CXType_OCLIntelSubgroupAVCImeResultDualRefStreamout = 173 ,
3316
3316
CXType_OCLIntelSubgroupAVCImeSingleRefStreamin = 174 ,
3317
3317
3318
- CXType_OCLIntelSubgroupAVCImeDualRefStreamin = 175
3318
+ CXType_OCLIntelSubgroupAVCImeDualRefStreamin = 175 ,
3319
+
3320
+ CXType_ExtVector = 176
3319
3321
};
3320
3322
3321
3323
/**
Original file line number Diff line number Diff line change @@ -17,11 +17,11 @@ void kernel testFloatTypes() {
17
17
}
18
18
19
19
// CHECK: VarDecl=scalarHalf:11:8 (Definition){{( \(invalid\))?}} [type=half] [typekind=Half] [isPOD=1]
20
- // CHECK: VarDecl=vectorHalf:12:9 (Definition) [type=half4] [typekind=Typedef] [canonicaltype=half __attribute__((ext_vector_type(4)))] [canonicaltypekind=Unexposed ] [isPOD=1]
20
+ // CHECK: VarDecl=vectorHalf:12:9 (Definition) [type=half4] [typekind=Typedef] [canonicaltype=half __attribute__((ext_vector_type(4)))] [canonicaltypekind=ExtVector ] [isPOD=1]
21
21
// CHECK: VarDecl=scalarFloat:13:9 (Definition) [type=float] [typekind=Float] [isPOD=1]
22
- // CHECK: VarDecl=vectorFloat:14:10 (Definition) [type=float4] [typekind=Typedef] [canonicaltype=float __attribute__((ext_vector_type(4)))] [canonicaltypekind=Unexposed ] [isPOD=1]
22
+ // CHECK: VarDecl=vectorFloat:14:10 (Definition) [type=float4] [typekind=Typedef] [canonicaltype=float __attribute__((ext_vector_type(4)))] [canonicaltypekind=ExtVector ] [isPOD=1]
23
23
// CHECK: VarDecl=scalarDouble:15:10 (Definition){{( \(invalid\))?}} [type=double] [typekind=Double] [isPOD=1]
24
- // CHECK: VarDecl=vectorDouble:16:11 (Definition){{( \(invalid\))?}} [type=double4] [typekind=Typedef] [canonicaltype=double __attribute__((ext_vector_type(4)))] [canonicaltypekind=Unexposed ] [isPOD=1]
24
+ // CHECK: VarDecl=vectorDouble:16:11 (Definition){{( \(invalid\))?}} [type=double4] [typekind=Typedef] [canonicaltype=double __attribute__((ext_vector_type(4)))] [canonicaltypekind=ExtVector ] [isPOD=1]
25
25
26
26
#pragma OPENCL EXTENSION cl_khr_gl_msaa_sharing : enable
27
27
Original file line number Diff line number Diff line change @@ -109,6 +109,7 @@ static CXTypeKind GetTypeKind(QualType T) {
109
109
TKCASE (VariableArray);
110
110
TKCASE (DependentSizedArray);
111
111
TKCASE (Vector);
112
+ TKCASE (ExtVector);
112
113
TKCASE (MemberPointer);
113
114
TKCASE (Auto);
114
115
TKCASE (Elaborated);
@@ -600,6 +601,7 @@ CXString clang_getTypeKindSpelling(enum CXTypeKind K) {
600
601
TKIND (VariableArray);
601
602
TKIND (DependentSizedArray);
602
603
TKIND (Vector);
604
+ TKIND (ExtVector);
603
605
TKIND (MemberPointer);
604
606
TKIND (Auto);
605
607
TKIND (Elaborated);
@@ -804,6 +806,9 @@ CXType clang_getElementType(CXType CT) {
804
806
case Type::Vector:
805
807
ET = cast<VectorType> (TP)->getElementType ();
806
808
break ;
809
+ case Type::ExtVector:
810
+ ET = cast<ExtVectorType>(TP)->getElementType ();
811
+ break ;
807
812
case Type::Complex:
808
813
ET = cast<ComplexType> (TP)->getElementType ();
809
814
break ;
@@ -827,6 +832,9 @@ long long clang_getNumElements(CXType CT) {
827
832
case Type::Vector:
828
833
result = cast<VectorType> (TP)->getNumElements ();
829
834
break ;
835
+ case Type::ExtVector:
836
+ result = cast<ExtVectorType>(TP)->getNumElements ();
837
+ break ;
830
838
default :
831
839
break ;
832
840
}
You can’t perform that action at this time.
0 commit comments