Home
last modified time | relevance | path

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

/freebsd-14.2/contrib/llvm-project/clang/lib/CodeGen/
H A DCodeGenFunction.cpp2141 const ArrayType *arrayType = origArrayType; in emitArrayLength() local
2146 if (isa<VariableArrayType>(arrayType)) { in emitArrayLength()
2156 if (!arrayType) { in emitArrayLength()
2160 } while (isa<VariableArrayType>(arrayType)); in emitArrayLength()
2181 assert(isa<ConstantArrayType>(arrayType)); in emitArrayLength()
2187 eltType = arrayType->getElementType(); in emitArrayLength()
2191 arrayType = getContext().getAsArrayType(arrayType->getElementType()); in emitArrayLength()
2192 assert((!llvmArrayType || arrayType) && in emitArrayLength()
2196 if (arrayType) { in emitArrayLength()
2200 while (arrayType) { 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->getSize().getZExtValue(); i != e; ++i) { in addTypedData()
H A DCGDecl.cpp2265 const ArrayType *arrayType = getContext().getAsArrayType(type); in emitDestroy() local
2266 if (!arrayType) in emitDestroy()
2269 llvm::Value *length = emitArrayLength(arrayType, type, addr); in emitDestroy()
2365 while (const ArrayType *arrayType = CGF.getContext().getAsArrayType(type)) { in emitPartialArrayDestroy() local
2367 if (!isa<VariableArrayType>(arrayType)) in emitPartialArrayDestroy()
2369 type = arrayType->getElementType(); in emitPartialArrayDestroy()
H A DCGExprCXX.cpp634 if (const ArrayType *arrayType in EmitCXXConstructExpr() local
636 EmitCXXAggrConstructorCall(CD, arrayType, Dest.getAddress(), E, in EmitCXXConstructExpr()
H A DCGExpr.cpp4018 QualType *arrayType = nullptr, in emitArraySubscriptGEP() argument
4053 if (arrayType) in emitArraySubscriptGEP()
4054 DbgInfo = CGF.getDebugInfo()->getOrCreateStandaloneType(*arrayType, loc); in emitArraySubscriptGEP()
4288 QualType arrayType = Array->getType(); in EmitArraySubscriptExpr() local
4292 E->getExprLoc(), &arrayType, E->getBase()); in EmitArraySubscriptExpr()
H A DCGObjCMac.cpp5317 if (auto arrayType = CGM.getContext().getAsIncompleteArrayType(fieldType)) { in visitField() local
5319 fieldType = arrayType->getElementType(); in visitField()
5322 while (auto arrayType = CGM.getContext().getAsConstantArrayType(fieldType)) { in visitField() local
5323 numElts *= arrayType->getSize().getZExtValue(); in visitField()
5324 fieldType = arrayType->getElementType(); in visitField()
H A DCGClass.cpp1975 const CXXConstructorDecl *ctor, const ArrayType *arrayType, in EmitCXXAggrConstructorCall() argument
1980 emitArrayLength(arrayType, elementType, arrayBegin); in EmitCXXAggrConstructorCall()
H A DCodeGenFunction.h2837 llvm::Value *emitArrayLength(const ArrayType *arrayType,
/freebsd-14.2/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.cpp1675 if (const ArrayType *arrayType = getAsArrayType(T)) { in getDeclAlign() local
1678 if (isa<VariableArrayType>(arrayType)) in getDeclAlign()
1680 else if (isa<ConstantArrayType>(arrayType) && in getDeclAlign()
1681 MinWidth <= getTypeSize(cast<ConstantArrayType>(arrayType))) in getDeclAlign()
/freebsd-14.2/contrib/llvm-project/clang/lib/Sema/
H A DSemaInit.cpp160 const ArrayType *arrayType = Context.getAsArrayType(declType); in IsStringInit() local
161 if (!arrayType) in IsStringInit()
163 return IsStringInit(init, arrayType, Context); in IsStringInit()
1470 } else if (const ArrayType *arrayType = in CheckSubElementType() local
1476 if (IsStringInit(expr, arrayType, SemaRef.Context) == SIF_None) { in CheckSubElementType()
1479 CheckStringInit(expr, ElemType, arrayType, SemaRef); in CheckSubElementType()
1923 const ArrayType *arrayType = SemaRef.Context.getAsArrayType(DeclType); in CheckArrayType() local
1926 if (checkDestructorReference(arrayType->getElementType(), in CheckArrayType()
1935 if (IsStringInit(IList->getInit(Index), arrayType, SemaRef.Context) == in CheckArrayType()
1944 CheckStringInit(IList->getInit(Index), DeclType, arrayType, SemaRef); in CheckArrayType()
[all …]
/freebsd-14.2/contrib/llvm-project/clang/lib/Analysis/
H A DExprMutationAnalyzer.cpp515 hasUnqualifiedDesugaredType(referenceType(pointee(arrayType()))))))); in findRangeLoopMutation()
H A DCFG.cpp5319 while (const ArrayType *arrayType = astContext.getAsArrayType(ty)) { in getDestructorDecl() local
5320 ty = arrayType->getElementType(); in getDestructorDecl()
5349 while (const ArrayType *arrayType = astContext.getAsArrayType(ty)) { in getDestructorDecl() local
5350 ty = arrayType->getElementType(); in getDestructorDecl()
H A DUnsafeBufferUsage.cpp212 return hasType(hasCanonicalType(arrayType())); in hasArrayType()
/freebsd-14.2/contrib/llvm-project/clang/lib/ASTMatchers/Dynamic/
H A DRegistry.cpp142 REGISTER_MATCHER(arrayType); in RegistryMaps()
/freebsd-14.2/contrib/llvm-project/clang/lib/ASTMatchers/
H A DASTMatchersInternal.cpp1046 const AstTypeMatcher<ArrayType> arrayType; variable
/freebsd-14.2/contrib/llvm-project/clang/include/clang/AST/
H A DType.h7531 while (const ArrayType *arrayType = type->getAsArrayTypeUnsafe())
7532 type = arrayType->getElementType().getTypePtr();
/freebsd-14.2/contrib/llvm-project/clang/include/clang/ASTMatchers/
H A DASTMatchers.h7011 extern const AstTypeMatcher<ArrayType> arrayType;