| /openbsd-src/gnu/llvm/clang/utils/ABITest/ |
| H A D | TypeGen.py | 119 def __init__(self, index, isVector, elementType, size): argument 127 self.elementType = elementType 130 eltSize = self.elementType.sizeof() 138 return 'vector (%s)[%d]'%(self.elementType,self.size) 140 return '(%s)[%d]'%(self.elementType,self.size) 142 return '(%s)[]'%(self.elementType,) 145 elementName = printer.getTypeName(self.elementType) 158 def __init__(self, index, elementType): argument 160 self.elementType = elementType 163 return '_Complex (%s)'%(self.elementType) [all …]
|
| H A D | ABITestGen.py | 242 for t in self.getTestValues(t.elementType): 245 values = list(self.getTestValues(t.elementType)) 303 … self.printValueOfType(prefix, '(__real %s)'%name, t.elementType, output=output,indent=indent) 304 … self.printValueOfType(prefix, '(__imag %s)'%name, t.elementType, output=output,indent=indent) 310 …self.printValueOfType(prefix, '((%s*) &%s)[%d]'%(t.elementType,name,i), t.elementType, output=outp… 312 …self.printValueOfType(prefix, '%s[%d]'%(name,i), t.elementType, output=output,indent=indent) … 333 …self.checkTypeValues('(__real %s)'%nameLHS, '(__real %s)'%nameRHS, t.elementType, output=output,in… 334 …self.checkTypeValues('(__imag %s)'%nameLHS, '(__imag %s)'%nameRHS, t.elementType, output=output,in… 340 self.checkTypeValues('((%s*) &%s)[%d]'%(t.elementType,nameLHS,i), 341 '((%s*) &%s)[%d]'%(t.elementType,nameRHS,i), [all …]
|
| /openbsd-src/gnu/llvm/clang/include/clang/AST/ |
| H A D | TypeProperties.td | 13 def : Property<"elementType", QualType> { 17 def : Creator<[{ return ctx.getComplexType(elementType); }]>; 94 def : Property<"elementType", QualType> { 114 return ctx.getConstantArrayType(elementType, sizeValue, size, 122 return ctx.getIncompleteArrayType(elementType, sizeModifier, 139 return ctx.getVariableArrayType(elementType, size, sizeModifier, 158 return ctx.getDependentSizedArrayType(elementType, size, sizeModifier, 166 def : Property<"elementType", QualType> { 177 return ctx.getVectorType(elementType, numElements, vectorKind); 182 def : Property<"elementType", QualType> { [all …]
|
| /openbsd-src/gnu/llvm/clang/lib/StaticAnalyzer/Core/ |
| H A D | Store.cpp | 444 SVal StoreManager::getLValueElement(QualType elementType, NonLoc Offset, in getLValueElement() argument 451 if (!BT.isNull() && !elementType.isNull()) { in getLValueElement() 454 PointeeTy.getCanonicalType() == elementType.getCanonicalType()) in getLValueElement() 486 return loc::MemRegionVal(MRMgr.getElementRegion(elementType, Offset, in getLValueElement() 506 elementType, Offset, cast<SubRegion>(ElemR->getSuperRegion()), Ctx)); in getLValueElement() 518 return loc::MemRegionVal(MRMgr.getElementRegion(elementType, NewIdx, ArrayR, in getLValueElement()
|
| H A D | SimpleSValBuilder.cpp | 1136 QualType elementType; in evalBinOpLN() local 1143 elementType = elemReg->getElementType(); in evalBinOpLN() 1154 elementType = resultTy->getPointeeType(); in evalBinOpLN() 1160 if (elementType->isVoidType()) in evalBinOpLN() 1161 elementType = getContext().CharTy; in evalBinOpLN() 1164 return loc::MemRegionVal(MemMgr.getElementRegion(elementType, *indexV, in evalBinOpLN()
|
| H A D | MemRegion.cpp | 1135 MemRegionManager::getElementRegion(QualType elementType, NonLoc Idx, in getElementRegion() argument 1138 QualType T = Ctx.getCanonicalType(elementType).getUnqualifiedType(); in getElementRegion()
|
| /openbsd-src/gnu/llvm/clang/utils/TableGen/ |
| H A D | ASTTableGen.cpp | 80 } else if (auto elementType = getArrayElementType()) { in emitCXXValueTypeName() local 82 elementType.emitCXXValueTypeName(forRead, out); in emitCXXValueTypeName()
|
| /openbsd-src/gnu/llvm/clang/lib/AST/ |
| H A D | Type.cpp | 892 QualType elementType = recurse(T->getElementType()); in TRIVIAL_TYPE_CLASS() local 893 if (elementType.isNull()) in TRIVIAL_TYPE_CLASS() 896 if (elementType.getAsOpaquePtr() == T->getElementType().getAsOpaquePtr()) in TRIVIAL_TYPE_CLASS() 899 return Ctx.getComplexType(elementType); in TRIVIAL_TYPE_CLASS() 960 QualType elementType = recurse(T->getElementType()); in VisitConstantArrayType() local 961 if (elementType.isNull()) in VisitConstantArrayType() 964 if (elementType.getAsOpaquePtr() == T->getElementType().getAsOpaquePtr()) in VisitConstantArrayType() 967 return Ctx.getConstantArrayType(elementType, T->getSize(), T->getSizeExpr(), in VisitConstantArrayType() 973 QualType elementType = recurse(T->getElementType()); in VisitVariableArrayType() local 974 if (elementType.isNull()) in VisitVariableArrayType() [all …]
|
| /openbsd-src/gnu/llvm/clang/lib/CodeGen/ |
| H A D | Address.h | 144 ConstantAddress(llvm::Constant *pointer, llvm::Type *elementType, in ConstantAddress() argument 146 : Address(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 | 500 QualType elementType = in EmitArrayInit() local 511 CharUnits elementSize = CGF.getContext().getTypeSizeInChars(elementType); in EmitArrayInit() 514 llvm::Type *llvmElementType = CGF.ConvertTypeForMem(elementType); in EmitArrayInit() 520 elementType.isTriviallyCopyableType(CGF.getContext())) { in EmitArrayInit() 544 QualType::DestructionKind dtorKind = elementType.isDestructedType(); in EmitArrayInit() 556 CGF.pushIrregularPartialArrayCleanup(begin, endOfInit, elementType, in EmitArrayInit() 589 Address(element, llvmElementType, elementAlign), elementType); in EmitArrayInit() 601 CGF.getTypes().isZeroInitializable(elementType))) { in EmitArrayInit() 636 Address(currentElement, llvmElementType, elementAlign), elementType); in EmitArrayInit() 1835 QualType elementType = in VisitArrayInitLoopExpr() local [all …]
|
| H A D | CGCXXABI.cpp | 214 CharUnits CGCXXABI::getArrayCookieSizeImpl(QualType elementType) { in getArrayCookieSizeImpl() argument 230 QualType elementType) { in requiresArrayCookie() argument 236 return elementType.isDestructedType(); in requiresArrayCookie()
|
| H A D | CGDecl.cpp | 2238 QualType elementType, in emitArrayDestroy() argument 2243 assert(!elementType->isArrayType()); in emitArrayDestroy() 2265 llvm::Type *llvmElementType = ConvertTypeForMem(elementType); in emitArrayDestroy() 2270 pushRegularPartialArrayCleanup(begin, element, elementType, elementAlign, in emitArrayDestroy() 2275 elementType); in emitArrayDestroy() 2335 QualType elementType, CharUnits elementAlign, in RegularPartialArrayDestroy() argument 2338 ElementType(elementType), Destroyer(destroyer), in RegularPartialArrayDestroy() 2359 QualType elementType, in IrregularPartialArrayDestroy() argument 2363 ElementType(elementType), Destroyer(destroyer), in IrregularPartialArrayDestroy() 2382 QualType elementType, in pushIrregularPartialArrayCleanup() argument [all …]
|
| H A D | CGExprCXX.cpp | 2018 QualType elementType) { in EmitArrayDelete() argument 2022 CGF.CGM.getCXXABI().ReadArrayCookie(CGF, deletedPtr, E, elementType, in EmitArrayDelete() 2031 numElements, elementType, in EmitArrayDelete() 2035 if (QualType::DestructionKind dtorKind = elementType.isDestructedType()) { in EmitArrayDelete() 2038 CharUnits elementSize = CGF.getContext().getTypeSizeInChars(elementType); in EmitArrayDelete() 2049 CGF.emitArrayDestroy(arrayBegin, arrayEnd, elementType, elementAlign, in EmitArrayDelete()
|
| H A D | CodeGenFunction.cpp | 2088 QualType elementType = arrayType->getElementType(); in emitArrayLength() local 2089 arrayType = getContext().getAsArrayType(elementType); in emitArrayLength() 2093 baseType = elementType; in emitArrayLength() 2176 QualType elementType; in getVLASize() local 2178 elementType = type->getElementType(); in getVLASize() 2190 } while ((type = getContext().getAsVariableArrayType(elementType))); in getVLASize() 2192 return { numElements, elementType }; in getVLASize()
|
| H A D | CGExprScalar.cpp | 3688 QualType elementType = pointerType->getPointeeType(); in emitPointerArithmetic() local 3690 = CGF.getContext().getAsVariableArrayType(elementType)) { in emitPointerArithmetic() 3714 if (elementType->isVoidType() || elementType->isFunctionType()) { in emitPointerArithmetic() 3720 llvm::Type *elemTy = CGF.ConvertTypeForMem(elementType); in emitPointerArithmetic() 4024 QualType elementType = expr->getLHS()->getType()->getPointeeType(); in EmitSub() local 4030 = CGF.getContext().getAsVariableArrayType(elementType)) { in EmitSub() 4032 elementType = VlaSize.Type; in EmitSub() 4036 CharUnits eltSize = CGF.getContext().getTypeSizeInChars(elementType); in EmitSub() 4047 if (elementType->isVoidType() || elementType->isFunctionType()) in EmitSub() 4050 elementSize = CGF.getContext().getTypeSizeInChars(elementType); in EmitSub()
|
| 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 | 312 CharUnits getArrayCookieSizeImpl(QualType elementType) override; 441 CharUnits getArrayCookieSizeImpl(QualType elementType) override; 2152 CharUnits ItaniumCXXABI::getArrayCookieSizeImpl(QualType elementType) { in getArrayCookieSizeImpl() argument 2156 CGM.getContext().getPreferredTypeAlignInChars(elementType)); in getArrayCookieSizeImpl() 2231 CharUnits ARMCXXABI::getArrayCookieSizeImpl(QualType elementType) { in getArrayCookieSizeImpl() argument 2241 CGM.getContext().getTypeAlignInChars(elementType)); in getArrayCookieSizeImpl() 2248 QualType elementType) { in InitializeArrayCookie() argument 2257 getContext().getTypeSizeInChars(elementType).getQuantity()); in InitializeArrayCookie() 2266 CharUnits cookieSize = ARMCXXABI::getArrayCookieSizeImpl(elementType); in InitializeArrayCookie()
|
| H A D | CGCXXABI.h | 584 virtual CharUnits getArrayCookieSizeImpl(QualType elementType);
|
| H A D | CGObjC.cpp | 1935 QualType elementType; in EmitObjCForCollectionStmt() local 1944 elementType = D->getType(); in EmitObjCForCollectionStmt() 1951 elementType = cast<Expr>(S.getElement())->getType(); in EmitObjCForCollectionStmt() 1954 llvm::Type *convertedElementType = ConvertType(elementType); in EmitObjCForCollectionStmt() 1977 elementType->getAsObjCInterfacePointerType(); in EmitObjCForCollectionStmt()
|
| /openbsd-src/gnu/llvm/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
| H A D | MemRegion.h | 1195 ElementRegion(QualType elementType, NonLoc Idx, const SubRegion *sReg) in ElementRegion() argument 1196 : TypedValueRegion(sReg, ElementRegionKind), ElementType(elementType), in ElementRegion() 1201 assert(!elementType.isNull() && !elementType->isVoidType() && in ElementRegion() 1205 static void ProfileRegion(llvm::FoldingSetNodeID& ID, QualType elementType, 1458 const ElementRegion *getElementRegion(QualType elementType, NonLoc Idx,
|
| H A D | Store.h | 150 virtual SVal getLValueElement(QualType elementType, NonLoc offset, SVal Base);
|
| /openbsd-src/lib/libexpat/lib/ |
| H A D | xmlparse.c | 523 static int setElementTypePrefix(XML_Parser parser, ELEMENT_TYPE *elementType); 3339 ELEMENT_TYPE *elementType; in storeAtts() 3352 elementType in storeAtts() 3354 if (! elementType) { in storeAtts() 3358 elementType = (ELEMENT_TYPE *)lookup(parser, &dtd->elementTypes, name, in storeAtts() 3360 if (! elementType) in storeAtts() 3362 if (parser->m_ns && ! setElementTypePrefix(parser, elementType)) in storeAtts() 3365 nDefaultAtts = elementType->nDefaultAtts; in storeAtts() 3473 if (attId == elementType->defaultAtts[j].id) { in storeAtts() 3474 isCdata = elementType in storeAtts() 3322 ELEMENT_TYPE *elementType; storeAtts() local 6572 setElementTypePrefix(XML_Parser parser,ELEMENT_TYPE * elementType) setElementTypePrefix() argument [all...] |
| /openbsd-src/gnu/llvm/llvm/lib/Target/SPIRV/ |
| H A D | SPIRVInstrInfo.td | 168 def OpTypeArray: Op<28, (outs TYPE:$type), (ins TYPE:$elementType, ID:$length), 169 "$type = OpTypeArray $elementType $length">; 170 def OpTypeRuntimeArray: Op<29, (outs TYPE:$type), (ins TYPE:$elementType), 171 "$type = OpTypeRuntimeArray $elementType">;
|
| /openbsd-src/gnu/llvm/clang/lib/Sema/ |
| H A D | SemaInit.cpp | 1551 QualType elementType = DeclType->castAs<ComplexType>()->getElementType(); in CheckComplexType() local 1557 CheckSubElementType(ElementEntity, IList, elementType, Index, in CheckComplexType() 1703 QualType elementType = VT->getElementType(); in CheckVectorType() local 1758 CheckSubElementType(ElementEntity, IList, elementType, Index, in CheckVectorType() 1783 unsigned typeSize = SemaRef.Context.getTypeSize(elementType); in CheckVectorType() 1785 if (elementType->isFloatingType()) in CheckVectorType() 1787 else if (elementType->isSignedIntegerType()) in CheckVectorType() 1789 else if (elementType->isUnsignedIntegerType()) in CheckVectorType() 1817 CheckSubElementType(ElementEntity, IList, elementType, Index, in CheckVectorType() 1826 VecType = SemaRef.Context.getExtVectorType(elementType, numIElts); in CheckVectorType() [all …]
|