Home
last modified time | relevance | path

Searched refs:EltCnt (Results 1 – 16 of 16) sorted by relevance

/external/llvm-project/llvm/unittests/CodeGen/
DScalableVectorMVTsTest.cpp52 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/
DVectorTypesTest.cpp68 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/
DDenseMapInfo.h286 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/
DValueTypes.h409 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/
DDerivedTypes.h508 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()
DDataLayout.h700 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/
DDerivedTypes.h522 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()
DDataLayout.h658 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/
DValueTypes.h368 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/
DTypeSize.h516 static unsigned getHashValue(const ElementCount &EltCnt) {
517 unsigned HashVal = EltCnt.getKnownMinValue() * 37U;
518 if (EltCnt.isScalable())
DMachineValueType.h464 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/
DTargetLoweringBase.cpp1536 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/
DMachineValueType.h397 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/
DLegalizeTypes.cpp852 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/
DLegalizeTypes.cpp885 auto EltCnt = Op.getValueType().getVectorElementCount(); in BitConvertVectorToIntegerVector() local
887 EVT::getVectorVT(*DAG.getContext(), EltNVT, EltCnt), Op); in BitConvertVectorToIntegerVector()
DDAGCombiner.cpp11768 auto EltCnt = VecTy.getVectorElementCount(); in visitTRUNCATE() local
11770 auto NewEltCnt = EltCnt * SizeRatio; in visitTRUNCATE()