Home
last modified time | relevance | path

Searched refs:elementType (Results 1 – 25 of 38) sorted by relevance

12

/netbsd-src/external/apache2/llvm/dist/clang/utils/ABITest/
H A DTypeGen.py119 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 DABITestGen.py242 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 …]
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/AST/
H A DTypeProperties.td13 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 …]
/netbsd-src/external/apache2/llvm/dist/clang/lib/AST/
H A DType.cpp882 QualType elementType = recurse(T->getElementType()); in TRIVIAL_TYPE_CLASS() local
883 if (elementType.isNull()) in TRIVIAL_TYPE_CLASS()
886 if (elementType.getAsOpaquePtr() == T->getElementType().getAsOpaquePtr()) in TRIVIAL_TYPE_CLASS()
889 return Ctx.getComplexType(elementType); in TRIVIAL_TYPE_CLASS()
950 QualType elementType = recurse(T->getElementType()); in VisitConstantArrayType() local
951 if (elementType.isNull()) in VisitConstantArrayType()
954 if (elementType.getAsOpaquePtr() == T->getElementType().getAsOpaquePtr()) in VisitConstantArrayType()
957 return Ctx.getConstantArrayType(elementType, T->getSize(), T->getSizeExpr(), in VisitConstantArrayType()
963 QualType elementType = recurse(T->getElementType()); in VisitVariableArrayType() local
964 if (elementType.isNull()) in VisitVariableArrayType()
[all …]
H A DASTContext.cpp3636 QualType ASTContext::getDependentSizedArrayType(QualType elementType, in getDependentSizedArrayType() argument
3652 DependentSizedArrayType(*this, elementType, QualType(), in getDependentSizedArrayType()
3662 SplitQualType canonElementType = getCanonicalType(elementType).split(); in getDependentSizedArrayType()
3690 if (QualType(canonElementType.Ty, 0) == elementType && in getDependentSizedArrayType()
3698 DependentSizedArrayType(*this, elementType, canon, numElements, in getDependentSizedArrayType()
3704 QualType ASTContext::getIncompleteArrayType(QualType elementType, in getIncompleteArrayType() argument
3708 IncompleteArrayType::Profile(ID, elementType, ASM, elementTypeQuals); in getIncompleteArrayType()
3720 if (!elementType.isCanonical() || elementType.hasLocalQualifiers()) { in getIncompleteArrayType()
3721 SplitQualType canonSplit = getCanonicalType(elementType).split(); in getIncompleteArrayType()
3733 IncompleteArrayType(elementType, canon, ASM, elementTypeQuals); in getIncompleteArrayType()
[all …]
/netbsd-src/external/apache2/llvm/dist/clang/utils/TableGen/
H A DASTTableGen.cpp79 } else if (auto elementType = getArrayElementType()) { in emitCXXValueTypeName() local
81 elementType.emitCXXValueTypeName(forRead, out); in emitCXXValueTypeName()
/netbsd-src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Core/
H A DStore.cpp442 SVal StoreManager::getLValueElement(QualType elementType, NonLoc Offset, in getLValueElement() argument
471 return loc::MemRegionVal(MRMgr.getElementRegion(elementType, Offset, in getLValueElement()
491 elementType, Offset, cast<SubRegion>(ElemR->getSuperRegion()), Ctx)); in getLValueElement()
503 return loc::MemRegionVal(MRMgr.getElementRegion(elementType, NewIdx, ArrayR, in getLValueElement()
H A DSimpleSValBuilder.cpp1060 QualType elementType; in evalBinOpLN() local
1067 elementType = elemReg->getElementType(); in evalBinOpLN()
1078 elementType = resultTy->getPointeeType(); in evalBinOpLN()
1084 if (elementType->isVoidType()) in evalBinOpLN()
1085 elementType = getContext().CharTy; in evalBinOpLN()
1088 return loc::MemRegionVal(MemMgr.getElementRegion(elementType, *indexV, in evalBinOpLN()
H A DMemRegion.cpp1096 MemRegionManager::getElementRegion(QualType elementType, NonLoc Idx, in getElementRegion() argument
1099 QualType T = Ctx.getCanonicalType(elementType).getUnqualifiedType(); in getElementRegion()
/netbsd-src/external/apache2/llvm/dist/clang/lib/CodeGen/
H A DConstantInitBuilder.cpp250 llvm::Type *elementType = element->getType(); in getOffsetFromGlobalTo() local
253 layout.getABITypeAlignment(elementType))); in getOffsetFromGlobalTo()
254 offset += CharUnits::fromQuantity(layout.getTypeStoreSize(elementType)); in getOffsetFromGlobalTo()
H A DCGCXXABI.cpp170 CharUnits CGCXXABI::getArrayCookieSizeImpl(QualType elementType) { in getArrayCookieSizeImpl() argument
186 QualType elementType) { in requiresArrayCookie() argument
192 return elementType.isDestructedType(); in requiresArrayCookie()
H A DCGExprAgg.cpp480 QualType elementType = in EmitArrayInit() local
490 CharUnits elementSize = CGF.getContext().getTypeSizeInChars(elementType); in EmitArrayInit()
498 elementType.isTriviallyCopyableType(CGF.getContext())) { in EmitArrayInit()
520 QualType::DestructionKind dtorKind = elementType.isDestructedType(); in EmitArrayInit()
532 CGF.pushIrregularPartialArrayCleanup(begin, endOfInit, elementType, in EmitArrayInit()
564 CGF.MakeAddrLValue(Address(element, elementAlign), elementType); in EmitArrayInit()
577 CGF.getTypes().isZeroInitializable(elementType))) { in EmitArrayInit()
611 CGF.MakeAddrLValue(Address(currentElement, elementAlign), elementType); in EmitArrayInit()
1791 QualType elementType = in VisitArrayInitLoopExpr() local
1793 CharUnits elementSize = CGF.getContext().getTypeSizeInChars(elementType); in VisitArrayInitLoopExpr()
[all …]
H A DCGDecl.cpp2219 QualType elementType, in emitArrayDestroy() argument
2224 assert(!elementType->isArrayType()); in emitArrayDestroy()
2250 pushRegularPartialArrayCleanup(begin, element, elementType, elementAlign, in emitArrayDestroy()
2254 destroyer(*this, Address(element, elementAlign), elementType); in emitArrayDestroy()
2310 QualType elementType, CharUnits elementAlign, in RegularPartialArrayDestroy() argument
2313 ElementType(elementType), Destroyer(destroyer), in RegularPartialArrayDestroy()
2334 QualType elementType, in IrregularPartialArrayDestroy() argument
2338 ElementType(elementType), Destroyer(destroyer), in IrregularPartialArrayDestroy()
2357 QualType elementType, in pushIrregularPartialArrayCleanup() argument
2362 elementType, elementAlign, in pushIrregularPartialArrayCleanup()
[all …]
H A DCodeGenFunction.cpp1991 QualType elementType = arrayType->getElementType(); in emitArrayLength() local
1992 arrayType = getContext().getAsArrayType(elementType); in emitArrayLength()
1996 baseType = elementType; in emitArrayLength()
2078 QualType elementType; in getVLASize() local
2080 elementType = type->getElementType(); in getVLASize()
2092 } while ((type = getContext().getAsVariableArrayType(elementType))); in getVLASize()
2094 return { numElements, elementType }; in getVLASize()
H A DCGExprCXX.cpp2017 QualType elementType) { in EmitArrayDelete() argument
2021 CGF.CGM.getCXXABI().ReadArrayCookie(CGF, deletedPtr, E, elementType, in EmitArrayDelete()
2030 numElements, elementType, in EmitArrayDelete()
2034 if (QualType::DestructionKind dtorKind = elementType.isDestructedType()) { in EmitArrayDelete()
2037 CharUnits elementSize = CGF.getContext().getTypeSizeInChars(elementType); in EmitArrayDelete()
2048 CGF.emitArrayDestroy(arrayBegin, arrayEnd, elementType, elementAlign, in EmitArrayDelete()
H A DItaniumCXXABI.cpp312 CharUnits getArrayCookieSizeImpl(QualType elementType) override;
479 CharUnits getArrayCookieSizeImpl(QualType elementType) override;
2177 CharUnits ItaniumCXXABI::getArrayCookieSizeImpl(QualType elementType) { in getArrayCookieSizeImpl() argument
2181 CGM.getContext().getPreferredTypeAlignInChars(elementType)); in getArrayCookieSizeImpl()
2256 CharUnits ARMCXXABI::getArrayCookieSizeImpl(QualType elementType) { in getArrayCookieSizeImpl() argument
2266 CGM.getContext().getTypeAlignInChars(elementType)); in getArrayCookieSizeImpl()
2273 QualType elementType) { in InitializeArrayCookie() argument
2282 getContext().getTypeSizeInChars(elementType).getQuantity()); in InitializeArrayCookie()
2291 CharUnits cookieSize = ARMCXXABI::getArrayCookieSizeImpl(elementType); in InitializeArrayCookie()
H A DCGExprScalar.cpp3444 QualType elementType = pointerType->getPointeeType(); in emitPointerArithmetic() local
3446 = CGF.getContext().getAsVariableArrayType(elementType)) { in emitPointerArithmetic()
3469 if (elementType->isVoidType() || elementType->isFunctionType()) { in emitPointerArithmetic()
3777 QualType elementType = expr->getLHS()->getType()->getPointeeType(); in EmitSub() local
3783 = CGF.getContext().getAsVariableArrayType(elementType)) { in EmitSub()
3785 elementType = VlaSize.Type; in EmitSub()
3789 CharUnits eltSize = CGF.getContext().getTypeSizeInChars(elementType); in EmitSub()
3800 if (elementType->isVoidType() || elementType->isFunctionType()) in EmitSub()
3803 elementSize = CGF.getContext().getTypeSizeInChars(elementType); in EmitSub()
H A DCGClass.cpp1920 QualType elementType; in EmitCXXAggrConstructorCall() local
1922 emitArrayLength(arrayType, elementType, arrayBegin); in EmitCXXAggrConstructorCall()
1966 llvm::Type *elementType = arrayBase.getElementType(); in EmitCXXAggrConstructorCall() local
1969 elementType, arrayBegin, numElements, "arrayctor.end"); in EmitCXXAggrConstructorCall()
2028 elementType, cur, llvm::ConstantInt::get(SizeTy, 1), "arrayctor.next"); in EmitCXXAggrConstructorCall()
H A DCGCXXABI.h559 virtual CharUnits getArrayCookieSizeImpl(QualType elementType);
H A DCGObjC.cpp1876 QualType elementType; in EmitObjCForCollectionStmt() local
1885 elementType = D->getType(); in EmitObjCForCollectionStmt()
1892 elementType = cast<Expr>(S.getElement())->getType(); in EmitObjCForCollectionStmt()
1895 llvm::Type *convertedElementType = ConvertType(elementType); in EmitObjCForCollectionStmt()
1918 elementType->getAsObjCInterfacePointerType(); in EmitObjCForCollectionStmt()
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DMemRegion.h1147 ElementRegion(QualType elementType, NonLoc Idx, const SubRegion *sReg) in ElementRegion() argument
1148 : TypedValueRegion(sReg, ElementRegionKind), ElementType(elementType), in ElementRegion()
1153 assert(!elementType.isNull() && !elementType->isVoidType() && in ElementRegion()
1157 static void ProfileRegion(llvm::FoldingSetNodeID& ID, QualType elementType,
1404 const ElementRegion *getElementRegion(QualType elementType, NonLoc Idx,
H A DStore.h149 virtual SVal getLValueElement(QualType elementType, NonLoc offset, SVal Base);
/netbsd-src/external/mit/expat/dist/lib/
H A Dxmlparse.c3243 ELEMENT_TYPE *elementType; in storeAtts() local
3256 elementType in storeAtts()
3258 if (! elementType) { in storeAtts()
3262 elementType = (ELEMENT_TYPE *)lookup(parser, &dtd->elementTypes, name, in storeAtts()
3264 if (! elementType) in storeAtts()
3266 if (parser->m_ns && ! setElementTypePrefix(parser, elementType)) in storeAtts()
3269 nDefaultAtts = elementType->nDefaultAtts; in storeAtts()
3377 if (attId == elementType->defaultAtts[j].id) { in storeAtts()
3378 isCdata = elementType->defaultAtts[j].isCdata; in storeAtts()
3422 if (elementType->idAtt && (elementType->idAtt->name)[-1]) { in storeAtts()
[all …]
/netbsd-src/external/apache2/llvm/dist/clang/lib/Sema/
H A DSemaInit.cpp1537 QualType elementType = DeclType->castAs<ComplexType>()->getElementType(); in CheckComplexType() local
1543 CheckSubElementType(ElementEntity, IList, elementType, Index, in CheckComplexType()
1689 QualType elementType = VT->getElementType(); in CheckVectorType() local
1744 CheckSubElementType(ElementEntity, IList, elementType, Index, in CheckVectorType()
1769 unsigned typeSize = SemaRef.Context.getTypeSize(elementType); in CheckVectorType()
1771 if (elementType->isFloatingType()) in CheckVectorType()
1773 else if (elementType->isSignedIntegerType()) in CheckVectorType()
1775 else if (elementType->isUnsignedIntegerType()) in CheckVectorType()
1803 CheckSubElementType(ElementEntity, IList, elementType, Index, in CheckVectorType()
1812 VecType = SemaRef.Context.getExtVectorType(elementType, numIElts); in CheckVectorType()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/bindings/go/llvm/
H A Dir.go675 func ArrayType(elementType Type, elementCount int) (t Type) {
676 t.C = C.LLVMArrayType(elementType.C, C.unsigned(elementCount))
679 func PointerType(elementType Type, addressSpace int) (t Type) {
680 t.C = C.LLVMPointerType(elementType.C, C.unsigned(addressSpace))
683 func VectorType(elementType Type, elementCount int) (t Type) {
684 t.C = C.LLVMVectorType(elementType.C, C.unsigned(elementCount))

12