Home
last modified time | relevance | path

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

/freebsd-13.1/contrib/llvm-project/clang/lib/CodeGen/
H A DCodeGenFunction.cpp1994 const ArrayType *arrayType = origArrayType; in emitArrayLength() local
1999 if (isa<VariableArrayType>(arrayType)) { in emitArrayLength()
2009 if (!arrayType) { in emitArrayLength()
2013 } while (isa<VariableArrayType>(arrayType)); in emitArrayLength()
2034 assert(isa<ConstantArrayType>(arrayType)); in emitArrayLength()
2040 eltType = arrayType->getElementType(); in emitArrayLength()
2044 arrayType = getContext().getAsArrayType(arrayType->getElementType()); in emitArrayLength()
2045 assert((!llvmArrayType || arrayType) && in emitArrayLength()
2049 if (arrayType) { in emitArrayLength()
2053 while (arrayType) { in emitArrayLength()
[all …]
H A DSwiftCallingConv.cpp74 auto arrayType = CGM.getContext().getAsConstantArrayType(type); in addTypedData() local
75 if (!arrayType) return; in addTypedData()
77 QualType eltType = arrayType->getElementType(); in addTypedData()
79 for (uint64_t i = 0, e = arrayType->getSize().getZExtValue(); i != e; ++i) { in addTypedData()
H A DCGDecl.cpp2183 const ArrayType *arrayType = getContext().getAsArrayType(type); in emitDestroy() local
2184 if (!arrayType) in emitDestroy()
2187 llvm::Value *length = emitArrayLength(arrayType, type, addr); in emitDestroy()
2280 while (const ArrayType *arrayType = CGF.getContext().getAsArrayType(type)) { in emitPartialArrayDestroy() local
2282 if (!isa<VariableArrayType>(arrayType)) in emitPartialArrayDestroy()
2284 type = arrayType->getElementType(); in emitPartialArrayDestroy()
H A DCGExprCXX.cpp626 if (const ArrayType *arrayType in EmitCXXConstructExpr() local
628 EmitCXXAggrConstructorCall(CD, arrayType, Dest.getAddress(), E, in EmitCXXConstructExpr()
H A DCGExpr.cpp3663 QualType *arrayType = nullptr, in emitArraySubscriptGEP() argument
3695 if (arrayType) in emitArraySubscriptGEP()
3696 DbgInfo = CGF.getDebugInfo()->getOrCreateStandaloneType(*arrayType, loc); in emitArraySubscriptGEP()
3838 QualType arrayType = Array->getType(); in EmitArraySubscriptExpr() local
3842 E->getExprLoc(), &arrayType, E->getBase()); in EmitArraySubscriptExpr()
H A DCGClass.cpp1915 const CXXConstructorDecl *ctor, const ArrayType *arrayType, in EmitCXXAggrConstructorCall() argument
1920 emitArrayLength(arrayType, elementType, arrayBegin); in EmitCXXAggrConstructorCall()
H A DCGObjCMac.cpp5401 if (auto arrayType = CGM.getContext().getAsIncompleteArrayType(fieldType)) { in visitField() local
5403 fieldType = arrayType->getElementType(); in visitField()
5406 while (auto arrayType = CGM.getContext().getAsConstantArrayType(fieldType)) { in visitField() local
5407 numElts *= arrayType->getSize().getZExtValue(); in visitField()
5408 fieldType = arrayType->getElementType(); in visitField()
H A DCodeGenFunction.h2715 llvm::Value *emitArrayLength(const ArrayType *arrayType,
/freebsd-13.1/contrib/llvm-project/clang/lib/AST/
H A DTemplateBase.cpp139 while (const auto *arrayType = type->getAsArrayTypeUnsafe()) { in getArrayDepth() local
141 type = arrayType->getElementType(); in getArrayDepth()
H A DASTContext.cpp1761 if (const ArrayType *arrayType = getAsArrayType(T)) { in getDeclAlign() local
1764 if (isa<VariableArrayType>(arrayType)) in getDeclAlign()
1766 else if (isa<ConstantArrayType>(arrayType) && in getDeclAlign()
1767 MinWidth <= getTypeSize(cast<ConstantArrayType>(arrayType))) in getDeclAlign()
/freebsd-13.1/contrib/llvm-project/clang/lib/Sema/
H A DSemaInit.cpp139 const ArrayType *arrayType = Context.getAsArrayType(declType); in IsStringInit() local
140 if (!arrayType) in IsStringInit()
142 return IsStringInit(init, arrayType, Context); in IsStringInit()
1419 } else if (const ArrayType *arrayType = in CheckSubElementType() local
1425 if (IsStringInit(expr, arrayType, SemaRef.Context) == SIF_None) { in CheckSubElementType()
1428 CheckStringInit(expr, ElemType, arrayType, SemaRef); in CheckSubElementType()
1863 const ArrayType *arrayType = SemaRef.Context.getAsArrayType(DeclType); in CheckArrayType() local
1866 if (checkDestructorReference(arrayType->getElementType(), in CheckArrayType()
1875 if (IsStringInit(IList->getInit(Index), arrayType, SemaRef.Context) == in CheckArrayType()
1884 CheckStringInit(IList->getInit(Index), DeclType, arrayType, SemaRef); in CheckArrayType()
[all …]
/freebsd-13.1/contrib/llvm-project/clang/lib/Analysis/
H A DExprMutationAnalyzer.cpp447 hasUnqualifiedDesugaredType(referenceType(pointee(arrayType()))))))); in findRangeLoopMutation()
H A DCFG.cpp5039 while (const ArrayType *arrayType = astContext.getAsArrayType(ty)) { in getDestructorDecl() local
5040 ty = arrayType->getElementType(); in getDestructorDecl()
/freebsd-13.1/contrib/llvm-project/clang/lib/ASTMatchers/Dynamic/
H A DRegistry.cpp140 REGISTER_MATCHER(arrayType); in RegistryMaps()
/freebsd-13.1/contrib/llvm-project/clang/lib/ASTMatchers/
H A DASTMatchersInternal.cpp1019 const AstTypeMatcher<ArrayType> arrayType; variable
/freebsd-13.1/contrib/llvm-project/clang/include/clang/AST/
H A DType.h7112 while (const ArrayType *arrayType = type->getAsArrayTypeUnsafe())
7113 type = arrayType->getElementType().getTypePtr();
/freebsd-13.1/contrib/llvm-project/clang/include/clang/ASTMatchers/
H A DASTMatchers.h6387 extern const AstTypeMatcher<ArrayType> arrayType;