| /src/contrib/llvm-project/clang/include/clang/AST/ |
| H A D | TypeProperties.td | 13 def : Property<"elementType", QualType> { 17 def : Creator<[{ return ctx.getComplexType(elementType); }]>; 113 def : Property<"elementType", QualType> { 133 return ctx.getConstantArrayType(elementType, sizeValue, size, 141 ctx.getConstantArrayType(elementType,sizeValue, 148 return ctx.getIncompleteArrayType(elementType, sizeModifier, 165 return ctx.getVariableArrayType(elementType, size, sizeModifier, 184 return ctx.getDependentSizedArrayType(elementType, size, sizeModifier, 192 def : Property<"elementType", QualType> { 203 return ctx.getVectorType(elementType, numElements, vectorKind); [all …]
|
| /src/contrib/llvm-project/clang/lib/CodeGen/ |
| H A D | Address.h | 154 Address(llvm::Value *pointer, llvm::Type *elementType, CharUnits alignment, 156 : Pointer(pointer, IsKnownNonNull), ElementType(elementType), in Pointer() 159 assert(elementType != nullptr && "Element type cannot be null"); in Pointer() 298 ConstantAddress(llvm::Constant *pointer, llvm::Type *elementType, in ConstantAddress() argument 300 : RawAddress(pointer, elementType, alignment) {} in ConstantAddress()
|
| H A D | ConstantInitBuilder.cpp | 249 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 D | CGExprAgg.cpp | 510 QualType elementType = in EmitArrayInit() local 512 CharUnits elementSize = CGF.getContext().getTypeSizeInChars(elementType); in EmitArrayInit() 515 llvm::Type *llvmElementType = CGF.ConvertTypeForMem(elementType); in EmitArrayInit() 521 elementType.isTriviallyCopyableType(CGF.getContext())) { in EmitArrayInit() 548 QualType::DestructionKind dtorKind = elementType.isDestructedType(); in EmitArrayInit() 564 CGF.pushIrregularPartialArrayCleanup(begin, endOfInit, elementType, in EmitArrayInit() 591 Address(element, llvmElementType, elementAlign), elementType); in EmitArrayInit() 617 CGF.getTypes().isZeroInitializable(elementType))) { in EmitArrayInit() 655 Address(currentElement, llvmElementType, elementAlign), elementType); in EmitArrayInit() 1822 QualType elementType = in VisitArrayInitLoopExpr() local [all …]
|
| H A D | CGCXXABI.cpp | 221 CharUnits CGCXXABI::getArrayCookieSizeImpl(QualType elementType) { in getArrayCookieSizeImpl() argument 237 QualType elementType) { in requiresArrayCookie() argument 243 return elementType.isDestructedType(); in requiresArrayCookie()
|
| H A D | CGDecl.cpp | 2365 QualType elementType, in emitArrayDestroy() argument 2370 assert(!elementType->isArrayType()); in emitArrayDestroy() 2392 llvm::Type *llvmElementType = ConvertTypeForMem(elementType); in emitArrayDestroy() 2397 pushRegularPartialArrayCleanup(begin, element, elementType, elementAlign, in emitArrayDestroy() 2402 elementType); in emitArrayDestroy() 2462 QualType elementType, CharUnits elementAlign, in RegularPartialArrayDestroy() argument 2465 ElementType(elementType), Destroyer(destroyer), in RegularPartialArrayDestroy() 2486 QualType elementType, in IrregularPartialArrayDestroy() argument 2490 ElementType(elementType), Destroyer(destroyer), in IrregularPartialArrayDestroy() 2509 QualType elementType, in pushIrregularPartialArrayCleanup() argument [all …]
|
| H A D | CGExprCXX.cpp | 2041 QualType elementType) { in EmitArrayDelete() argument 2045 CGF.CGM.getCXXABI().ReadArrayCookie(CGF, deletedPtr, E, elementType, in EmitArrayDelete() 2054 numElements, elementType, in EmitArrayDelete() 2058 if (QualType::DestructionKind dtorKind = elementType.isDestructedType()) { in EmitArrayDelete() 2061 CharUnits elementSize = CGF.getContext().getTypeSizeInChars(elementType); in EmitArrayDelete() 2072 CGF.emitArrayDestroy(arrayBegin, arrayEnd, elementType, elementAlign, in EmitArrayDelete()
|
| H A D | CGExprScalar.cpp | 3979 QualType elementType = pointerType->getPointeeType(); in emitPointerArithmetic() local 3981 = CGF.getContext().getAsVariableArrayType(elementType)) { in emitPointerArithmetic() 4006 if (elementType->isVoidType() || elementType->isFunctionType()) in emitPointerArithmetic() 4009 elemTy = CGF.ConvertTypeForMem(elementType); in emitPointerArithmetic() 4364 QualType elementType = expr->getLHS()->getType()->getPointeeType(); in EmitSub() local 4370 = CGF.getContext().getAsVariableArrayType(elementType)) { in EmitSub() 4372 elementType = VlaSize.Type; in EmitSub() 4376 CharUnits eltSize = CGF.getContext().getTypeSizeInChars(elementType); in EmitSub() 4387 if (elementType->isVoidType() || elementType->isFunctionType()) in EmitSub() 4390 elementSize = CGF.getContext().getTypeSizeInChars(elementType); in EmitSub() [all …]
|
| H A D | CodeGenFunction.cpp | 2232 QualType elementType = arrayType->getElementType(); in emitArrayLength() local 2233 arrayType = getContext().getAsArrayType(elementType); in emitArrayLength() 2237 baseType = elementType; in emitArrayLength() 2319 QualType elementType; in getVLASize() local 2321 elementType = type->getElementType(); in getVLASize() 2333 } while ((type = getContext().getAsVariableArrayType(elementType))); in getVLASize() 2335 return { numElements, elementType }; in getVLASize()
|
| H A D | CGClass.cpp | 1987 QualType elementType; in EmitCXXAggrConstructorCall() local 1989 emitArrayLength(arrayType, elementType, arrayBegin); in EmitCXXAggrConstructorCall() 2033 llvm::Type *elementType = arrayBase.getElementType(); in EmitCXXAggrConstructorCall() local 2036 elementType, arrayBegin, numElements, "arrayctor.end"); in EmitCXXAggrConstructorCall() 2058 Address curAddr = Address(cur, elementType, eltAlignment); in EmitCXXAggrConstructorCall() 2095 elementType, cur, llvm::ConstantInt::get(SizeTy, 1), "arrayctor.next"); in EmitCXXAggrConstructorCall()
|
| H A D | ItaniumCXXABI.cpp | 357 CharUnits getArrayCookieSizeImpl(QualType elementType) override; 492 CharUnits getArrayCookieSizeImpl(QualType elementType) override; 2421 CharUnits ItaniumCXXABI::getArrayCookieSizeImpl(QualType elementType) { in getArrayCookieSizeImpl() argument 2425 CGM.getContext().getPreferredTypeAlignInChars(elementType)); in getArrayCookieSizeImpl() 2499 CharUnits ARMCXXABI::getArrayCookieSizeImpl(QualType elementType) { in getArrayCookieSizeImpl() argument 2509 CGM.getContext().getTypeAlignInChars(elementType)); in getArrayCookieSizeImpl() 2516 QualType elementType) { in InitializeArrayCookie() argument 2525 getContext().getTypeSizeInChars(elementType).getQuantity()); in InitializeArrayCookie() 2534 CharUnits cookieSize = ARMCXXABI::getArrayCookieSizeImpl(elementType); in InitializeArrayCookie()
|
| H A D | CGCXXABI.h | 585 virtual CharUnits getArrayCookieSizeImpl(QualType elementType);
|
| /src/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
| H A D | Store.cpp | 443 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() 495 return loc::MemRegionVal(MRMgr.getElementRegion(elementType, Offset, in getLValueElement() 515 elementType, Offset, cast<SubRegion>(ElemR->getSuperRegion()), Ctx)); in getLValueElement() 527 return loc::MemRegionVal(MRMgr.getElementRegion(elementType, NewIdx, ArrayR, in getLValueElement()
|
| H A D | SimpleSValBuilder.cpp | 1162 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 D | MemRegion.cpp | 1170 MemRegionManager::getElementRegion(QualType elementType, NonLoc Idx, in getElementRegion() argument 1173 QualType T = Ctx.getCanonicalType(elementType).getUnqualifiedType(); in getElementRegion()
|
| /src/sys/netgraph/ |
| H A D | ng_parse.h | 336 const struct ng_parse_type *elementType; member 362 const struct ng_parse_type *elementType; member
|
| H A D | ng_parse.c | 266 return ALIGNMENT(fi->elementType); in ng_fixedarray_getAlign() 313 return ALIGNMENT(ai->elementType); in ng_array_getAlign() 1574 etype = ai->elementType; in ng_get_composite_etype() 1581 etype = fi->elementType; in ng_get_composite_etype()
|
| /src/contrib/llvm-project/clang/utils/TableGen/ |
| H A D | ASTTableGen.cpp | 80 } else if (auto elementType = getArrayElementType()) { in emitCXXValueTypeName() local 82 elementType.emitCXXValueTypeName(forRead, out); in emitCXXValueTypeName()
|
| /src/contrib/llvm-project/clang/lib/AST/ |
| H A D | Type.cpp | 968 QualType elementType = recurse(T->getElementType()); in TRIVIAL_TYPE_CLASS() local 969 if (elementType.isNull()) in TRIVIAL_TYPE_CLASS() 972 if (elementType.getAsOpaquePtr() == T->getElementType().getAsOpaquePtr()) in TRIVIAL_TYPE_CLASS() 975 return Ctx.getComplexType(elementType); in TRIVIAL_TYPE_CLASS() 1036 QualType elementType = recurse(T->getElementType()); in VisitConstantArrayType() local 1037 if (elementType.isNull()) in VisitConstantArrayType() 1040 if (elementType.getAsOpaquePtr() == T->getElementType().getAsOpaquePtr()) in VisitConstantArrayType() 1043 return Ctx.getConstantArrayType(elementType, T->getSize(), T->getSizeExpr(), in VisitConstantArrayType() 1049 QualType elementType = recurse(T->getElementType()); in VisitVariableArrayType() local 1050 if (elementType.isNull()) in VisitVariableArrayType() [all …]
|
| /src/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
| H A D | MemRegion.h | 1205 ElementRegion(QualType elementType, NonLoc Idx, const SubRegion *sReg) in ElementRegion() argument 1206 : TypedValueRegion(sReg, ElementRegionKind), ElementType(elementType), in ElementRegion() 1211 assert(!elementType.isNull() && !elementType->isVoidType() && in ElementRegion() 1215 static void ProfileRegion(llvm::FoldingSetNodeID& ID, QualType elementType, 1509 const ElementRegion *getElementRegion(QualType elementType, NonLoc Idx,
|
| H A D | Store.h | 150 virtual SVal getLValueElement(QualType elementType, NonLoc offset, SVal Base);
|
| /src/sys/dev/mpr/ |
| H A D | mpr_sas_lsi.c | 279 u16 elementType; in mprsas_fw_work() local 296 elementType = le16toh(element->ElementFlags) & in mprsas_fw_work() 301 if ((elementType != in mprsas_fw_work() 303 && (elementType != in mprsas_fw_work()
|
| /src/contrib/expat/lib/ |
| H A D | xmlparse.c | 542 static int setElementTypePrefix(XML_Parser parser, ELEMENT_TYPE *elementType); 3825 ELEMENT_TYPE *elementType; local 3838 elementType 3840 if (! elementType) { 3844 elementType = (ELEMENT_TYPE *)lookup(parser, &dtd->elementTypes, name, 3846 if (! elementType) 3848 if (parser->m_ns && ! setElementTypePrefix(parser, elementType)) 3851 nDefaultAtts = elementType->nDefaultAtts; 3959 if (attId == elementType->defaultAtts[j].id) { 3960 isCdata = elementType->defaultAtts[j].isCdata; [all …]
|
| /src/contrib/llvm-project/clang/lib/Sema/ |
| H A D | SemaInit.cpp | 1664 QualType elementType = DeclType->castAs<ComplexType>()->getElementType(); in CheckComplexType() local 1670 CheckSubElementType(ElementEntity, IList, elementType, Index, in CheckComplexType() 1827 QualType elementType = VT->getElementType(); in CheckVectorType() local 1869 AggrDeductionCandidateParamTypes->push_back(elementType); in CheckVectorType() 1884 CheckSubElementType(ElementEntity, IList, elementType, Index, in CheckVectorType() 1909 unsigned typeSize = SemaRef.Context.getTypeSize(elementType); in CheckVectorType() 1911 if (elementType->isFloatingType()) in CheckVectorType() 1913 else if (elementType->isSignedIntegerType()) in CheckVectorType() 1915 else if (elementType->isUnsignedIntegerType()) in CheckVectorType() 1943 CheckSubElementType(ElementEntity, IList, elementType, Index, in CheckVectorType() [all …]
|
| /src/contrib/llvm-project/llvm/lib/Target/SPIRV/ |
| H A D | SPIRVInstrInfo.td | 189 def OpTypeArray: Op<28, (outs TYPE:$type), (ins TYPE:$elementType, ID:$length), 190 "$type = OpTypeArray $elementType $length">; 191 def OpTypeRuntimeArray: Op<29, (outs TYPE:$type), (ins TYPE:$elementType), 192 "$type = OpTypeRuntimeArray $elementType">;
|