Home
last modified time | relevance | path

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

/freebsd-src/contrib/llvm-project/clang/lib/CodeGen/
H A DCodeGenFunction.cpp2221 const ArrayType *arrayType = origArrayType; in emitArrayLength()
2226 if (isa<VariableArrayType>(arrayType)) { in emitArrayLength()
2227 numVLAElements = getVLASize(cast<VariableArrayType>(arrayType)).NumElts; in emitArrayLength()
2232 QualType elementType = arrayType->getElementType(); in getVLASize()
2233 arrayType = getContext().getAsArrayType(elementType); in getVLASize()
2236 if (!arrayType) { in getVLASize()
2240 } while (isa<VariableArrayType>(arrayType)); in getVLASize()
2261 assert(isa<ConstantArrayType>(arrayType)); in getVLAElements1D()
2262 assert(cast<ConstantArrayType>(arrayType)->getZExtSize() == in getVLAElements1D()
2267 eltType = arrayType
2141 const ArrayType *arrayType = origArrayType; emitArrayLength() local
[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 emitArrayDestroy()
2327 if (!arrayType) in emitArrayDestroy()
2330 llvm::Value *length = emitArrayLength(arrayType, type, addr); in emitArrayDestroy()
2426 while (const ArrayType *arrayType = CGF.getContext().getAsArrayType(type)) { in IrregularPartialArrayDestroy()
2428 if (!isa<VariableArrayType>(arrayType)) in IrregularPartialArrayDestroy()
2430 type = arrayType->getElementType(); in IrregularPartialArrayDestroy()
2265 const ArrayType *arrayType = getContext().getAsArrayType(type); emitDestroy() local
2365 while (const ArrayType *arrayType = CGF.getContext().getAsArrayType(type)) { emitPartialArrayDestroy() local
H A DCGExprCXX.cpp637 if (const ArrayType *arrayType in EmitCXXConstructExpr()
639 EmitCXXAggrConstructorCall(CD, arrayType, Dest.getAddress(), E, in EmitCXXConstructExpr()
634 if (const ArrayType *arrayType EmitCXXConstructExpr() local
H A DCGExpr.cpp4061 QualType *arrayType = nullptr, in emitArraySubscriptGEP()
4097 if (arrayType) in getOffsetDifferenceInBits()
4098 DbgInfo = CGF.getDebugInfo()->getOrCreateStandaloneType(*arrayType, loc); in getOffsetDifferenceInBits()
4330 QualType arrayType = Array->getType(); in EmitMatrixSubscriptExpr()
4334 E->getExprLoc(), &arrayType, E->getBase()); in emitOMPArraySectionBase()
4018 emitArraySubscriptGEP(CodeGenFunction & CGF,Address addr,ArrayRef<llvm::Value * > indices,QualType eltType,bool inbounds,bool signedIndices,SourceLocation loc,QualType * arrayType=nullptr,const Expr * Base=nullptr,const llvm::Twine & name="arrayidx") emitArraySubscriptGEP() argument
4288 QualType arrayType = Array->getType(); EmitArraySubscriptExpr() local
H A DCGObjCMac.cpp5324 if (auto arrayType = CGM.getContext().getAsIncompleteArrayType(fieldType)) { in visitField()
5326 fieldType = arrayType->getElementType(); in visitField()
5329 while (auto arrayType = CGM.getContext().getAsConstantArrayType(fieldType)) { in visitField()
5330 numElts *= arrayType->getZExtSize(); in visitField()
5331 fieldType = arrayType->getElementType(); in visitField()
5317 if (auto arrayType = CGM.getContext().getAsIncompleteArrayType(fieldType)) { visitField() local
5322 while (auto arrayType = CGM.getContext().getAsConstantArrayType(fieldType)) { visitField() local
H A DCGClass.cpp1979 /// \param arrayType the type of the array to initialize in EmitCXXAggrConstructorCall()
1980 /// \param arrayBegin an arrayType* in EmitCXXAggrConstructorCall()
1984 const CXXConstructorDecl *ctor, const ArrayType *arrayType, in EmitCXXAggrConstructorCall()
1989 emitArrayLength(arrayType, elementType, arrayBegin);
1975 EmitCXXAggrConstructorCall(const CXXConstructorDecl * ctor,const ArrayType * arrayType,Address arrayBegin,const CXXConstructExpr * E,bool NewPointerIsChecked,bool zeroInitialize) EmitCXXAggrConstructorCall() argument
H A DCodeGenFunction.h3036 llvm::Value *emitArrayLength(const ArrayType *arrayType,
/freebsd-src/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()
1709 if (isa<VariableArrayType>(arrayType)) in getDeclAlign()
1711 else if (isa<ConstantArrayType>(arrayType) && in getDeclAlign()
1712 MinWidth <= getTypeSize(cast<ConstantArrayType>(arrayType))) in getDeclAlign()
1675 if (const ArrayType *arrayType = getAsArrayType(T)) { getDeclAlign() local
/freebsd-src/contrib/llvm-project/clang/lib/Sema/
H A DSemaInit.cpp163 const ArrayType *arrayType = Context.getAsArrayType(declType); in IsStringInit()
164 if (!arrayType) in IsStringInit()
166 return IsStringInit(init, arrayType, Context); in IsStringInit()
1544 } else if (const ArrayType *arrayType = in CheckSubElementType()
1546 // arrayType can be incomplete if we're initializing a flexible in CheckSubElementType()
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()
2039 if (checkDestructorReference(arrayType->getElementType(), in CheckArrayType()
2054 if (IsStringInit(IList->getInit(Index), arrayType, SemaRe in CheckArrayType()
160 const ArrayType *arrayType = Context.getAsArrayType(declType); IsStringInit() local
1470 } else if (const ArrayType *arrayType = CheckSubElementType() local
1923 const ArrayType *arrayType = SemaRef.Context.getAsArrayType(DeclType); CheckArrayType() local
[all...]
/freebsd-src/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()
5317 ty = arrayType->getElementType(); in getDestructorDecl()
5346 while (const ArrayType *arrayType = astContext.getAsArrayType(ty)) { in getDestructorDecl()
5347 ty = arrayType->getElementType(); in getDestructorDecl()
5319 while (const ArrayType *arrayType = astContext.getAsArrayType(ty)) { getDestructorDecl() local
5349 while (const ArrayType *arrayType = astContext.getAsArrayType(ty)) { getDestructorDecl() local
H A DUnsafeBufferUsage.cpp219 static auto hasArrayType() { return hasType(hasCanonicalType(arrayType())); } in AST_MATCHER_P()
/freebsd-src/contrib/llvm-project/clang/lib/ASTMatchers/Dynamic/
H A DRegistry.cpp142 REGISTER_MATCHER(arrayType); in RegistryMaps()
/freebsd-src/contrib/llvm-project/clang/lib/ASTMatchers/
H A DASTMatchersInternal.cpp1046 const AstTypeMatcher<ArrayType> arrayType; variable
/freebsd-src/contrib/llvm-project/clang/include/clang/AST/
H A DType.h8471 while (const ArrayType *arrayType = type->getAsArrayTypeUnsafe())
8472 type = arrayType->getElementType().getTypePtr();
/freebsd-src/contrib/llvm-project/clang/include/clang/ASTMatchers/
H A DASTMatchers.h7039 /// arrayType()
7041 extern const AstTypeMatcher<ArrayType> arrayType;
7075 /// arrayType(hasElementType(builtinType()))