Home
last modified time | relevance | path

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

12

/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-7.0/llvm/lib/Target/AMDGPU/
DAMDGPUTargetTransformInfo.cpp353 unsigned NElts = LT.second.isVector() ? in getArithmeticInstrCost() local
363 return get64BitInstrCost() * LT.first * NElts; in getArithmeticInstrCost()
366 return getFullRateInstrCost() * LT.first * NElts; in getArithmeticInstrCost()
374 return 2 * getFullRateInstrCost() * LT.first * NElts; in getArithmeticInstrCost()
377 return LT.first * NElts * getFullRateInstrCost(); in getArithmeticInstrCost()
382 return (4 * QuarterRateCost + (2 * 2) * FullRateCost) * LT.first * NElts; in getArithmeticInstrCost()
386 return QuarterRateCost * NElts * LT.first; in getArithmeticInstrCost()
392 return LT.first * NElts * get64BitInstrCost(); in getArithmeticInstrCost()
395 return LT.first * NElts * getFullRateInstrCost(); in getArithmeticInstrCost()
407 return LT.first * Cost * NElts; in getArithmeticInstrCost()
[all …]
DAMDGPUISelLowering.cpp2646 unsigned NElts = VT.getVectorNumElements(); in LowerSIGN_EXTEND_INREG() local
2648 DAG.ExtractVectorElements(Src, Args, 0, NElts); in LowerSIGN_EXTEND_INREG()
2651 for (unsigned I = 0; I < NElts; ++I) in LowerSIGN_EXTEND_INREG()
3711 unsigned NElts = DestVT.getVectorNumElements(); in PerformDAGCombine() local
3713 if (SrcVT.getVectorNumElements() == NElts) { in PerformDAGCombine()
DSIInstrInfo.cpp1879 int NElts = DstSize / 32; in insertSelect() local
1887 assert(NElts % 2 == 0); in insertSelect()
1888 NElts /= 2; in insertSelect()
1897 for (int Idx = 0; Idx != NElts; ++Idx) { in insertSelect()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/X86/Utils/
DX86ShuffleDecode.cpp58 void DecodeMOVHLPSMask(unsigned NElts, SmallVectorImpl<int> &ShuffleMask) { in DecodeMOVHLPSMask() argument
59 for (unsigned i = NElts / 2; i != NElts; ++i) in DecodeMOVHLPSMask()
60 ShuffleMask.push_back(NElts + i); in DecodeMOVHLPSMask()
62 for (unsigned i = NElts / 2; i != NElts; ++i) in DecodeMOVHLPSMask()
67 void DecodeMOVLHPSMask(unsigned NElts, SmallVectorImpl<int> &ShuffleMask) { in DecodeMOVLHPSMask() argument
68 for (unsigned i = 0; i != NElts / 2; ++i) in DecodeMOVLHPSMask()
71 for (unsigned i = 0; i != NElts / 2; ++i) in DecodeMOVLHPSMask()
72 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-7.0/llvm/include/llvm/CodeGen/
DValueTypes.h360 unsigned NElts = getVectorNumElements(); in isPow2VectorType() local
361 return !(NElts & (NElts - 1)); in isPow2VectorType()
368 unsigned NElts = getVectorNumElements(); in getPow2VectorType() local
369 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-7.0/llvm/lib/Target/PowerPC/
DPPCVSXSwapRemoval.cpp828 unsigned NElts; in handleSpecialSwappables() local
836 case PPC::VSPLTB: NElts = 16; break; in handleSpecialSwappables()
837 case PPC::VSPLTH: NElts = 8; break; in handleSpecialSwappables()
839 case PPC::XXSPLTW: NElts = 4; break; in handleSpecialSwappables()
848 EltNo = (EltNo + NElts / 2) % NElts; in handleSpecialSwappables()
/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-7.0/llvm/include/llvm/Support/
DMachineValueType.h396 unsigned NElts = getVectorNumElements(); in isPow2VectorType() local
397 return !(NElts & (NElts - 1)); in isPow2VectorType()
406 unsigned NElts = getVectorNumElements(); in getPow2VectorType() local
407 unsigned Pow2NElts = 1 << Log2_32_Ceil(NElts); in getPow2VectorType()
/external/swiftshader/third_party/llvm-subzero/include/llvm/ADT/
DSTLExtras.h546 auto NElts = End - Start;
547 if (NElts <= 1) return;
548 qsort(&*Start, NElts, sizeof(*Start), get_array_pod_sort_comparator(*Start));
559 auto NElts = End - Start;
560 if (NElts <= 1) return;
561 qsort(&*Start, NElts, sizeof(*Start),
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/ADT/
DSTLExtras.h842 auto NElts = End - Start;
843 if (NElts <= 1) return;
848 qsort(&*Start, NElts, sizeof(*Start), get_array_pod_sort_comparator(*Start));
859 auto NElts = End - Start;
860 if (NElts <= 1) return;
865 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/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/
DTargetLoweringBase.cpp1164 unsigned NElts = VT.getVectorNumElements(); in computeRegisterProperties() local
1176 SVT.getVectorNumElements() == NElts && isTypeLegal(SVT)) { in computeRegisterProperties()
1194 && SVT.getVectorNumElements() > NElts && isTypeLegal(SVT)) { in computeRegisterProperties()
1226 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()
/external/llvm/lib/CodeGen/SelectionDAG/
DSelectionDAG.cpp1488 int NElts = Mask.size(); in getVectorShuffle() local
1489 assert(all_of(Mask, [&](int M) { return M < (NElts * 2); }) && in getVectorShuffle()
1498 for (int i = 0; i != NElts; ++i) in getVectorShuffle()
1499 if (MaskVec[i] >= NElts) MaskVec[i] -= NElts; in getVectorShuffle()
1514 for (int i = 0; i < NElts; ++i) { in getVectorShuffle()
1515 if (MaskVec[i] < Offset || MaskVec[i] >= (Offset + NElts)) in getVectorShuffle()
1532 BlendSplat(N2BV, NElts); in getVectorShuffle()
1538 for (int i = 0; i != NElts; ++i) { in getVectorShuffle()
1539 if (MaskVec[i] >= NElts) { in getVectorShuffle()
1564 for (int i = 0; i != NElts; ++i) { in getVectorShuffle()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/SelectionDAG/
DSelectionDAG.cpp1574 int NElts = Mask.size(); in getVectorShuffle() local
1576 [&](int M) { return M < (NElts * 2) && M >= -1; }) && in getVectorShuffle()
1585 for (int i = 0; i != NElts; ++i) in getVectorShuffle()
1586 if (MaskVec[i] >= NElts) MaskVec[i] -= NElts; in getVectorShuffle()
1602 for (int i = 0; i < NElts; ++i) { in getVectorShuffle()
1603 if (MaskVec[i] < Offset || MaskVec[i] >= (Offset + NElts)) in getVectorShuffle()
1620 BlendSplat(N2BV, NElts); in getVectorShuffle()
1627 for (int i = 0; i != NElts; ++i) { in getVectorShuffle()
1628 if (MaskVec[i] >= NElts) { in getVectorShuffle()
1653 for (int i = 0; i != NElts; ++i) { in getVectorShuffle()
[all …]
DTargetLowering.cpp4302 unsigned NElts = VecVT.getVectorNumElements(); in clampDynamicVectorIndex() local
4303 if (isPowerOf2_32(NElts)) { in clampDynamicVectorIndex()
4305 Log2_32(NElts)); in clampDynamicVectorIndex()
4311 DAG.getConstant(NElts - 1, dl, IdxVT)); in clampDynamicVectorIndex()
/external/llvm/lib/Transforms/Vectorize/
DSLPVectorizer.cpp1496 unsigned NElts; in canReuseExtract() local
1499 NElts = canMapToVector(Vec->getType(), DL); in canReuseExtract()
1500 if (!NElts) in canReuseExtract()
1507 NElts = Vec->getType()->getVectorNumElements(); in canReuseExtract()
1510 if (NElts != VL.size()) in canReuseExtract()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Vectorize/
DSLPVectorizer.cpp1991 unsigned NElts; in canReuseExtract() local
1994 NElts = canMapToVector(Vec->getType(), DL); in canReuseExtract()
1995 if (!NElts) in canReuseExtract()
2002 NElts = Vec->getType()->getVectorNumElements(); in canReuseExtract()
2005 if (NElts != VL.size()) in canReuseExtract()

12