Home
last modified time | relevance | path

Searched refs:elementType (Results 1 – 25 of 29) sorted by path

12

/freebsd/contrib/expat/lib/
H A Dxmlparse.c3314 ELEMENT_TYPE *elementType; in storeAtts() local
3327 elementType in storeAtts()
3329 if (! elementType) { in storeAtts()
3335 if (! elementType) in storeAtts()
3340 nDefaultAtts = elementType->nDefaultAtts; in storeAtts()
3493 if (elementType->idAtt && (elementType->idAtt->name)[-1]) { in storeAtts()
3495 if (appAtts[i] == elementType->idAtt->name) { in storeAtts()
3706 if (elementType->prefix) { in storeAtts()
3707 binding = elementType->prefix->binding; in storeAtts()
6567 for (name = elementType->name; *name; name++) { in setElementTypePrefix()
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/AST/
H A DTypeProperties.td13 def : Property<"elementType", QualType> {
17 def : Creator<[{ return ctx.getComplexType(elementType); }]>;
94 def : Property<"elementType", QualType> {
122 return ctx.getIncompleteArrayType(elementType, sizeModifier,
166 def : Property<"elementType", QualType> {
182 def : Property<"elementType", QualType> {
207 return ctx.getExtVectorType(elementType, numElements);
212 def : Property<"elementType", QualType> {
228 def : Property<"elementType", QualType> {
921 def : Property<"elementType", QualType> {
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DMemRegion.h1200 ElementRegion(QualType elementType, NonLoc Idx, const SubRegion *sReg) in ElementRegion() argument
1201 : TypedValueRegion(sReg, ElementRegionKind), ElementType(elementType), in ElementRegion()
1206 assert(!elementType.isNull() && !elementType->isVoidType() && in ElementRegion()
1210 static void ProfileRegion(llvm::FoldingSetNodeID& ID, QualType elementType,
1504 const ElementRegion *getElementRegion(QualType elementType, NonLoc Idx,
H A DStore.h150 virtual SVal getLValueElement(QualType elementType, NonLoc offset, SVal Base);
/freebsd/contrib/llvm-project/clang/lib/AST/
H A DASTContext.cpp3725 QualType ASTContext::getDependentSizedArrayType(QualType elementType, in getDependentSizedArrayType() argument
3749 SplitQualType canonElementType = getCanonicalType(elementType).split(); in getDependentSizedArrayType()
3776 if (QualType(canonElementType.Ty, 0) == elementType && in getDependentSizedArrayType()
3783 DependentSizedArrayType(elementType, canon, numElements, ASM, in getDependentSizedArrayType()
3789 QualType ASTContext::getIncompleteArrayType(QualType elementType, in getIncompleteArrayType() argument
3793 IncompleteArrayType::Profile(ID, elementType, ASM, elementTypeQuals); in getIncompleteArrayType()
3806 if (!elementType.isCanonical() || elementType.hasLocalQualifiers()) { in getIncompleteArrayType()
3807 SplitQualType canonSplit = getCanonicalType(elementType).split(); in getIncompleteArrayType()
3819 IncompleteArrayType(elementType, canon, ASM, elementTypeQuals); in getIncompleteArrayType()
6012 QualType elementType = AT->getElementType(); in getUnqualifiedArrayType() local
[all …]
H A DType.cpp914 QualType elementType = recurse(T->getElementType()); in TRIVIAL_TYPE_CLASS() local
915 if (elementType.isNull()) in TRIVIAL_TYPE_CLASS()
921 return Ctx.getComplexType(elementType); in TRIVIAL_TYPE_CLASS()
982 QualType elementType = recurse(T->getElementType()); in VisitConstantArrayType() local
983 if (elementType.isNull()) in VisitConstantArrayType()
995 QualType elementType = recurse(T->getElementType()); in VisitVariableArrayType() local
996 if (elementType.isNull()) in VisitVariableArrayType()
1010 if (elementType.isNull()) in VisitIncompleteArrayType()
1022 if (elementType.isNull()) in VisitVectorType()
1034 if (elementType.isNull()) in VisitExtVectorType()
[all …]
/freebsd/contrib/llvm-project/clang/lib/CodeGen/
H A DAddress.h124 ConstantAddress(llvm::Constant *pointer, llvm::Type *elementType, in ConstantAddress() argument
126 : Address(pointer, elementType, alignment) {} in ConstantAddress()
H A DCGCXXABI.cpp211 CharUnits CGCXXABI::getArrayCookieSizeImpl(QualType elementType) { in getArrayCookieSizeImpl() argument
227 QualType elementType) { in requiresArrayCookie() argument
233 return elementType.isDestructedType(); in requiresArrayCookie()
H A DCGCXXABI.h594 virtual CharUnits getArrayCookieSizeImpl(QualType elementType);
H A DCGClass.cpp1978 QualType elementType; in EmitCXXAggrConstructorCall() local
1980 emitArrayLength(arrayType, elementType, arrayBegin); in EmitCXXAggrConstructorCall()
2024 llvm::Type *elementType = arrayBase.getElementType(); in EmitCXXAggrConstructorCall() local
2027 elementType, arrayBegin, numElements, "arrayctor.end"); in EmitCXXAggrConstructorCall()
2049 Address curAddr = Address(cur, elementType, eltAlignment); in EmitCXXAggrConstructorCall()
2086 elementType, cur, llvm::ConstantInt::get(SizeTy, 1), "arrayctor.next"); in EmitCXXAggrConstructorCall()
H A DCGDecl.cpp2304 QualType elementType, in emitArrayDestroy() argument
2309 assert(!elementType->isArrayType()); in emitArrayDestroy()
2331 llvm::Type *llvmElementType = ConvertTypeForMem(elementType); in emitArrayDestroy()
2341 elementType); in emitArrayDestroy()
2401 QualType elementType, CharUnits elementAlign, in RegularPartialArrayDestroy() argument
2404 ElementType(elementType), Destroyer(destroyer), in RegularPartialArrayDestroy()
2425 QualType elementType, in IrregularPartialArrayDestroy() argument
2429 ElementType(elementType), Destroyer(destroyer), in IrregularPartialArrayDestroy()
2448 QualType elementType, in pushIrregularPartialArrayCleanup() argument
2465 QualType elementType, in pushRegularPartialArrayCleanup() argument
[all …]
H A DCGExprAgg.cpp505 QualType elementType = in EmitArrayInit() local
519 llvm::Type *llvmElementType = CGF.ConvertTypeForMem(elementType); in EmitArrayInit()
525 elementType.isTriviallyCopyableType(CGF.getContext())) { in EmitArrayInit()
549 QualType::DestructionKind dtorKind = elementType.isDestructedType(); in EmitArrayInit()
561 CGF.pushIrregularPartialArrayCleanup(begin, endOfInit, elementType, in EmitArrayInit()
594 Address(element, llvmElementType, elementAlign), elementType); in EmitArrayInit()
606 CGF.getTypes().isZeroInitializable(elementType))) { in EmitArrayInit()
1846 QualType elementType = in VisitArrayInitLoopExpr() local
1851 llvm::Type *llvmElementType = CGF.ConvertTypeForMem(elementType); in VisitArrayInitLoopExpr()
1865 QualType::DestructionKind dtorKind = elementType.isDestructedType(); in VisitArrayInitLoopExpr()
[all …]
H A DCGExprCXX.cpp2044 QualType elementType) { in EmitArrayDelete() argument
2048 CGF.CGM.getCXXABI().ReadArrayCookie(CGF, deletedPtr, E, elementType, in EmitArrayDelete()
2057 numElements, elementType, in EmitArrayDelete()
2061 if (QualType::DestructionKind dtorKind = elementType.isDestructedType()) { in EmitArrayDelete()
2064 CharUnits elementSize = CGF.getContext().getTypeSizeInChars(elementType); in EmitArrayDelete()
2075 CGF.emitArrayDestroy(arrayBegin, arrayEnd, elementType, elementAlign, in EmitArrayDelete()
H A DCGExprScalar.cpp3693 QualType elementType = pointerType->getPointeeType(); in emitPointerArithmetic() local
3695 = CGF.getContext().getAsVariableArrayType(elementType)) { in emitPointerArithmetic()
3720 if (elementType->isVoidType() || elementType->isFunctionType()) in emitPointerArithmetic()
3723 elemTy = CGF.ConvertTypeForMem(elementType); in emitPointerArithmetic()
4074 QualType elementType = expr->getLHS()->getType()->getPointeeType(); in EmitSub() local
4080 = CGF.getContext().getAsVariableArrayType(elementType)) { in EmitSub()
4082 elementType = VlaSize.Type; in EmitSub()
4086 CharUnits eltSize = CGF.getContext().getTypeSizeInChars(elementType); in EmitSub()
4097 if (elementType->isVoidType() || elementType->isFunctionType()) in EmitSub()
4100 elementSize = CGF.getContext().getTypeSizeInChars(elementType); in EmitSub()
H A DCGObjC.cpp1924 QualType elementType; in EmitObjCForCollectionStmt() local
1933 elementType = D->getType(); in EmitObjCForCollectionStmt()
1940 elementType = cast<Expr>(S.getElement())->getType(); in EmitObjCForCollectionStmt()
1943 llvm::Type *convertedElementType = ConvertType(elementType); in EmitObjCForCollectionStmt()
1966 elementType->getAsObjCInterfacePointerType(); in EmitObjCForCollectionStmt()
H A DCodeGenFunction.cpp2152 QualType elementType = arrayType->getElementType(); in emitArrayLength() local
2153 arrayType = getContext().getAsArrayType(elementType); in emitArrayLength()
2157 baseType = elementType; in emitArrayLength()
2240 QualType elementType; in getVLASize() local
2242 elementType = type->getElementType(); in getVLASize()
2254 } while ((type = getContext().getAsVariableArrayType(elementType))); in getVLASize()
2256 return { numElements, elementType }; in getVLASize()
H A DCodeGenFunction.h2101 QualType elementType,
2106 QualType elementType,
2132 QualType elementType, CharUnits elementAlign,
2984 void EmitNewArrayInitializer(const CXXNewExpr *E, QualType elementType,
H A DConstantInitBuilder.cpp249 llvm::Type *elementType = element->getType(); in getOffsetFromGlobalTo() local
252 CharUnits::fromQuantity(layout.getABITypeAlign(elementType))); in getOffsetFromGlobalTo()
253 offset += CharUnits::fromQuantity(layout.getTypeStoreSize(elementType)); in getOffsetFromGlobalTo()
H A DItaniumCXXABI.cpp358 CharUnits getArrayCookieSizeImpl(QualType elementType) override;
487 CharUnits getArrayCookieSizeImpl(QualType elementType) override;
2234 CharUnits ItaniumCXXABI::getArrayCookieSizeImpl(QualType elementType) { in getArrayCookieSizeImpl() argument
2238 CGM.getContext().getPreferredTypeAlignInChars(elementType)); in getArrayCookieSizeImpl()
2312 CharUnits ARMCXXABI::getArrayCookieSizeImpl(QualType elementType) { in getArrayCookieSizeImpl() argument
2322 CGM.getContext().getTypeAlignInChars(elementType)); in getArrayCookieSizeImpl()
2329 QualType elementType) { in InitializeArrayCookie() argument
2338 getContext().getTypeSizeInChars(elementType).getQuantity()); in InitializeArrayCookie()
2347 CharUnits cookieSize = ARMCXXABI::getArrayCookieSizeImpl(elementType); in InitializeArrayCookie()
H A DMicrosoftCXXABI.cpp471 QualType elementType) override;
2295 QualType elementType) { in requiresArrayCookie() argument
2298 return elementType.isDestructedType(); in requiresArrayCookie()
2326 QualType elementType) { in InitializeArrayCookie() argument
2330 CharUnits cookieSize = getArrayCookieSizeImpl(elementType); in InitializeArrayCookie()
/freebsd/contrib/llvm-project/clang/lib/Sema/
H A DSemaInit.cpp1594 CheckSubElementType(ElementEntity, IList, elementType, Index, in CheckComplexType()
1747 QualType elementType = VT->getElementType(); in CheckVectorType() local
1789 AggrDeductionCandidateParamTypes->push_back(elementType); in CheckVectorType()
1804 CheckSubElementType(ElementEntity, IList, elementType, Index, in CheckVectorType()
1829 unsigned typeSize = SemaRef.Context.getTypeSize(elementType); in CheckVectorType()
1831 if (elementType->isFloatingType()) in CheckVectorType()
1833 else if (elementType->isSignedIntegerType()) in CheckVectorType()
1835 else if (elementType->isUnsignedIntegerType()) in CheckVectorType()
1863 CheckSubElementType(ElementEntity, IList, elementType, Index, in CheckVectorType()
1994 QualType elementType = arrayType->getElementType(); in CheckArrayType() local
[all …]
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DMemRegion.cpp1151 MemRegionManager::getElementRegion(QualType elementType, NonLoc Idx, in getElementRegion() argument
1154 QualType T = Ctx.getCanonicalType(elementType).getUnqualifiedType(); in getElementRegion()
H A DSimpleSValBuilder.cpp1162 QualType elementType; in evalBinOpLN() local
1169 elementType = elemReg->getElementType(); in evalBinOpLN()
1180 elementType = resultTy->getPointeeType(); in evalBinOpLN()
1186 if (elementType->isVoidType()) in evalBinOpLN()
1187 elementType = getContext().CharTy; in evalBinOpLN()
1190 return loc::MemRegionVal(MemMgr.getElementRegion(elementType, *indexV, in evalBinOpLN()
H A DStore.cpp443 SVal StoreManager::getLValueElement(QualType elementType, NonLoc Offset, in getLValueElement() argument
450 if (!BT.isNull() && !elementType.isNull()) { in getLValueElement()
453 PointeeTy.getCanonicalType() == elementType.getCanonicalType()) in getLValueElement()
485 return loc::MemRegionVal(MRMgr.getElementRegion(elementType, Offset, in getLValueElement()
505 elementType, Offset, cast<SubRegion>(ElemR->getSuperRegion()), Ctx)); in getLValueElement()
517 return loc::MemRegionVal(MRMgr.getElementRegion(elementType, NewIdx, ArrayR, in getLValueElement()
/freebsd/contrib/llvm-project/clang/utils/TableGen/
H A DASTTableGen.cpp80 } else if (auto elementType = getArrayElementType()) { in emitCXXValueTypeName() local
82 elementType.emitCXXValueTypeName(forRead, out); in emitCXXValueTypeName()

12