Home
last modified time | relevance | path

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

/netbsd-src/external/apache2/llvm/dist/clang/lib/CodeGen/
H A DCodeGenFunction.cpp1980 const ArrayType *arrayType = origArrayType; in emitArrayLength() local
1985 if (isa<VariableArrayType>(arrayType)) { in emitArrayLength()
1986 numVLAElements = getVLASize(cast<VariableArrayType>(arrayType)).NumElts; in emitArrayLength()
1991 QualType elementType = arrayType->getElementType(); in emitArrayLength()
1992 arrayType = getContext().getAsArrayType(elementType); in emitArrayLength()
1995 if (!arrayType) { in emitArrayLength()
1999 } while (isa<VariableArrayType>(arrayType)); in emitArrayLength()
2020 assert(isa<ConstantArrayType>(arrayType)); in emitArrayLength()
2021 assert(cast<ConstantArrayType>(arrayType)->getSize().getZExtValue() in emitArrayLength()
2026 eltType = arrayType->getElementType(); 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.cpp2180 const ArrayType *arrayType = getContext().getAsArrayType(type); in emitDestroy() local
2181 if (!arrayType) in emitDestroy()
2184 llvm::Value *length = emitArrayLength(arrayType, type, addr); in emitDestroy()
2276 while (const ArrayType *arrayType = CGF.getContext().getAsArrayType(type)) { in emitPartialArrayDestroy() local
2278 if (!isa<VariableArrayType>(arrayType)) in emitPartialArrayDestroy()
2280 type = arrayType->getElementType(); in emitPartialArrayDestroy()
H A DCGExprCXX.cpp623 if (const ArrayType *arrayType in EmitCXXConstructExpr() local
625 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.cpp1917 const CXXConstructorDecl *ctor, const ArrayType *arrayType, in EmitCXXAggrConstructorCall() argument
1922 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,
/netbsd-src/external/apache2/llvm/dist/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.cpp1746 if (const ArrayType *arrayType = getAsArrayType(T)) { in getDeclAlign() local
1749 if (isa<VariableArrayType>(arrayType)) in getDeclAlign()
1751 else if (isa<ConstantArrayType>(arrayType) && in getDeclAlign()
1752 MinWidth <= getTypeSize(cast<ConstantArrayType>(arrayType))) in getDeclAlign()
/netbsd-src/external/gpl3/gcc.old/dist/gcc/d/dmd/
H A Dctfe.h173 UnionExp changeArrayLiteralLength(Loc loc, TypeArray *arrayType,
H A Dctfeexpr.c1780 UnionExp changeArrayLiteralLength(Loc loc, TypeArray *arrayType, in changeArrayLiteralLength() argument
1784 Type *elemType = arrayType->next; in changeArrayLiteralLength()
1816 se->type = arrayType; in changeArrayLiteralLength()
1843 new(&ue) ArrayLiteralExp(loc, arrayType, elements); in changeArrayLiteralLength()
/netbsd-src/external/gpl3/gcc/dist/gcc/d/dmd/
H A Dctfeexpr.d1754 Expression changeArrayLiteralLength(UnionExp* pue, const ref Loc loc, TypeArray arrayType, Expressi… in changeArrayLiteralLength() argument
1756 Type elemType = arrayType.next; in changeArrayLiteralLength()
1794 se.type = arrayType; in changeArrayLiteralLength()
1821 emplaceExp!(ArrayLiteralExp)(pue, loc, arrayType, elements); in changeArrayLiteralLength()
/netbsd-src/external/apache2/llvm/dist/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 …]
/netbsd-src/external/apache2/llvm/dist/clang/lib/Analysis/
H A DExprMutationAnalyzer.cpp447 hasUnqualifiedDesugaredType(referenceType(pointee(arrayType()))))))); in findRangeLoopMutation()
H A DCFG.cpp5032 while (const ArrayType *arrayType = astContext.getAsArrayType(ty)) { in getDestructorDecl() local
5033 ty = arrayType->getElementType(); in getDestructorDecl()
/netbsd-src/external/apache2/llvm/dist/clang/lib/ASTMatchers/Dynamic/
H A DRegistry.cpp140 REGISTER_MATCHER(arrayType); in RegistryMaps()
/netbsd-src/external/apache2/llvm/dist/clang/lib/ASTMatchers/
H A DASTMatchersInternal.cpp1018 const AstTypeMatcher<ArrayType> arrayType; variable
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/AST/
H A DType.h7112 while (const ArrayType *arrayType = type->getAsArrayTypeUnsafe())
7113 type = arrayType->getElementType().getTypePtr();
/netbsd-src/external/gpl3/gcc/dist/gcc/d/
H A DChangeLog-2006865 * d-codegen.cc (arrayType): handle zero-length arrays for local
H A DChangeLog-20131005 (IRState::arrayType): Replace with d_array_type.
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/ASTMatchers/
H A DASTMatchers.h6375 extern const AstTypeMatcher<ArrayType> arrayType;