Home
last modified time | relevance | path

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

/openbsd/gnu/llvm/clang/lib/CodeGen/
H A DCodeGenFunction.cpp2077 const ArrayType *arrayType = origArrayType; in emitArrayLength() local
2082 if (isa<VariableArrayType>(arrayType)) { in emitArrayLength()
2092 if (!arrayType) { in emitArrayLength()
2096 } while (isa<VariableArrayType>(arrayType)); in emitArrayLength()
2117 assert(isa<ConstantArrayType>(arrayType)); in emitArrayLength()
2123 eltType = arrayType->getElementType(); in emitArrayLength()
2127 arrayType = getContext().getAsArrayType(arrayType->getElementType()); in emitArrayLength()
2128 assert((!llvmArrayType || arrayType) && in emitArrayLength()
2132 if (arrayType) { in emitArrayLength()
2136 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.cpp2199 const ArrayType *arrayType = getContext().getAsArrayType(type); in emitDestroy() local
2200 if (!arrayType) in emitDestroy()
2203 llvm::Value *length = emitArrayLength(arrayType, type, addr); in emitDestroy()
2299 while (const ArrayType *arrayType = CGF.getContext().getAsArrayType(type)) { in emitPartialArrayDestroy() local
2301 if (!isa<VariableArrayType>(arrayType)) in emitPartialArrayDestroy()
2303 type = arrayType->getElementType(); in emitPartialArrayDestroy()
H A DCGExprCXX.cpp630 if (const ArrayType *arrayType in EmitCXXConstructExpr() local
632 EmitCXXAggrConstructorCall(CD, arrayType, Dest.getAddress(), E, in EmitCXXConstructExpr()
H A DCGExpr.cpp3728 QualType *arrayType = nullptr, in emitArraySubscriptGEP() argument
3760 if (arrayType) in emitArraySubscriptGEP()
3761 DbgInfo = CGF.getDebugInfo()->getOrCreateStandaloneType(*arrayType, loc); in emitArraySubscriptGEP()
3903 QualType arrayType = Array->getType(); in EmitArraySubscriptExpr() local
3907 E->getExprLoc(), &arrayType, E->getBase()); in EmitArraySubscriptExpr()
H A DCGObjCMac.cpp5356 if (auto arrayType = CGM.getContext().getAsIncompleteArrayType(fieldType)) { in visitField() local
5358 fieldType = arrayType->getElementType(); in visitField()
5361 while (auto arrayType = CGM.getContext().getAsConstantArrayType(fieldType)) { in visitField() local
5362 numElts *= arrayType->getSize().getZExtValue(); in visitField()
5363 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.h2772 llvm::Value *emitArrayLength(const ArrayType *arrayType,
/openbsd/gnu/llvm/clang/lib/AST/
H A DTemplateBase.cpp141 while (const auto *arrayType = type->getAsArrayTypeUnsafe()) { in getArrayDepth() local
143 type = arrayType->getElementType(); in getArrayDepth()
H A DASTContext.cpp1752 if (const ArrayType *arrayType = getAsArrayType(T)) { in getDeclAlign() local
1755 if (isa<VariableArrayType>(arrayType)) in getDeclAlign()
1757 else if (isa<ConstantArrayType>(arrayType) && in getDeclAlign()
1758 MinWidth <= getTypeSize(cast<ConstantArrayType>(arrayType))) in getDeclAlign()
/openbsd/gnu/llvm/clang/lib/Analysis/
H A DUnsafeBufferUsage.cpp138 return hasType(hasCanonicalType(arrayType())); in hasArrayType()
H A DExprMutationAnalyzer.cpp457 hasUnqualifiedDesugaredType(referenceType(pointee(arrayType()))))))); in findRangeLoopMutation()
H A DCFG.cpp5310 while (const ArrayType *arrayType = astContext.getAsArrayType(ty)) { in getDestructorDecl() local
5311 ty = arrayType->getElementType(); in getDestructorDecl()
5340 while (const ArrayType *arrayType = astContext.getAsArrayType(ty)) { in getDestructorDecl() local
5341 ty = arrayType->getElementType(); in getDestructorDecl()
/openbsd/gnu/llvm/clang/lib/Sema/
H A DSemaInit.cpp149 const ArrayType *arrayType = Context.getAsArrayType(declType); in IsStringInit() local
150 if (!arrayType) in IsStringInit()
152 return IsStringInit(init, arrayType, Context); in IsStringInit()
1433 } else if (const ArrayType *arrayType = in CheckSubElementType() local
1439 if (IsStringInit(expr, arrayType, SemaRef.Context) == SIF_None) { in CheckSubElementType()
1442 CheckStringInit(expr, ElemType, arrayType, SemaRef); in CheckSubElementType()
1877 const ArrayType *arrayType = SemaRef.Context.getAsArrayType(DeclType); in CheckArrayType() local
1880 if (checkDestructorReference(arrayType->getElementType(), in CheckArrayType()
1889 if (IsStringInit(IList->getInit(Index), arrayType, SemaRef.Context) == in CheckArrayType()
1898 CheckStringInit(IList->getInit(Index), DeclType, arrayType, SemaRef); in CheckArrayType()
[all …]
/openbsd/gnu/llvm/clang/lib/ASTMatchers/Dynamic/
H A DRegistry.cpp139 REGISTER_MATCHER(arrayType); in RegistryMaps()
/openbsd/gnu/llvm/clang/lib/ASTMatchers/
H A DASTMatchersInternal.cpp1036 const AstTypeMatcher<ArrayType> arrayType; variable
/openbsd/gnu/llvm/clang/include/clang/AST/
H A DType.h7349 while (const ArrayType *arrayType = type->getAsArrayTypeUnsafe())
7350 type = arrayType->getElementType().getTypePtr();
/openbsd/gnu/llvm/clang/include/clang/ASTMatchers/
H A DASTMatchers.h6762 extern const AstTypeMatcher<ArrayType> arrayType;