Home
last modified time | relevance | path

Searched refs:arrayType (Results 1 – 17 of 17) sorted by relevance

/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCodeGenFunction.cpp2221 const ArrayType *arrayType = origArrayType; in emitArrayLength() local
2226 if (isa<VariableArrayType>(arrayType)) { in emitArrayLength()
2227 numVLAElements = getVLASize(cast<VariableArrayType>(arrayType)).NumElts; in emitArrayLength()
2232 QualType elementType = arrayType->getElementType(); in emitArrayLength()
2233 arrayType = getContext().getAsArrayType(elementType); in emitArrayLength()
2236 if (!arrayType) { in emitArrayLength()
2240 } while (isa<VariableArrayType>(arrayType)); in emitArrayLength()
2261 assert(isa<ConstantArrayType>(arrayType)); in emitArrayLength()
2262 assert(cast<ConstantArrayType>(arrayType)->getZExtSize() == in emitArrayLength()
2267 eltType = arrayType->getElementType(); in emitArrayLength()
[all …]
H A DSwiftCallingConv.cpp76 auto arrayType = CGM.getContext().getAsConstantArrayType(type); in addTypedData() local
77 if (!arrayType) return; in addTypedData()
79 QualType eltType = arrayType->getElementType(); in addTypedData()
81 for (uint64_t i = 0, e = arrayType->getZExtSize(); i != e; ++i) { in addTypedData()
H A DCGDecl.cpp2326 const ArrayType *arrayType = getContext().getAsArrayType(type); in emitDestroy() local
2327 if (!arrayType) in emitDestroy()
2330 llvm::Value *length = emitArrayLength(arrayType, type, addr); in emitDestroy()
2426 while (const ArrayType *arrayType = CGF.getContext().getAsArrayType(type)) { in emitPartialArrayDestroy() local
2428 if (!isa<VariableArrayType>(arrayType)) in emitPartialArrayDestroy()
2430 type = arrayType->getElementType(); in emitPartialArrayDestroy()
H A DCGExprCXX.cpp637 if (const ArrayType *arrayType in EmitCXXConstructExpr() local
639 EmitCXXAggrConstructorCall(CD, arrayType, Dest.getAddress(), E, in EmitCXXConstructExpr()
H A DCGExpr.cpp4061 QualType *arrayType = nullptr, in emitArraySubscriptGEP() argument
4097 if (arrayType) in emitArraySubscriptGEP()
4098 DbgInfo = CGF.getDebugInfo()->getOrCreateStandaloneType(*arrayType, loc); in emitArraySubscriptGEP()
4330 QualType arrayType = Array->getType(); in EmitArraySubscriptExpr() local
4334 E->getExprLoc(), &arrayType, E->getBase()); in EmitArraySubscriptExpr()
H A DCGObjCMac.cpp5324 if (auto arrayType = CGM.getContext().getAsIncompleteArrayType(fieldType)) { in visitField() local
5326 fieldType = arrayType->getElementType(); in visitField()
5329 while (auto arrayType = CGM.getContext().getAsConstantArrayType(fieldType)) { in visitField() local
5330 numElts *= arrayType->getZExtSize(); in visitField()
5331 fieldType = arrayType->getElementType(); in visitField()
H A DCGClass.cpp1984 const CXXConstructorDecl *ctor, const ArrayType *arrayType, in EmitCXXAggrConstructorCall() argument
1989 emitArrayLength(arrayType, elementType, arrayBegin); in EmitCXXAggrConstructorCall()
H A DCodeGenFunction.h3036 llvm::Value *emitArrayLength(const ArrayType *arrayType,
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DTemplateBase.cpp142 while (const auto *arrayType = type->getAsArrayTypeUnsafe()) { in getArrayDepth() local
144 type = arrayType->getElementType(); in getArrayDepth()
H A DASTContext.cpp1706 if (const ArrayType *arrayType = getAsArrayType(T)) { in getDeclAlign() local
1709 if (isa<VariableArrayType>(arrayType)) in getDeclAlign()
1711 else if (isa<ConstantArrayType>(arrayType) && in getDeclAlign()
1712 MinWidth <= getTypeSize(cast<ConstantArrayType>(arrayType))) in getDeclAlign()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaInit.cpp163 const ArrayType *arrayType = Context.getAsArrayType(declType); in IsStringInit() local
164 if (!arrayType) in IsStringInit()
166 return IsStringInit(init, arrayType, Context); in IsStringInit()
1544 } else if (const ArrayType *arrayType = in CheckSubElementType() local
1550 if (IsStringInit(expr, arrayType, SemaRef.Context) == SIF_None) { in CheckSubElementType()
1553 CheckStringInit(expr, ElemType, arrayType, SemaRef, in CheckSubElementType()
2036 const ArrayType *arrayType = SemaRef.Context.getAsArrayType(DeclType); in CheckArrayType() local
2039 if (checkDestructorReference(arrayType->getElementType(), in CheckArrayType()
2054 if (IsStringInit(IList->getInit(Index), arrayType, SemaRef.Context) == in CheckArrayType()
2063 CheckStringInit(IList->getInit(Index), DeclType, arrayType, SemaRef, in CheckArrayType()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Analysis/
H A DExprMutationAnalyzer.cpp529 hasUnqualifiedDesugaredType(referenceType(pointee(arrayType()))))))); in findRangeLoopMutation()
H A DCFG.cpp5316 while (const ArrayType *arrayType = astContext.getAsArrayType(ty)) { in getDestructorDecl() local
5317 ty = arrayType->getElementType(); in getDestructorDecl()
5346 while (const ArrayType *arrayType = astContext.getAsArrayType(ty)) { in getDestructorDecl() local
5347 ty = arrayType->getElementType(); in getDestructorDecl()
H A DUnsafeBufferUsage.cpp219 static auto hasArrayType() { return hasType(hasCanonicalType(arrayType())); } in hasArrayType()
/freebsd/contrib/llvm-project/clang/lib/ASTMatchers/Dynamic/
H A DRegistry.cpp142 REGISTER_MATCHER(arrayType); in RegistryMaps()
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DType.h8471 while (const ArrayType *arrayType = type->getAsArrayTypeUnsafe())
8472 type = arrayType->getElementType().getTypePtr();
/freebsd/contrib/llvm-project/clang/include/clang/ASTMatchers/
H A DASTMatchers.h7041 extern const AstTypeMatcher<ArrayType> arrayType;