Home
last modified time | relevance | path

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

/freebsd/contrib/llvm-project/clang/lib/CIR/Lowering/
H A DLoweringHelpers.cpp65 if (auto arrayType = mlir::dyn_cast<cir::ArrayType>(attr.getType())) { in convertToDenseElementsAttrImpl() local
67 auto intAttr = cir::IntAttr::get(arrayType.getElementType(), element); in convertToDenseElementsAttrImpl()
130 while (auto arrayType = mlir::dyn_cast<cir::ArrayType>(type)) { in lowerConstArrayAttr() local
131 dims.push_back(arrayType.getSize()); in lowerConstArrayAttr()
132 type = arrayType.getElementType(); in lowerConstArrayAttr()
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DCodeGenFunction.cpp2325 const ArrayType *arrayType = origArrayType; in emitArrayLength() local
2330 if (isa<VariableArrayType>(arrayType)) { in emitArrayLength()
2331 numVLAElements = getVLASize(cast<VariableArrayType>(arrayType)).NumElts; in emitArrayLength()
2336 QualType elementType = arrayType->getElementType(); in emitArrayLength()
2337 arrayType = getContext().getAsArrayType(elementType); in emitArrayLength()
2340 if (!arrayType) { in emitArrayLength()
2344 } while (isa<VariableArrayType>(arrayType)); in emitArrayLength()
2365 assert(isa<ConstantArrayType>(arrayType)); in emitArrayLength()
2366 assert(cast<ConstantArrayType>(arrayType)->getZExtSize() == in emitArrayLength()
2371 eltType = arrayType->getElementType(); in emitArrayLength()
[all …]
H A DSwiftCallingConv.cpp75 auto arrayType = CGM.getContext().getAsConstantArrayType(type); in addTypedData() local
76 if (!arrayType) return; in addTypedData()
78 QualType eltType = arrayType->getElementType(); in addTypedData()
80 for (uint64_t i = 0, e = arrayType->getZExtSize(); i != e; ++i) { in addTypedData()
H A DCGDecl.cpp2398 const ArrayType *arrayType = getContext().getAsArrayType(type); in emitDestroy() local
2399 if (!arrayType) in emitDestroy()
2402 llvm::Value *length = emitArrayLength(arrayType, type, addr); in emitDestroy()
2498 while (const ArrayType *arrayType = CGF.getContext().getAsArrayType(type)) { in emitPartialArrayDestroy() local
2500 if (!isa<VariableArrayType>(arrayType)) in emitPartialArrayDestroy()
2502 type = arrayType->getElementType(); in emitPartialArrayDestroy()
H A DCGExprCXX.cpp642 if (const ArrayType *arrayType in EmitCXXConstructExpr() local
644 EmitCXXAggrConstructorCall(CD, arrayType, Dest.getAddress(), E, in EmitCXXConstructExpr()
H A DCGExpr.cpp4287 QualType *arrayType = nullptr, in emitArraySubscriptGEP() argument
4323 if (arrayType) in emitArraySubscriptGEP()
4324 DbgInfo = CGF.getDebugInfo()->getOrCreateStandaloneType(*arrayType, loc); in emitArraySubscriptGEP()
4592 QualType arrayType = Array->getType(); in EmitArraySubscriptExpr() local
4596 E->getExprLoc(), &arrayType, E->getBase()); in EmitArraySubscriptExpr()
H A DCGObjCMac.cpp5231 if (auto arrayType = CGM.getContext().getAsIncompleteArrayType(fieldType)) { in visitField() local
5233 fieldType = arrayType->getElementType(); in visitField()
5236 while (auto arrayType = CGM.getContext().getAsConstantArrayType(fieldType)) { in visitField() local
5237 numElts *= arrayType->getZExtSize(); in visitField()
5238 fieldType = arrayType->getElementType(); in visitField()
H A DCGClass.cpp1988 const CXXConstructorDecl *ctor, const ArrayType *arrayType, in EmitCXXAggrConstructorCall() argument
1993 emitArrayLength(arrayType, elementType, arrayBegin); in EmitCXXAggrConstructorCall()
H A DCodeGenFunction.h3083 llvm::Value *emitArrayLength(const ArrayType *arrayType, QualType &baseType,
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DTemplateBase.cpp138 while (const auto *arrayType = type->getAsArrayTypeUnsafe()) { in getArrayDepth() local
140 type = arrayType->getElementType(); in getArrayDepth()
H A DASTContext.cpp1860 if (const ArrayType *arrayType = getAsArrayType(T)) { in getDeclAlign() local
1863 if (isa<VariableArrayType>(arrayType)) in getDeclAlign()
1865 else if (isa<ConstantArrayType>(arrayType) && in getDeclAlign()
1866 MinWidth <= getTypeSize(cast<ConstantArrayType>(arrayType))) in getDeclAlign()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaInit.cpp161 const ArrayType *arrayType = Context.getAsArrayType(declType); in IsStringInit() local
162 if (!arrayType) in IsStringInit()
164 return IsStringInit(init, arrayType, Context); in IsStringInit()
1615 } else if (const ArrayType *arrayType = in CheckSubElementType() local
1621 if (IsStringInit(expr, arrayType, SemaRef.Context) == SIF_None) { in CheckSubElementType()
1624 CheckStringInit(expr, ElemType, arrayType, SemaRef, Entity, in CheckSubElementType()
2110 const ArrayType *arrayType = SemaRef.Context.getAsArrayType(DeclType); in CheckArrayType() local
2113 if (checkDestructorReference(arrayType->getElementType(), in CheckArrayType()
2128 if (IsStringInit(IList->getInit(Index), arrayType, SemaRef.Context) == in CheckArrayType()
2138 IList->getInit(Index), DeclType, arrayType, SemaRef, Entity, in CheckArrayType()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Analysis/
H A DExprMutationAnalyzer.cpp580 hasUnqualifiedDesugaredType(referenceType(pointee(arrayType()))))))); in findRangeLoopMutation()
H A DCFG.cpp5425 while (const ArrayType *arrayType = astContext.getAsArrayType(ty)) { in getDestructorDecl() local
5426 ty = arrayType->getElementType(); in getDestructorDecl()
5455 while (const ArrayType *arrayType = astContext.getAsArrayType(ty)) { in getDestructorDecl() local
5456 ty = arrayType->getElementType(); in getDestructorDecl()
/freebsd/contrib/llvm-project/clang/lib/ASTMatchers/Dynamic/
H A DRegistry.cpp140 REGISTER_MATCHER(arrayType); in RegistryMaps()
/freebsd/contrib/llvm-project/clang/lib/ASTMatchers/
H A DASTMatchersInternal.cpp1077 const AstTypeMatcher<ArrayType> arrayType; variable
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DType.h8888 while (const ArrayType *arrayType = type->getAsArrayTypeUnsafe())
8889 type = arrayType->getElementType().getTypePtr();
/freebsd/contrib/llvm-project/clang/include/clang/ASTMatchers/
H A DASTMatchers.h7088 extern const AstTypeMatcher<ArrayType> arrayType;