/freebsd/contrib/llvm-project/clang/lib/CodeGen/ |
H A D | CGBuilder.h | 181 ElTy->getElementType(Index), 201 CreateInBoundsGEP(Addr.getElementType(), Addr.getPointer(), 203 ElTy->getElementType(), 215 llvm::Type *ElTy = Addr.getElementType(); 238 Addr.getElementType(), 254 Addr.getElementType(), 261 assert(Addr.getElementType() == TypeCache.Int8Ty); 264 Addr.getElementType(), 270 assert(Addr.getElementType() == TypeCache.Int8Ty); 273 Addr.getElementType(), [all …]
|
H A D | Address.h | 62 llvm::Type *getElementType() const { in getElementType() function 87 return Address(NewPointer, getElementType(), getAlignment(), in withPointer() 94 return Address(getPointer(), getElementType(), NewAlignment, in withAlignment() 145 addr.getElementType(), addr.getAlignment()); in castImpl()
|
H A D | ABIInfo.cpp | 67 if (!isHomogeneousAggregate(AT->getElementType(), Base, Members)) in isHomogeneousAggregate() 103 FT = AT->getElementType(); in isHomogeneousAggregate() 131 Ty = CT->getElementType(); in isHomogeneousAggregate() 147 QualType EltTy = VT->getElementType(); in isHomogeneousAggregate()
|
H A D | CGValue.h | 114 ER.ElementType = addr.getElementType(); 357 ElementType = address.getElementType(); in setAddress() 426 R.ElementType = address.getElementType(); in MakeAddr() 438 R.ElementType = vecAddress.getElementType(); in MakeVectorElt() 452 R.ElementType = vecAddress.getElementType(); in MakeExtVectorElt() 472 R.ElementType = Addr.getElementType(); in MakeBitfield() 498 R.ElementType = matAddress.getElementType(); in MakeMatrixElt()
|
H A D | CGExprComplex.cpp | 288 QualType ElementType = CT->getElementType(); in getPromotionType() 458 SrcType = SrcType->castAs<ComplexType>()->getElementType(); in EmitComplexToComplexCast() 459 DestType = DestType->castAs<ComplexType>()->getElementType(); in EmitComplexToComplexCast() 476 DestType = DestType->castAs<ComplexType>()->getElementType(); in EmitScalarToComplexCast() 695 Op.Ty->castAs<ComplexType>()->getElementType()); in EmitComplexBinOpLibCall() 697 Op.Ty->castAs<ComplexType>()->getElementType()); in EmitComplexBinOpLibCall() 699 Op.Ty->castAs<ComplexType>()->getElementType()); in EmitComplexBinOpLibCall() 701 Op.Ty->castAs<ComplexType>()->getElementType()); in EmitComplexBinOpLibCall() 713 4, Op.Ty->castAs<ComplexType>()->getElementType()); in EmitComplexBinOpLibCall() 1172 OpInfo.Ty->castAs<ComplexType>()->getElementType(); in EmitCompoundAssignLValue() [all …]
|
H A D | PatternInit.cpp | 68 initializationPatternFor(CGM, ArrTy->getElementType())); in initializationPatternFor() 81 Struct[El] = initializationPatternFor(CGM, StructTy->getElementType(El)); in initializationPatternFor()
|
H A D | SwiftCallingConv.cpp | 47 if (auto commonTy = getCommonType(firstVecTy->getElementType(), in getCommonType() 48 secondVecTy->getElementType())) { in getCommonType() 49 return (commonTy == firstVecTy->getElementType() ? first : second); in getCommonType() 79 QualType eltType = arrayType->getElementType(); in addTypedData() 87 auto eltType = complexType->getElementType(); in addTypedData() 337 auto eltTy = vecTy->getElementType(); in addEntry() 691 CGM, vectorSize, vectorTy->getElementType(), in isLegalVectorType() 705 auto eltTy = vectorTy->getElementType(); in splitLegalVectorType() 727 auto eltTy = origVectorTy->getElementType(); in legalizeVectorType()
|
H A D | CodeGenTypes.cpp | 96 return llvm::ArrayType::get(ConvertType(MT->getElementType()), in ConvertTypeForMem() 550 llvm::Type *EltTy = ConvertType(cast<ComplexType>(Ty)->getElementType()); in ConvertType() 576 ResultType = ConvertTypeForMem(A->getElementType()); in ConvertType() 585 ResultType = ConvertTypeForMem(A->getElementType()); in ConvertType() 595 llvm::Type *EltTy = ConvertTypeForMem(A->getElementType()); in ConvertType() 613 : ConvertType(VT->getElementType()); in ConvertType() 620 llvm::FixedVectorType::get(ConvertType(MT->getElementType()), in ConvertType()
|
/freebsd/contrib/llvm-project/clang/lib/AST/ |
H A D | TypePrinter.cpp | 390 printBefore(T->getElementType(), OS); in printComplexBefore() 394 printAfter(T->getElementType(), OS); in printComplexAfter() 536 printAfter(T->getElementType(), OS); in printConstantArrayAfter() 548 printAfter(T->getElementType(), OS); in printIncompleteArrayAfter() 574 printAfter(T->getElementType(), OS); in printVariableArrayAfter() 610 printAfter(T->getElementType(), OS); in printDependentSizedArrayAfter() 640 printAfter(T->getElementType(), OS); in printDependentSizedExtVectorAfter() 714 printAfter(T->getElementType(), OS); in printVectorAfter() 796 printAfter(T->getElementType(), OS); in printDependentVectorAfter() 805 printAfter(T->getElementType(), OS); in printExtVectorAfter() [all …]
|
H A D | Type.cpp | 88 getElementType().getBaseTypeIdentifier(); in getBaseTypeIdentifier() 110 return AT->getElementType().isConstant(Ctx); in isConstant() 394 return ATy->getElementType().getTypePtr(); in getArrayElementTypeNoTypeQual() 403 ->getElementType().getTypePtr(); in getArrayElementTypeNoTypeQual() 629 return CT->getElementType()->isFloatingType(); in isComplexType() 1895 return Visit(T->getElementType()); in VisitArrayType() 1900 return Visit(T->getElementType()); in VisitDependentSizedExtVectorType() 1904 return Visit(T->getElementType()); in VisitVectorType() 1908 return Visit(T->getElementType()); in VisitDependentSizedMatrixType() 1912 return Visit(T->getElementType()); in VisitConstantMatrixType() [all …]
|
H A D | StmtIterator.cpp | 31 t = vt->getElementType().getTypePtr(); in FindVA() 41 p = FindVA(p->getElementType().getTypePtr()); in NextVA()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/IR/ |
H A D | DerivedTypes.h | 342 Type *getElementType(unsigned N) const { in getElementType() function 348 Type *getTypeAtIndex(unsigned N) const { return getElementType(N); } in getTypeAtIndex() 367 return cast<StructType>(this)->getElementType(N); in getStructElementType() 384 Type *getElementType() const { return ContainedType; } in getElementType() function 436 Type *getElementType() const { return ContainedType; } in getElementType() function 455 unsigned EltBits = VTy->getElementType()->getPrimitiveSizeInBits(); in getInteger() 465 auto *EltTy = cast<IntegerType>(VTy->getElementType()); in getExtendedElementVectorType() 474 if (VTy->getElementType()->isFloatingPointTy()) { in getTruncatedElementVectorType() 475 switch(VTy->getElementType()->getTypeID()) { in getTruncatedElementVectorType() 511 return VectorType::get(VTy->getElementType(), in getHalfElementsVectorType() [all …]
|
H A D | MatrixBuilder.h | 114 FixedVectorType::get(OpType->getElementType(), Rows * Columns); 133 FixedVectorType::get(LHSType->getElementType(), LHSRows * RHSColumns); 174 ->getElementType() in CreateAdd() 199 ->getElementType() in CreateSub() 224 ->getElementType() in CreateScalarDiv()
|
H A D | GetElementPtrTypeIterator.h | 106 return VT->getElementType(); in getIndexedType() 115 CurTy = ATy->getElementType();
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | LowLevelTypeUtils.cpp | 23 LLT ScalarTy = getLLTForType(*VTy->getElementType(), DL); in getLLTForType() 50 MVT::getIntegerVT(Ty.getElementType().getSizeInBits()), in getMVTForLLT() 57 EVT EltVT = getApproximateEVTForLLT(Ty.getElementType(), DL, Ctx); in getApproximateEVTForLLT()
|
/freebsd/contrib/llvm-project/clang/lib/CodeGen/Targets/ |
H A D | ARM.cpp | 472 return isIntegerLikeType(CT->getElementType(), Context, VMContext); in isIntegerLikeType() 548 (VT->getElementType()->isFloat16Type() || in classifyReturnType() 549 VT->getElementType()->isHalfType())) || in classifyReturnType() 551 VT->getElementType()->isBFloat16Type())) in classifyReturnType() 648 (VT->getElementType()->isFloat16Type() || in isIllegalVectorType() 649 VT->getElementType()->isHalfType())) || in isIllegalVectorType() 651 VT->getElementType()->isBFloat16Type())) in isIllegalVectorType() 683 return containsAnyFP16Vectors(AT->getElementType()); in containsAnyFP16Vectors() 702 return (VT->getElementType()->isFloat16Type() || in containsAnyFP16Vectors() 703 VT->getElementType()->isBFloat16Type() || in containsAnyFP16Vectors() [all …]
|
H A D | RISCV.cpp | 83 QualType EltTy = RetTy->castAs<ComplexType>()->getElementType(); in computeInfo() 144 QualType EltTy = CTy->getElementType(); in detectFPCCEligibleStructHelper() 156 QualType EltTy = ATy->getElementType(); in detectFPCCEligibleStructHelper() 324 assert(VT->getElementType()->isBuiltinType() && "expected builtin type!"); in coerceVLSVector() 337 EltType = CGT.ConvertType(VT->getElementType()); in coerceVLSVector() 380 QualType EltTy = Ty->castAs<ComplexType>()->getElementType(); in classifyArgumentType()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/ |
H A D | X86FixupVectorConstants.cpp | 86 bool IsInteger = CDS->getElementType()->isIntegerTy(); in extractConstantBits() 87 bool IsFloat = CDS->getElementType()->isHalfTy() || in extractConstantBits() 88 CDS->getElementType()->isBFloatTy() || in extractConstantBits() 89 CDS->getElementType()->isFloatTy() || in extractConstantBits() 90 CDS->getElementType()->isDoubleTy(); in extractConstantBits() 93 unsigned EltBits = CDS->getElementType()->getPrimitiveSizeInBits(); in extractConstantBits()
|
/freebsd/contrib/llvm-project/llvm/lib/IR/ |
H A D | Constants.cpp | 295 if (!(VTy->getElementType()->isIntegerTy() || in isElementWiseEqual() 790 Type *EltTy = VTy->getElementType(); in mergeUndefsWith() 2426 Type *EltTy = V1VTy->getElementType(); in getShuffleVector() 2636 return ATy->getElementType(); in getElementType() 2918 assert(isa<IntegerType>(getElementType()) && in getElementAsInteger() 2938 assert(isa<IntegerType>(getElementType()) && in getElementAsAPInt() 2968 switch (getElementType()->getTypeID()) { in getElementAsAPFloat() 2991 assert(getElementType()->isFloatTy() && in getElementAsFloat() 2997 assert(getElementType()->isDoubleTy() && in getElementAsDouble() 3003 if (getElementType()->isHalfTy() || getElementType()->isBFloatTy() || in getElementAsConstant() [all …]
|
H A D | Type.cpp | 62 return ATy->getElementType()->isScalableTy(); in isScalableTy() 152 return NumElements == 0 || ATy->getElementType()->isEmptyTy(); in isEmptyTy() 158 if (!STy->getElementType(i)->isEmptyTy()) in isEmptyTy() 192 TypeSize ETS = VTy->getElementType()->getPrimitiveSizeInBits(); in getPrimitiveSizeInBits() 208 return VTy->getElementType()->getFPMantissaWidth(); in getFPMantissaWidth() 222 return ATy->getElementType()->isSized(Visited); in isSizedDerivedType() 225 return VTy->getElementType()->isSized(Visited); in isSizedDerivedType() 615 return getElementType(Idx); in getTypeAtIndex()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/ |
H A D | LowLevelType.h | 199 return isVector() ? getElementType() : *this; in getScalarType() 234 getElementType()); in divide() 247 getElementType()); in multiplyElements() 280 constexpr LLT getElementType() const { in getElementType() function
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/ |
H A D | MachineIRBuilder.cpp | 245 assert((ResTy.getElementType() == Op0Ty.getElementType()) && in buildPadVectorWithUndefElements() 249 auto Unmerge = buildUnmerge(Op0Ty.getElementType(), Op0); in buildPadVectorWithUndefElements() 273 assert((ResTy.getElementType() == Op0Ty.getElementType()) && in buildDeleteTrailingVectorElements() 279 auto Unmerge = buildUnmerge(Op0Ty.getElementType(), Op0); in buildDeleteTrailingVectorElements() 703 LLT EltTy = Res.getLLTTy(*getMRI()).getElementType(); in buildBuildVectorConstant() 723 Res.getLLTTy(*getMRI()).getElementType().getSizeInBits()) in buildBuildVectorTrunc() 731 assert(Src.getLLTTy(*getMRI()) == DstTy.getElementType() && in buildShuffleSplat() 749 assert(DstTy.getElementType() == Src1Ty.getElementType() && in buildShuffleVector() 750 DstTy.getElementType() == Src2Ty.getElementType()); in buildShuffleVector() 1271 assert(SrcOps[0].getLLTTy(*getMRI()).getElementType() == in buildInstr() [all …]
|
H A D | LegalizeMutations.cpp | 104 TypeIdx, LLT::fixed_vector(NewNumElements, VecTy.getElementType())); in moreElementsToNextPow2() 110 return std::make_pair(TypeIdx, Query.Types[TypeIdx].getElementType()); in scalarize()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/CodeGen/GlobalISel/ |
H A D | LegalizerInfo.h | 1087 if (T.isVector() && T.getElementType().isPointer()) in minScalarEltSameAsIf() 1129 return VecTy.isVector() && VecTy.getElementType() == EltTy && in clampMinNumElements() 1135 TypeIdx, LLT::fixed_vector(MinElements, VecTy.getElementType())); in clampMinNumElements() 1147 return VecTy.isVector() && VecTy.getElementType() == EltTy && in alignNumElementsTo() 1154 TypeIdx, LLT::fixed_vector(NewSize, VecTy.getElementType())); in alignNumElementsTo() 1167 return VecTy.isVector() && VecTy.getElementType() == EltTy && in clampMaxNumElements() 1173 VecTy.getElementType()); in clampMaxNumElements() 1185 assert(MinTy.getElementType() == MaxTy.getElementType() && in clampNumElements() 1188 const LLT EltTy = MinTy.getElementType(); in clampNumElements()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/ |
H A D | Mips16HardFloat.cpp | 81 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()
|