Home
last modified time | relevance | path

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

123

/external/llvm/lib/Target/AMDGPU/
DAMDGPUTargetTransformInfo.cpp127 unsigned NElts = LT.second.isVector() ? in getArithmeticInstrCost() local
137 return get64BitInstrCost() * LT.first * NElts; in getArithmeticInstrCost()
140 return getFullRateInstrCost() * LT.first * NElts; in getArithmeticInstrCost()
149 return 2 * getFullRateInstrCost() * LT.first * NElts; in getArithmeticInstrCost()
152 return LT.first * NElts * getFullRateInstrCost(); in getArithmeticInstrCost()
158 return (4 * QuarterRateCost + (2 * 2) * FullRateCost) * LT.first * NElts; in getArithmeticInstrCost()
162 return QuarterRateCost * NElts * LT.first; in getArithmeticInstrCost()
168 return LT.first * NElts * get64BitInstrCost(); in getArithmeticInstrCost()
171 return LT.first * NElts * getFullRateInstrCost(); in getArithmeticInstrCost()
185 return LT.first * Cost * NElts; in getArithmeticInstrCost()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
DAMDGPUTargetTransformInfo.cpp360 unsigned NElts = LT.second.isVector() ? in getArithmeticInstrCost() local
370 return get64BitInstrCost() * LT.first * NElts; in getArithmeticInstrCost()
373 NElts = (NElts + 1) / 2; in getArithmeticInstrCost()
376 return getFullRateInstrCost() * LT.first * NElts; in getArithmeticInstrCost()
384 return 2 * getFullRateInstrCost() * LT.first * NElts; in getArithmeticInstrCost()
388 NElts = (NElts + 1) / 2; in getArithmeticInstrCost()
390 return LT.first * NElts * getFullRateInstrCost(); in getArithmeticInstrCost()
395 return (4 * QuarterRateCost + (2 * 2) * FullRateCost) * LT.first * NElts; in getArithmeticInstrCost()
399 NElts = (NElts + 1) / 2; in getArithmeticInstrCost()
402 return QuarterRateCost * NElts * LT.first; in getArithmeticInstrCost()
[all …]
/external/llvm-project/llvm/lib/Target/AMDGPU/
DAMDGPUTargetTransformInfo.cpp527 unsigned NElts = LT.second.isVector() ? in getArithmeticInstrCost() local
537 return get64BitInstrCost(CostKind) * LT.first * NElts; in getArithmeticInstrCost()
540 NElts = (NElts + 1) / 2; in getArithmeticInstrCost()
543 return getFullRateInstrCost() * LT.first * NElts; in getArithmeticInstrCost()
551 return 2 * getFullRateInstrCost() * LT.first * NElts; in getArithmeticInstrCost()
555 NElts = (NElts + 1) / 2; in getArithmeticInstrCost()
557 return LT.first * NElts * getFullRateInstrCost(); in getArithmeticInstrCost()
562 return (4 * QuarterRateCost + (2 * 2) * FullRateCost) * LT.first * NElts; in getArithmeticInstrCost()
566 NElts = (NElts + 1) / 2; in getArithmeticInstrCost()
569 return QuarterRateCost * NElts * LT.first; in getArithmeticInstrCost()
[all …]
/external/llvm-project/llvm/include/llvm/CodeGen/
DValueTypes.h425 unsigned NElts = getVectorMinNumElements(); in isPow2VectorType() local
426 return !(NElts & (NElts - 1)); in isPow2VectorType()
433 ElementCount NElts = getVectorElementCount(); in getPow2VectorType() local
434 unsigned NewMinCount = 1 << Log2_32_Ceil(NElts.getKnownMinValue()); in getPow2VectorType()
435 NElts = ElementCount::get(NewMinCount, NElts.isScalable()); in getPow2VectorType()
436 return EVT::getVectorVT(Context, getVectorElementType(), NElts); in getPow2VectorType()
/external/llvm-project/llvm/lib/Target/X86/MCTargetDesc/
DX86ShuffleDecode.cpp59 void DecodeMOVHLPSMask(unsigned NElts, SmallVectorImpl<int> &ShuffleMask) { in DecodeMOVHLPSMask() argument
60 for (unsigned i = NElts / 2; i != NElts; ++i) in DecodeMOVHLPSMask()
61 ShuffleMask.push_back(NElts + i); in DecodeMOVHLPSMask()
63 for (unsigned i = NElts / 2; i != NElts; ++i) in DecodeMOVHLPSMask()
68 void DecodeMOVLHPSMask(unsigned NElts, SmallVectorImpl<int> &ShuffleMask) { in DecodeMOVLHPSMask() argument
69 for (unsigned i = 0; i != NElts / 2; ++i) in DecodeMOVLHPSMask()
72 for (unsigned i = 0; i != NElts / 2; ++i) in DecodeMOVLHPSMask()
73 ShuffleMask.push_back(NElts + i); in DecodeMOVLHPSMask()
DX86ShuffleDecode.h40 void DecodeMOVHLPSMask(unsigned NElts, SmallVectorImpl<int> &ShuffleMask);
44 void DecodeMOVLHPSMask(unsigned NElts, SmallVectorImpl<int> &ShuffleMask);
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/Utils/
DX86ShuffleDecode.cpp57 void DecodeMOVHLPSMask(unsigned NElts, SmallVectorImpl<int> &ShuffleMask) { in DecodeMOVHLPSMask() argument
58 for (unsigned i = NElts / 2; i != NElts; ++i) in DecodeMOVHLPSMask()
59 ShuffleMask.push_back(NElts + i); in DecodeMOVHLPSMask()
61 for (unsigned i = NElts / 2; i != NElts; ++i) in DecodeMOVHLPSMask()
66 void DecodeMOVLHPSMask(unsigned NElts, SmallVectorImpl<int> &ShuffleMask) { in DecodeMOVLHPSMask() argument
67 for (unsigned i = 0; i != NElts / 2; ++i) in DecodeMOVLHPSMask()
70 for (unsigned i = 0; i != NElts / 2; ++i) in DecodeMOVLHPSMask()
71 ShuffleMask.push_back(NElts + i); in DecodeMOVLHPSMask()
DX86ShuffleDecode.h39 void DecodeMOVHLPSMask(unsigned NElts, SmallVectorImpl<int> &ShuffleMask);
43 void DecodeMOVLHPSMask(unsigned NElts, SmallVectorImpl<int> &ShuffleMask);
/external/llvm/lib/Target/X86/Utils/
DX86ShuffleDecode.cpp60 void DecodeMOVHLPSMask(unsigned NElts, SmallVectorImpl<int> &ShuffleMask) { in DecodeMOVHLPSMask() argument
61 for (unsigned i = NElts / 2; i != NElts; ++i) in DecodeMOVHLPSMask()
62 ShuffleMask.push_back(NElts + i); in DecodeMOVHLPSMask()
64 for (unsigned i = NElts / 2; i != NElts; ++i) in DecodeMOVHLPSMask()
69 void DecodeMOVLHPSMask(unsigned NElts, SmallVectorImpl<int> &ShuffleMask) { in DecodeMOVLHPSMask() argument
70 for (unsigned i = 0; i != NElts / 2; ++i) in DecodeMOVLHPSMask()
73 for (unsigned i = 0; i != NElts / 2; ++i) in DecodeMOVLHPSMask()
74 ShuffleMask.push_back(NElts + i); in DecodeMOVLHPSMask()
DX86ShuffleDecode.h40 void DecodeMOVHLPSMask(unsigned NElts, SmallVectorImpl<int> &ShuffleMask);
44 void DecodeMOVLHPSMask(unsigned NElts, SmallVectorImpl<int> &ShuffleMask);
/external/llvm/include/llvm/CodeGen/
DValueTypes.h315 unsigned NElts = getVectorNumElements(); in isPow2VectorType() local
316 return !(NElts & (NElts - 1)); in isPow2VectorType()
323 unsigned NElts = getVectorNumElements(); in getPow2VectorType() local
324 unsigned Pow2NElts = 1 << Log2_32_Ceil(NElts); in getPow2VectorType()
DMachineValueType.h292 unsigned NElts = getVectorNumElements(); in isPow2VectorType() local
293 return !(NElts & (NElts - 1)); in isPow2VectorType()
302 unsigned NElts = getVectorNumElements(); in getPow2VectorType() local
303 unsigned Pow2NElts = 1 << Log2_32_Ceil(NElts); in getPow2VectorType()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/
DValueTypes.h375 unsigned NElts = getVectorNumElements(); in isPow2VectorType() local
376 return !(NElts & (NElts - 1)); in isPow2VectorType()
383 unsigned NElts = getVectorNumElements(); in getPow2VectorType() local
384 unsigned Pow2NElts = 1 << Log2_32_Ceil(NElts); in getPow2VectorType()
/external/llvm/include/llvm/ADT/
DSTLExtras.h329 auto NElts = End - Start;
330 if (NElts <= 1) return;
331 qsort(&*Start, NElts, sizeof(*Start), get_array_pod_sort_comparator(*Start));
342 auto NElts = End - Start;
343 if (NElts <= 1) return;
344 qsort(&*Start, NElts, sizeof(*Start),
/external/swiftshader/third_party/llvm-subzero/include/llvm/ADT/
DSTLExtras.h429 auto NElts = End - Start;
430 if (NElts <= 1) return;
431 qsort(&*Start, NElts, sizeof(*Start), get_array_pod_sort_comparator(*Start));
442 auto NElts = End - Start;
443 if (NElts <= 1) return;
444 qsort(&*Start, NElts, sizeof(*Start),
/external/llvm/lib/Target/PowerPC/
DPPCVSXSwapRemoval.cpp818 unsigned NElts; in handleSpecialSwappables() local
826 case PPC::VSPLTB: NElts = 16; break; in handleSpecialSwappables()
827 case PPC::VSPLTH: NElts = 8; break; in handleSpecialSwappables()
829 case PPC::XXSPLTW: NElts = 4; break; in handleSpecialSwappables()
838 EltNo = (EltNo + NElts / 2) % NElts; in handleSpecialSwappables()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/PowerPC/
DPPCVSXSwapRemoval.cpp824 unsigned NElts; in handleSpecialSwappables() local
832 case PPC::VSPLTB: NElts = 16; break; in handleSpecialSwappables()
833 case PPC::VSPLTH: NElts = 8; break; in handleSpecialSwappables()
835 case PPC::XXSPLTW: NElts = 4; break; in handleSpecialSwappables()
844 EltNo = (EltNo + NElts / 2) % NElts; in handleSpecialSwappables()
/external/llvm-project/llvm/lib/Target/PowerPC/
DPPCVSXSwapRemoval.cpp847 unsigned NElts; in handleSpecialSwappables() local
855 case PPC::VSPLTB: NElts = 16; break; in handleSpecialSwappables()
856 case PPC::VSPLTH: NElts = 8; break; in handleSpecialSwappables()
858 case PPC::XXSPLTW: NElts = 4; break; in handleSpecialSwappables()
867 EltNo = (EltNo + NElts / 2) % NElts; in handleSpecialSwappables()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/
DMachineValueType.h404 unsigned NElts = getVectorNumElements(); in isPow2VectorType() local
405 return !(NElts & (NElts - 1)); in isPow2VectorType()
414 unsigned NElts = getVectorNumElements(); in getPow2VectorType() local
415 unsigned Pow2NElts = 1 << Log2_32_Ceil(NElts); in getPow2VectorType()
/external/llvm-project/llvm/include/llvm/Support/
DMachineValueType.h471 unsigned NElts = getVectorNumElements(); in isPow2VectorType() local
472 return !(NElts & (NElts - 1)); in isPow2VectorType()
481 unsigned NElts = getVectorNumElements(); in getPow2VectorType() local
482 unsigned Pow2NElts = 1 << Log2_32_Ceil(NElts); in getPow2VectorType()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ADT/
DSTLExtras.h1086 auto NElts = End - Start;
1087 if (NElts <= 1) return;
1091 qsort(&*Start, NElts, sizeof(*Start), get_array_pod_sort_comparator(*Start));
1102 auto NElts = End - Start;
1103 if (NElts <= 1) return;
1107 qsort(&*Start, NElts, sizeof(*Start),
/external/llvm/lib/Target/Hexagon/
DHexagonISelLowering.cpp2325 unsigned NElts = BVN->getNumOperands(); in isCommonSplatElement() local
2328 for (unsigned i = 1, e = NElts; i != e; ++i) { in isCommonSplatElement()
2408 unsigned NElts = BVN->getNumOperands(); in LowerBUILD_VECTOR() local
2446 for (unsigned i = 0, e = NElts; i != e; ++i) { in LowerBUILD_VECTOR()
2465 unsigned EltSize = Size / NElts; in LowerBUILD_VECTOR()
2470 for (unsigned i = 0, e = NElts; i != e; ++i) { in LowerBUILD_VECTOR()
2473 unsigned OpIdx = NElts - i - 1; in LowerBUILD_VECTOR()
2501 for (unsigned i = 0, e = NElts; i != e; ++i) { in LowerBUILD_VECTOR()
2504 unsigned OpIdx = NElts - i - 1; in LowerBUILD_VECTOR()
2537 unsigned NElts = Op.getNumOperands(); in LowerCONCAT_VECTORS() local
[all …]
/external/llvm-project/llvm/include/llvm/ADT/
DSTLExtras.h1400 auto NElts = End - Start;
1401 if (NElts <= 1) return;
1405 qsort(&*Start, NElts, sizeof(*Start), get_array_pod_sort_comparator(*Start));
1416 auto NElts = End - Start;
1417 if (NElts <= 1) return;
1421 qsort(&*Start, NElts, sizeof(*Start),
/external/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DTargetLoweringBase.cpp1245 unsigned NElts = VT.getVectorNumElements(); in computeRegisterProperties() local
1262 SVT.getVectorNumElements() == NElts && in computeRegisterProperties()
1278 if (isPowerOf2_32(NElts)) { in computeRegisterProperties()
1283 && SVT.getVectorNumElements() > NElts in computeRegisterProperties()
1330 ValueTypeActions.setTypeAction(VT, NElts == 1 ? TypeScalarizeVector in computeRegisterProperties()
/external/llvm/lib/CodeGen/
DTargetLoweringBase.cpp1394 unsigned NElts = VT.getVectorNumElements(); in computeRegisterProperties() local
1406 SVT.getVectorNumElements() == NElts && isTypeLegal(SVT)) { in computeRegisterProperties()
1423 && SVT.getVectorNumElements() > NElts && isTypeLegal(SVT)) { in computeRegisterProperties()
1454 ValueTypeActions.setTypeAction(VT, NElts == 1 ? TypeScalarizeVector in computeRegisterProperties()

123