/external/llvm-project/llvm/unittests/CodeGen/ |
D | ScalableVectorMVTsTest.cpp | 52 auto EltCnt = ElementCount::getScalable(2); in TEST() local 53 EVT Vnx2i32 = EVT::getVectorVT(Ctx, MVT::i32, EltCnt); in TEST() 65 EXPECT_EQ(EVT::getVectorVT(Ctx, MVT::i64, EltCnt * 2), MVT::nxv4i64); in TEST() 66 EXPECT_EQ(EVT::getVectorVT(Ctx, MVT::i64, EltCnt.divideCoefficientBy(2)), in TEST() 74 EltCnt = Vnx4i32.getVectorElementCount(); in TEST() 75 EXPECT_EQ(EltCnt.getKnownMinValue(), 4U); in TEST() 76 ASSERT_TRUE(EltCnt.isScalable()); in TEST() 85 EltCnt = V8i32.getVectorElementCount(); in TEST() 86 EXPECT_EQ(EltCnt.getKnownMinValue(), 8U); in TEST() 87 ASSERT_FALSE(EltCnt.isScalable()); in TEST()
|
/external/llvm-project/llvm/unittests/IR/ |
D | VectorTypesTest.cpp | 68 auto EltCnt = ElementCount::getFixed(4); in TEST() local 69 auto *V4Int64Ty = dyn_cast<FixedVectorType>(VectorType::get(Int64Ty, EltCnt)); in TEST() 75 VectorType::get(Int64Ty, EltCnt.divideCoefficientBy(2))); in TEST() 81 dyn_cast<FixedVectorType>(VectorType::get(Int64Ty, EltCnt * 2)); in TEST() 87 dyn_cast<FixedVectorType>(VectorType::get(Float64Ty, EltCnt)); in TEST() 121 EltCnt = V8Int64Ty->getElementCount(); in TEST() 122 EXPECT_EQ(EltCnt.getKnownMinValue(), 8U); in TEST() 123 ASSERT_FALSE(EltCnt.isScalable()); in TEST() 162 auto EltCnt = ElementCount::getScalable(4); in TEST() local 164 dyn_cast<ScalableVectorType>(VectorType::get(Int64Ty, EltCnt)); in TEST() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ADT/ |
D | DenseMapInfo.h | 286 static unsigned getHashValue(const ElementCount& EltCnt) { 287 if (EltCnt.Scalable) 288 return (EltCnt.Min * 37U) - 1U; 290 return EltCnt.Min * 37U;
|
/external/llvm-project/llvm/include/llvm/CodeGen/ |
D | ValueTypes.h | 409 auto EltCnt = getVectorElementCount(); in getHalfNumVectorElementsVT() local 410 assert(EltCnt.isKnownEven() && "Splitting vector, but not in half!"); in getHalfNumVectorElementsVT() 411 return EVT::getVectorVT(Context, EltVT, EltCnt.divideCoefficientBy(2)); in getHalfNumVectorElementsVT() 419 auto EltCnt = getVectorElementCount(); in getDoubleNumVectorElementsVT() local 420 return EVT::getVectorVT(Context, EltVT, EltCnt * 2); in getDoubleNumVectorElementsVT()
|
/external/llvm-project/llvm/include/llvm/IR/ |
D | DerivedTypes.h | 508 auto EltCnt = VTy->getElementCount(); in getHalfElementsVectorType() local 509 assert(EltCnt.isKnownEven() && in getHalfElementsVectorType() 512 EltCnt.divideCoefficientBy(2)); in getHalfElementsVectorType() 518 auto EltCnt = VTy->getElementCount(); in getDoubleElementsVectorType() local 519 assert((EltCnt.getKnownMinValue() * 2ull) <= UINT_MAX && in getDoubleElementsVectorType() 521 return VectorType::get(VTy->getElementType(), EltCnt * 2); in getDoubleElementsVectorType()
|
D | DataLayout.h | 700 auto EltCnt = VTy->getElementCount(); in getTypeSizeInBits() local 701 uint64_t MinBits = EltCnt.getKnownMinValue() * in getTypeSizeInBits() 703 return TypeSize(MinBits, EltCnt.isScalable()); in getTypeSizeInBits()
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/ |
D | DerivedTypes.h | 522 auto EltCnt = VTy->getElementCount(); in getHalfElementsVectorType() local 523 assert ((EltCnt.Min & 1) == 0 && in getHalfElementsVectorType() 525 return VectorType::get(VTy->getElementType(), EltCnt/2); in getHalfElementsVectorType() 531 auto EltCnt = VTy->getElementCount(); in getDoubleElementsVectorType() local 534 return VectorType::get(VTy->getElementType(), EltCnt*2); in getDoubleElementsVectorType()
|
D | DataLayout.h | 658 auto EltCnt = VTy->getElementCount(); in getTypeSizeInBits() local 659 uint64_t MinBits = EltCnt.Min * in getTypeSizeInBits() 661 return TypeSize(MinBits, EltCnt.Scalable); in getTypeSizeInBits()
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/ |
D | ValueTypes.h | 368 auto EltCnt = getVectorElementCount(); in getHalfNumVectorElementsVT() local 369 assert(!(EltCnt.Min & 1) && "Splitting vector, but not in half!"); in getHalfNumVectorElementsVT() 370 return EVT::getVectorVT(Context, EltVT, EltCnt / 2); in getHalfNumVectorElementsVT()
|
/external/llvm-project/llvm/include/llvm/Support/ |
D | TypeSize.h | 516 static unsigned getHashValue(const ElementCount &EltCnt) { 517 unsigned HashVal = EltCnt.getKnownMinValue() * 37U; 518 if (EltCnt.isScalable())
|
D | MachineValueType.h | 464 auto EltCnt = getVectorElementCount(); in getHalfNumVectorElementsVT() local 465 assert(EltCnt.isKnownEven() && "Splitting vector, but not in half!"); in getHalfNumVectorElementsVT() 466 return getVectorVT(EltVT, EltCnt.divideCoefficientBy(2)); in getHalfNumVectorElementsVT()
|
/external/llvm-project/llvm/lib/CodeGen/ |
D | TargetLoweringBase.cpp | 1536 ElementCount EltCnt = VT.getVectorElementCount(); in getVectorTypeBreakdown() local 1544 if (EltCnt.getKnownMinValue() != 1 && in getVectorTypeBreakdown() 1562 if (VT.isScalableVector() && !isPowerOf2_32(EltCnt.getKnownMinValue())) { in getVectorTypeBreakdown() 1588 if (!isPowerOf2_32(EltCnt.getKnownMinValue())) { in getVectorTypeBreakdown() 1589 NumVectorRegs = EltCnt.getKnownMinValue(); in getVectorTypeBreakdown() 1590 EltCnt = ElementCount::getFixed(1); in getVectorTypeBreakdown() 1595 while (EltCnt.getKnownMinValue() > 1 && in getVectorTypeBreakdown() 1596 !isTypeLegal(EVT::getVectorVT(Context, EltTy, EltCnt))) { in getVectorTypeBreakdown() 1597 EltCnt = EltCnt.divideCoefficientBy(2); in getVectorTypeBreakdown() 1603 EVT NewVT = EVT::getVectorVT(Context, EltTy, EltCnt); in getVectorTypeBreakdown()
|
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/ |
D | MachineValueType.h | 397 auto EltCnt = getVectorElementCount(); in getHalfNumVectorElementsVT() local 398 assert(!(EltCnt.Min & 1) && "Splitting vector, but not in half!"); in getHalfNumVectorElementsVT() 399 return getVectorVT(EltVT, EltCnt / 2); in getHalfNumVectorElementsVT()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/SelectionDAG/ |
D | LegalizeTypes.cpp | 852 auto EltCnt = Op.getValueType().getVectorElementCount(); in BitConvertVectorToIntegerVector() local 854 EVT::getVectorVT(*DAG.getContext(), EltNVT, EltCnt), Op); in BitConvertVectorToIntegerVector()
|
/external/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
D | LegalizeTypes.cpp | 885 auto EltCnt = Op.getValueType().getVectorElementCount(); in BitConvertVectorToIntegerVector() local 887 EVT::getVectorVT(*DAG.getContext(), EltNVT, EltCnt), Op); in BitConvertVectorToIntegerVector()
|
D | DAGCombiner.cpp | 11768 auto EltCnt = VecTy.getVectorElementCount(); in visitTRUNCATE() local 11770 auto NewEltCnt = EltCnt * SizeRatio; in visitTRUNCATE()
|