Home
last modified time | relevance | path

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

/minix3/external/bsd/llvm/dist/clang/utils/ABITest/
H A DTypeGen.py117 def __init__(self, index, isVector, elementType, size): argument
125 self.elementType = elementType
128 eltSize = self.elementType.sizeof()
136 return 'vector (%s)[%d]'%(self.elementType,self.size)
138 return '(%s)[%d]'%(self.elementType,self.size)
140 return '(%s)[]'%(self.elementType,)
143 elementName = printer.getTypeName(self.elementType)
156 def __init__(self, index, elementType): argument
158 self.elementType = elementType
161 return '_Complex (%s)'%(self.elementType)
[all …]
H A DABITestGen.py241 for t in self.getTestValues(t.elementType):
244 values = list(self.getTestValues(t.elementType))
302 … self.printValueOfType(prefix, '(__real %s)'%name, t.elementType, output=output,indent=indent)
303 … self.printValueOfType(prefix, '(__imag %s)'%name, t.elementType, output=output,indent=indent)
309 …self.printValueOfType(prefix, '((%s*) &%s)[%d]'%(t.elementType,name,i), t.elementType, output=outp…
311 …self.printValueOfType(prefix, '%s[%d]'%(name,i), t.elementType, output=output,indent=indent) …
332 …self.checkTypeValues('(__real %s)'%nameLHS, '(__real %s)'%nameRHS, t.elementType, output=output,in…
333 …self.checkTypeValues('(__imag %s)'%nameLHS, '(__imag %s)'%nameRHS, t.elementType, output=output,in…
339 self.checkTypeValues('((%s*) &%s)[%d]'%(t.elementType,nameLHS,i),
340 '((%s*) &%s)[%d]'%(t.elementType,nameRHS,i),
[all …]
/minix3/external/bsd/llvm/dist/clang/lib/StaticAnalyzer/Core/
H A DStore.cpp427 SVal StoreManager::getLValueElement(QualType elementType, NonLoc Offset, in getLValueElement() argument
455 return loc::MemRegionVal(MRMgr.getElementRegion(elementType, Offset, in getLValueElement()
474 return loc::MemRegionVal(MRMgr.getElementRegion(elementType, Offset, in getLValueElement()
488 return loc::MemRegionVal(MRMgr.getElementRegion(elementType, NewIdx, ArrayR, in getLValueElement()
H A DSimpleSValBuilder.cpp904 QualType elementType; in evalBinOpLN() local
911 elementType = elemReg->getElementType(); in evalBinOpLN()
917 elementType = resultTy->getPointeeType(); in evalBinOpLN()
921 return loc::MemRegionVal(MemMgr.getElementRegion(elementType, *indexV, in evalBinOpLN()
H A DMemRegion.cpp903 MemRegionManager::getElementRegion(QualType elementType, NonLoc Idx, in getElementRegion() argument
907 QualType T = Ctx.getCanonicalType(elementType).getUnqualifiedType(); in getElementRegion()
/minix3/external/bsd/llvm/dist/clang/lib/CodeGen/
H A DCGCXXABI.cpp185 CharUnits CGCXXABI::getArrayCookieSizeImpl(QualType elementType) { in getArrayCookieSizeImpl() argument
201 QualType elementType) { in requiresArrayCookie() argument
207 return elementType.isDestructedType(); in requiresArrayCookie()
H A DCGDecl.cpp986 QualType elementType; in EmitAutoVarAlloca() local
987 std::tie(elementCount, elementType) = getVLASize(Ty); in EmitAutoVarAlloca()
989 llvm::Type *llvmTy = ConvertTypeForMem(elementType); in EmitAutoVarAlloca()
1538 QualType elementType, in RegularPartialArrayDestroy() argument
1541 ElementType(elementType), Destroyer(destroyer) {} in RegularPartialArrayDestroy()
1560 QualType elementType, in IrregularPartialArrayDestroy() argument
1563 ElementType(elementType), Destroyer(destroyer) {} in IrregularPartialArrayDestroy()
1581 QualType elementType, in pushIrregularPartialArrayCleanup() argument
1585 elementType, destroyer); in pushIrregularPartialArrayCleanup()
1596 QualType elementType, in pushRegularPartialArrayCleanup() argument
[all …]
H A DCGExprAgg.cpp87 QualType elementType, InitListExpr *E);
398 QualType elementType, InitListExpr *E) { in EmitArrayInit() argument
414 QualType::DestructionKind dtorKind = elementType.isDestructedType(); in EmitArrayInit()
426 CGF.pushIrregularPartialArrayCleanup(begin, endOfInit, elementType, in EmitArrayInit()
456 LValue elementLV = CGF.MakeAddrLValue(element, elementType); in EmitArrayInit()
469 CGF.getTypes().isZeroInitializable(elementType))) { in EmitArrayInit()
495 LValue elementLV = CGF.MakeAddrLValue(currentElement, elementType); in EmitArrayInit()
1128 QualType elementType = in VisitInitListExpr() local
1136 EmitArrayInit(Dest.getAddr(), AType, elementType, E); in VisitInitListExpr()
H A DCodeGenFunction.cpp1368 QualType elementType = arrayType->getElementType(); in emitArrayLength() local
1369 arrayType = getContext().getAsArrayType(elementType); in emitArrayLength()
1373 baseType = elementType; in emitArrayLength()
1456 QualType elementType; in getVLASize() local
1458 elementType = type->getElementType(); in getVLASize()
1470 } while ((type = getContext().getAsVariableArrayType(elementType))); in getVLASize()
1472 return std::pair<llvm::Value*,QualType>(numElements, elementType); in getVLASize()
H A DItaniumCXXABI.cpp225 CharUnits getArrayCookieSizeImpl(QualType elementType) override;
305 CharUnits getArrayCookieSizeImpl(QualType elementType) override;
1478 CharUnits ItaniumCXXABI::getArrayCookieSizeImpl(QualType elementType) { in getArrayCookieSizeImpl() argument
1482 CGM.getContext().getTypeAlignInChars(elementType)); in getArrayCookieSizeImpl()
1561 CharUnits ARMCXXABI::getArrayCookieSizeImpl(QualType elementType) { in getArrayCookieSizeImpl() argument
1571 CGM.getContext().getTypeAlignInChars(elementType)); in getArrayCookieSizeImpl()
1578 QualType elementType) { in InitializeArrayCookie() argument
1590 getContext().getTypeSizeInChars(elementType).getQuantity()); in InitializeArrayCookie()
1599 CharUnits cookieSize = ARMCXXABI::getArrayCookieSizeImpl(elementType); in InitializeArrayCookie()
H A DCGExprCXX.cpp1549 QualType elementType) { in EmitArrayDelete() argument
1553 CGF.CGM.getCXXABI().ReadArrayCookie(CGF, deletedPtr, E, elementType, in EmitArrayDelete()
1562 numElements, elementType, in EmitArrayDelete()
1566 if (QualType::DestructionKind dtorKind = elementType.isDestructedType()) { in EmitArrayDelete()
1575 CGF.emitArrayDestroy(deletedPtr, arrayEnd, elementType, in EmitArrayDelete()
H A DCGExprScalar.cpp2420 QualType elementType = pointerType->getPointeeType(); in emitPointerArithmetic() local
2422 = CGF.getContext().getAsVariableArrayType(elementType)) { in emitPointerArithmetic()
2443 if (elementType->isVoidType() || elementType->isFunctionType()) { in emitPointerArithmetic()
2609 QualType elementType = expr->getLHS()->getType()->getPointeeType(); in EmitSub() local
2615 = CGF.getContext().getAsVariableArrayType(elementType)) { in EmitSub()
2617 std::tie(numElements, elementType) = CGF.getVLASize(vla); in EmitSub()
2622 CharUnits eltSize = CGF.getContext().getTypeSizeInChars(elementType); in EmitSub()
2633 if (elementType->isVoidType() || elementType->isFunctionType()) in EmitSub()
2636 elementSize = CGF.getContext().getTypeSizeInChars(elementType); in EmitSub()
H A DCGCXXABI.h451 virtual CharUnits getArrayCookieSizeImpl(QualType elementType);
H A DMicrosoftCXXABI.cpp303 QualType elementType) override;
1729 QualType elementType) { in requiresArrayCookie() argument
1732 return elementType.isDestructedType(); in requiresArrayCookie()
1762 QualType elementType) { in InitializeArrayCookie() argument
1766 CharUnits cookieSize = getArrayCookieSizeImpl(elementType); in InitializeArrayCookie()
H A DCGObjC.cpp1579 QualType elementType; in EmitObjCForCollectionStmt() local
1588 elementType = D->getType(); in EmitObjCForCollectionStmt()
1595 elementType = cast<Expr>(S.getElement())->getType(); in EmitObjCForCollectionStmt()
1598 llvm::Type *convertedElementType = ConvertType(elementType); in EmitObjCForCollectionStmt()
H A DCodeGenFunction.h1111 QualType elementType,
1115 QualType elementType,
1725 void EmitNewArrayInitializer(const CXXNewExpr *E, QualType elementType,
H A DCGClass.cpp1616 QualType elementType; in EmitCXXAggrConstructorCall() local
1618 emitArrayLength(arrayType, elementType, arrayBegin); in EmitCXXAggrConstructorCall()
/minix3/external/bsd/llvm/dist/llvm/lib/IR/
H A DType.cpp681 ArrayType *ArrayType::get(Type *elementType, uint64_t NumElements) { in get() argument
682 Type *ElementType = const_cast<Type*>(elementType); in get()
708 VectorType *VectorType::get(Type *elementType, unsigned NumElements) { in get() argument
709 Type *ElementType = const_cast<Type*>(elementType); in get()
/minix3/minix/llvm/passes/magic/support/
H A DTypeUtil.cpp114 TYPECONST Type* elementType = getArrayFreePointerType(type->getContainedType(0)); in getArrayFreePointerType() local
115 type = PointerType::get(elementType, 0); in getArrayFreePointerType()
/minix3/external/mit/expat/dist/lib/
H A Dxmlparse.c2703 ELEMENT_TYPE *elementType; in storeAtts() local
2716 elementType = (ELEMENT_TYPE *)lookup(parser, &dtd->elementTypes, tagNamePtr->str,0); in storeAtts()
2717 if (!elementType) { in storeAtts()
2721 elementType = (ELEMENT_TYPE *)lookup(parser, &dtd->elementTypes, name, in storeAtts()
2723 if (!elementType) in storeAtts()
2725 if (ns && !setElementTypePrefix(parser, elementType)) in storeAtts()
2728 nDefaultAtts = elementType->nDefaultAtts; in storeAtts()
2792 if (attId == elementType->defaultAtts[j].id) { in storeAtts()
2793 isCdata = elementType->defaultAtts[j].isCdata; in storeAtts()
2839 if (elementType->idAtt && (elementType->idAtt->name)[-1]) { in storeAtts()
[all …]
/minix3/external/bsd/llvm/dist/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DMemRegion.h1014 ElementRegion(QualType elementType, NonLoc Idx, const MemRegion* sReg) in ElementRegion() argument
1016 ElementType(elementType), Index(Idx) { in ElementRegion()
1022 static void ProfileRegion(llvm::FoldingSetNodeID& ID, QualType elementType,
1215 const ElementRegion *getElementRegion(QualType elementType, NonLoc Idx,
H A DStore.h102 virtual SVal getLValueElement(QualType elementType, NonLoc offset, SVal Base);
/minix3/external/bsd/llvm/dist/clang/lib/Sema/
H A DSemaInit.cpp1062 QualType elementType = DeclType->getAs<ComplexType>()->getElementType(); in CheckComplexType() local
1068 CheckSubElementType(ElementEntity, IList, elementType, Index, in CheckComplexType()
1209 QualType elementType = VT->getElementType(); in CheckVectorType() local
1268 CheckSubElementType(ElementEntity, IList, elementType, Index, in CheckVectorType()
1293 unsigned typeSize = SemaRef.Context.getTypeSize(elementType); in CheckVectorType()
1295 if (elementType->isFloatingType()) in CheckVectorType()
1297 else if (elementType->isSignedIntegerType()) in CheckVectorType()
1299 else if (elementType->isUnsignedIntegerType()) in CheckVectorType()
1327 CheckSubElementType(ElementEntity, IList, elementType, Index, in CheckVectorType()
1336 VecType = SemaRef.Context.getExtVectorType(elementType, numIElts); in CheckVectorType()
[all …]
/minix3/external/bsd/llvm/dist/clang/lib/AST/
H A DASTContext.cpp2635 QualType ASTContext::getDependentSizedArrayType(QualType elementType, in getDependentSizedArrayType() argument
2651 DependentSizedArrayType(*this, elementType, QualType(), in getDependentSizedArrayType()
2661 SplitQualType canonElementType = getCanonicalType(elementType).split(); in getDependentSizedArrayType()
2689 if (QualType(canonElementType.Ty, 0) == elementType) in getDependentSizedArrayType()
2696 DependentSizedArrayType(*this, elementType, canon, numElements, in getDependentSizedArrayType()
2702 QualType ASTContext::getIncompleteArrayType(QualType elementType, in getIncompleteArrayType() argument
2706 IncompleteArrayType::Profile(ID, elementType, ASM, elementTypeQuals); in getIncompleteArrayType()
2718 if (!elementType.isCanonical() || elementType.hasLocalQualifiers()) { in getIncompleteArrayType()
2719 SplitQualType canonSplit = getCanonicalType(elementType).split(); in getIncompleteArrayType()
2731 IncompleteArrayType(elementType, canon, ASM, elementTypeQuals); in getIncompleteArrayType()
[all …]
/minix3/external/bsd/llvm/dist/llvm/bindings/go/llvm/
H A Dir.go602 func ArrayType(elementType Type, elementCount int) (t Type) {
603 t.C = C.LLVMArrayType(elementType.C, C.unsigned(elementCount))
606 func PointerType(elementType Type, addressSpace int) (t Type) {
607 t.C = C.LLVMPointerType(elementType.C, C.unsigned(addressSpace))
610 func VectorType(elementType Type, elementCount int) (t Type) {
611 t.C = C.LLVMVectorType(elementType.C, C.unsigned(elementCount))