Home
last modified time | relevance | path

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

1234567891011

/freebsd-12.1/contrib/llvm/include/llvm/IR/
H A DDerivedTypes.h314 Type *getElementType(unsigned N) const { in getElementType() function
334 return cast<StructType>(this)->getElementType(N); in getStructElementType()
360 Type *getElementType() const { return ContainedType; } in getElementType() function
407 unsigned EltBits = VTy->getElementType()->getPrimitiveSizeInBits(); in getInteger()
416 unsigned EltBits = VTy->getElementType()->getPrimitiveSizeInBits(); in getExtendedElementVectorType()
424 unsigned EltBits = VTy->getElementType()->getPrimitiveSizeInBits(); in getTruncatedElementVectorType()
437 return VectorType::get(VTy->getElementType(), NumElts/2); in getHalfElementsVectorType()
444 return VectorType::get(VTy->getElementType(), NumElts*2); in getDoubleElementsVectorType()
453 return getNumElements() * getElementType()->getPrimitiveSizeInBits(); in getBitWidth()
486 Type *getElementType() const { return PointeeTy; } in getElementType() function
/freebsd-12.1/contrib/llvm/tools/clang/lib/AST/
H A DTypePrinter.cpp357 printBefore(T->getElementType(), OS); in printComplexBefore()
361 printAfter(T->getElementType(), OS); in printComplexAfter()
488 printBefore(T->getElementType(), OS); in printConstantArrayBefore()
504 printAfter(T->getElementType(), OS); in printConstantArrayAfter()
517 printAfter(T->getElementType(), OS); in printIncompleteArrayAfter()
544 printAfter(T->getElementType(), OS); in printVariableArrayAfter()
581 printAfter(T->getElementType(), OS); in printDependentSizedArrayAfter()
611 printAfter(T->getElementType(), OS); in printDependentSizedExtVectorAfter()
652 printAfter(T->getElementType(), OS); in printVectorAfter()
700 printAfter(T->getElementType(), OS); in printDependentVectorAfter()
[all …]
H A DType.cpp84 getElementType().getBaseTypeIdentifier(); in getBaseTypeIdentifier()
106 return AT->getElementType().isConstant(Ctx); in isConstant()
264 return ATy->getElementType().getTypePtr(); in getArrayElementTypeNoTypeQual()
273 ->getElementType().getTypePtr(); in getArrayElementTypeNoTypeQual()
483 return CT->getElementType()->isFloatingType(); in isComplexType()
500 if (Complex->getElementType()->isIntegerType()) in getAsComplexIntegerType()
1686 return Visit(T->getElementType()); in VisitArrayType()
1691 return Visit(T->getElementType()); in VisitDependentSizedExtVectorType()
1695 return Visit(T->getElementType()); in VisitVectorType()
1735 return VT->getElementType()->isIntegerType(); in hasIntegerRepresentation()
[all …]
H A DStmtIterator.cpp32 t = vt->getElementType().getTypePtr(); in FindVA()
42 p = FindVA(p->getElementType().getTypePtr()); in NextVA()
H A DASTStructuralEquivalence.cpp289 if (!IsStructurallyEquivalent(Context, Array1->getElementType(), in IsArrayStructurallyEquivalent()
290 Array2->getElementType())) in IsArrayStructurallyEquivalent()
343 cast<ComplexType>(T1)->getElementType(), in IsStructurallyEquivalent()
344 cast<ComplexType>(T2)->getElementType())) in IsStructurallyEquivalent()
458 if (!IsStructurallyEquivalent(Context, Vec1->getElementType(), in IsStructurallyEquivalent()
459 Vec2->getElementType())) in IsStructurallyEquivalent()
472 if (!IsStructurallyEquivalent(Context, Vec1->getElementType(), in IsStructurallyEquivalent()
473 Vec2->getElementType())) in IsStructurallyEquivalent()
482 if (!IsStructurallyEquivalent(Context, Vec1->getElementType(), in IsStructurallyEquivalent()
483 Vec2->getElementType())) in IsStructurallyEquivalent()
[all …]
/freebsd-12.1/contrib/llvm/lib/IR/
H A DType.cpp101 return NumElements == 0 || ATy->getElementType()->isEmptyTy(); in isEmptyTy()
107 if (!STy->getElementType(i)->isEmptyTy()) in isEmptyTy()
136 return VTy->getElementType()->getFPMantissaWidth(); in getFPMantissaWidth()
149 return ATy->getElementType()->isSized(Visited); in isSizedDerivedType()
152 return VTy->getElementType()->isSized(Visited); in isSizedDerivedType()
535 return STy->getElementType(Idx); in getTypeAtIndex()
538 return cast<SequentialType>(this)->getElementType(); in getTypeAtIndex()
544 return STy->getElementType(Idx); in getTypeAtIndex()
547 return cast<SequentialType>(this)->getElementType(); in getTypeAtIndex()
H A DConstantFold.cpp57 Type *DstEltTy = DstTy->getElementType(); in BitCastConstantVector()
111 && PTy->getElementType()->isSized()) { in FoldBitCast()
116 Type *ElTy = PTy->getElementType(); in FoldBitCast()
117 while (ElTy != DPTy->getElementType()) { in FoldBitCast()
120 ElTy = STy->getElementType(0); in FoldBitCast()
124 ElTy = STy->getElementType(); in FoldBitCast()
131 if (ElTy == DPTy->getElementType()) in FoldBitCast()
383 if (!PTy->getElementType()->isIntegerTy(1)) in getFoldedSizeOf()
446 if (!PTy->getElementType()->isIntegerTy(1)) in getFoldedAlignOf()
575 Type *DstEltTy = DestVecTy->getElementType(); in ConstantFoldCastInstruction()
[all …]
H A DIRBuilder.cpp64 if (PT->getElementType()->isIntegerTy(8)) in getCastedInt8PtrValue()
475 Type *DataTy = PtrTy->getElementType(); in CreateMaskedLoad()
495 Type *DataTy = PtrTy->getElementType(); in CreateMaskedStore()
527 auto PtrTy = cast<PointerType>(PtrsTy->getElementType()); in CreateMaskedGather()
529 Type *DataTy = VectorType::get(PtrTy->getElementType(), NumElts); in CreateMaskedGather()
561 auto PtrTy = cast<PointerType>(PtrsTy->getElementType()); in CreateMaskedScatter()
563 PtrTy->getElementType() == DataTy->getElementType() && in CreateMaskedScatter()
609 assert(isa<FunctionType>(FuncPtrType->getElementType()) && in CreateGCStatepointCallCommon()
660 assert(isa<FunctionType>(FuncPtrType->getElementType()) && in CreateGCStatepointInvokeCommon()
H A DConstants.cpp117 if (CV->getElementType()->isFloatingPointTy()) in isAllOnesValue()
143 if (CV->getElementType()->isFloatingPointTy()) in isOneValue()
169 if (CV->getElementType()->isFloatingPointTy()) in isMinSignedValue()
2422 return getType()->getElementType(); in getElementType()
2681 assert(isa<IntegerType>(getElementType()) && in getElementAsInteger()
2701 assert(isa<IntegerType>(getElementType()) && in getElementAsAPInt()
2731 switch (getElementType()->getTypeID()) { in getElementAsAPFloat()
2750 assert(getElementType()->isFloatTy() && in getElementAsFloat()
2756 assert(getElementType()->isDoubleTy() && in getElementAsDouble()
2762 if (getElementType()->isHalfTy() || getElementType()->isFloatTy() || in getElementAsConstant()
[all …]
/freebsd-12.1/contrib/llvm/tools/clang/lib/CodeGen/
H A DCGBuilder.h174 return Address(CreateStructGEP(Addr.getElementType(),
214 return Address(CreateInBoundsGEP(Addr.getElementType(), Addr.getPointer(),
228 return Address(CreateGEP(Addr.getElementType(), Addr.getPointer(),
236 assert(Addr.getElementType() == TypeCache.Int8Ty);
242 assert(Addr.getElementType() == TypeCache.Int8Ty);
252 Addr.getElementType(), Addr.getPointer(), Idx0, Idx1, Name));
H A DCGExprComplex.cpp234 QualType Elem = E->getType()->castAs<ComplexType>()->getElementType(); in VisitCXXScalarValueInitExpr()
393 CGF.ConvertType(getComplexType(E->getType())->getElementType()); in VisitExpr()
426 SrcType = SrcType->castAs<ComplexType>()->getElementType(); in EmitComplexToComplexCast()
427 DestType = DestType->castAs<ComplexType>()->getElementType(); in EmitComplexToComplexCast()
442 DestType = DestType->castAs<ComplexType>()->getElementType(); in EmitScalarToComplexCast()
607 Op.Ty->castAs<ComplexType>()->getElementType()); in EmitComplexBinOpLibCall()
609 Op.Ty->castAs<ComplexType>()->getElementType()); in EmitComplexBinOpLibCall()
611 Op.Ty->castAs<ComplexType>()->getElementType()); in EmitComplexBinOpLibCall()
613 Op.Ty->castAs<ComplexType>()->getElementType()); in EmitComplexBinOpLibCall()
625 4, Op.Ty->castAs<ComplexType>()->getElementType()); in EmitComplexBinOpLibCall()
[all …]
H A DSwiftCallingConv.cpp46 if (auto commonTy = getCommonType(firstVecTy->getElementType(), in getCommonType()
47 secondVecTy->getElementType())) { in getCommonType()
48 return (commonTy == firstVecTy->getElementType() ? first : second); in getCommonType()
78 QualType eltType = arrayType->getElementType(); in addTypedData()
86 auto eltType = complexType->getElementType(); in addTypedData()
323 auto eltTy = vecTy->getElementType(); in addEntry()
678 return isLegalVectorType(CGM, vectorSize, vectorTy->getElementType(), in isLegalVectorType()
693 auto eltTy = vectorTy->getElementType(); in splitLegalVectorType()
715 auto eltTy = origVectorTy->getElementType(); in legalizeVectorType()
H A DAddress.h52 llvm::Type *getElementType() const { in getElementType() function
53 return getType()->getElementType(); in getElementType()
H A DCodeGenTypes.cpp170 return isSafeToConvert(AT->getElementType(), CGT, AlreadyChecked); in isSafeToConvert()
530 llvm::Type *EltTy = ConvertType(cast<ComplexType>(Ty)->getElementType()); in ConvertType()
560 ResultType = ConvertTypeForMem(A->getElementType()); in ConvertType()
569 ResultType = ConvertTypeForMem(A->getElementType()); in ConvertType()
579 llvm::Type *EltTy = ConvertTypeForMem(A->getElementType()); in ConvertType()
594 ResultType = llvm::VectorType::get(ConvertType(VT->getElementType()), in ConvertType()
/freebsd-12.1/contrib/llvm/lib/FuzzMutate/
H A DRandomIRBuilder.cpp144 if (!PtrTy->getElementType()->isSized() || in findPointer()
145 !PtrTy->getElementType()->isFirstClassType()) in findPointer()
149 return Pred.matches(Srcs, UndefValue::get(PtrTy->getElementType())); in findPointer()
/freebsd-12.1/contrib/llvm/lib/Target/AArch64/
H A DAArch64LegalizerInfo.cpp57 (Query.Types[0].getElementType() != s64 || in AArch64LegalizerInfo()
61 LLT EltTy = Query.Types[0].getElementType(); in AArch64LegalizerInfo()
330 const LLT &EltTy = Ty.getElementType(); in AArch64LegalizerInfo()
341 return std::make_pair(TypeIdx, Ty.getElementType()); in AArch64LegalizerInfo()
403 0, Query.Types[0].getElementType()); in AArch64LegalizerInfo()
408 1, Query.Types[1].getElementType()); in AArch64LegalizerInfo()
414 const LLT &EltTy = Query.Types[1].getElementType(); in AArch64LegalizerInfo()
/freebsd-12.1/contrib/llvm/lib/Transforms/Scalar/
H A DScalarizer.cpp231 Ty = PtrTy->getElementType(); in Scatterer()
251 PointerType::get(PtrTy->getElementType()->getVectorElementType(), in operator []()
412 Layout.ElemTy = Layout.VecTy->getElementType(); in getVectorLayout()
619 Res[I] = Builder.CreateCast(CI.getOpcode(), Op0[I], VT->getElementType(), in visitCastInst()
640 Res[I] = Builder.CreateBitCast(Op0[I], DstVT->getElementType(), in visitBitCastInst()
646 Type *MidTy = VectorType::get(DstVT->getElementType(), FanOut); in visitBitCastInst()
664 Type *MidTy = VectorType::get(SrcVT->getElementType(), FanIn); in visitBitCastInst()
672 Res[ResI] = Builder.CreateBitCast(V, DstVT->getElementType(), in visitBitCastInst()
694 Res[I] = UndefValue::get(VT->getElementType()); in visitShuffleVectorInst()
716 Res[I] = Builder.CreatePHI(VT->getElementType(), NumOps, in visitPHINode()
/freebsd-12.1/contrib/llvm/lib/Target/AMDGPU/
H A DAMDGPURewriteOutArguments.cpp220 return DL->getTypeSizeInBits(VT0->getElementType()) == in isVec3ToVec4Shuffle()
221 DL->getTypeSizeInBits(VT1->getElementType()); in isVec3ToVec4Shuffle()
405 EffectiveEltTy = CT->getElementType(0); in runOnFunction()
455 auto *EltTy = ArgType->getElementType(); in runOnFunction()
/freebsd-12.1/contrib/llvm/lib/Target/Hexagon/
H A DHexagonTargetObjectFile.cpp244 GType = PT->getElementType(); in isGlobalInSmallSection()
313 return getSmallestAddressableSize(ATy->getElementType(), GV, TM); in getSmallestAddressableSize()
317 return getSmallestAddressableSize(PTy->getElementType(), GV, TM); in getSmallestAddressableSize()
345 const Type *GTy = GO->getType()->getElementType(); in selectSmallSectionForGlobal()
H A DHexagonTargetTransformInfo.cpp50 if (!cast<VectorType>(VecTy)->getElementType()->isIntegerTy()) in isTypeForHVX()
176 unsigned Cost = VecTy->getElementType()->isFloatingPointTy() ? FloatFactor in getMemoryOpCost()
256 Type *ElemTy = Val->isVectorTy() ? cast<VectorType>(Val)->getElementType() in getVectorInstrCost()
/freebsd-12.1/contrib/llvm/lib/Target/Mips/
H A DMips16HardFloat.cpp81 if ((ST->getElementType(0)->isFloatTy()) && in whichFPReturnVariant()
82 (ST->getElementType(1)->isFloatTy())) in whichFPReturnVariant()
84 if ((ST->getElementType(0)->isDoubleTy()) && in whichFPReturnVariant()
85 (ST->getElementType(1)->isDoubleTy())) in whichFPReturnVariant()
/freebsd-12.1/contrib/llvm/lib/Transforms/IPO/
H A DArgumentPromotion.cpp142 Type *AgTy = cast<PointerType>(I->getType())->getElementType(); in doPromotion()
198 cast<PointerType>(I->getType()->getScalarType())->getElementType(), in doPromotion()
258 Type *AgTy = cast<PointerType>(I->getType())->getElementType(); in doPromotion()
292 ElTy = ElPTy->getElementType(); in doPromotion()
385 Type *AgTy = cast<PointerType>(I->getType())->getElementType(); in doPromotion()
759 return isDenselyPacked(seqTy->getElementType(), DL); in isDenselyPacked()
766 Type *ElTy = StructTy->getElementType(i); in isDenselyPacked()
897 Type *AgTy = cast<PointerType>(PtrArg->getType())->getElementType(); in promoteArguments()
/freebsd-12.1/contrib/llvm/include/llvm/CodeGen/GlobalISel/
H A DLegalizerInfo.h665 Query.Types[LargeTypeIdx].getElementType()); in minScalarSameAs()
688 return VecTy.isVector() && VecTy.getElementType() == EltTy && in clampMinNumElements()
706 return VecTy.isVector() && VecTy.getElementType() == EltTy && in clampMaxNumElements()
712 return std::make_pair(TypeIdx, VecTy.getElementType()); in clampMaxNumElements()
725 assert(MinTy.getElementType() == MaxTy.getElementType() && in clampNumElements()
728 const LLT &EltTy = MinTy.getElementType(); in clampNumElements()
/freebsd-12.1/contrib/llvm/lib/ExecutionEngine/
H A DExecutionEngine.cpp616 Type *ElemTy = STy->getElementType(i); in getConstantValue()
631 Type *ElemTy = VTy->getElementType(); in getConstantValue()
927 ElemTy = CDV->getElementType(); in getConstantValue()
931 ElemTy = VTy->getElementType(); in getConstantValue()
1004 CDV->getElementType()->getPrimitiveSizeInBits(), in getConstantValue()
1078 if (cast<VectorType>(Ty)->getElementType()->isDoubleTy()) in StoreValueToMemory()
1080 if (cast<VectorType>(Ty)->getElementType()->isFloatTy()) in StoreValueToMemory()
1082 if (cast<VectorType>(Ty)->getElementType()->isIntegerTy()) { in StoreValueToMemory()
1155 Type *ElemT = VT->getElementType(); in LoadValueFromMemory()
1194 getDataLayout().getTypeAllocSize(CP->getType()->getElementType()); in InitializeMemory()
[all …]
/freebsd-12.1/contrib/llvm/lib/Analysis/
H A DLoopUnrollAnalyzer.cpp117 if (CDS->getElementType() != I.getType()) in visitLoad()
120 unsigned ElemSize = CDS->getElementType()->getPrimitiveSizeInBits() / 8U; in visitLoad()

1234567891011