/external/swiftshader/third_party/LLVM/lib/Target/X86/Utils/ |
D | X86ShuffleDecode.cpp | 47 void DecodeMOVHLPSMask(unsigned NElts, in DecodeMOVHLPSMask() argument 49 for (unsigned i = NElts/2; i != NElts; ++i) in DecodeMOVHLPSMask() 50 ShuffleMask.push_back(NElts+i); in DecodeMOVHLPSMask() 52 for (unsigned i = NElts/2; i != NElts; ++i) in DecodeMOVHLPSMask() 57 void DecodeMOVLHPSMask(unsigned NElts, in DecodeMOVLHPSMask() argument 59 for (unsigned i = 0; i != NElts/2; ++i) in DecodeMOVLHPSMask() 62 for (unsigned i = 0; i != NElts/2; ++i) in DecodeMOVLHPSMask() 63 ShuffleMask.push_back(NElts+i); in DecodeMOVLHPSMask() 66 void DecodePSHUFMask(unsigned NElts, unsigned Imm, in DecodePSHUFMask() argument 68 for (unsigned i = 0; i != NElts; ++i) { in DecodePSHUFMask() [all …]
|
D | X86ShuffleDecode.h | 33 void DecodeMOVHLPSMask(unsigned NElts, 37 void DecodeMOVLHPSMask(unsigned NElts, 40 void DecodePSHUFMask(unsigned NElts, unsigned Imm, 49 void DecodePUNPCKLBWMask(unsigned NElts, 52 void DecodePUNPCKLWDMask(unsigned NElts, 55 void DecodePUNPCKLDQMask(unsigned NElts, 58 void DecodePUNPCKLQDQMask(unsigned NElts, 64 void DecodePUNPCKHMask(unsigned NElts, 67 void DecodeSHUFPSMask(unsigned NElts, unsigned Imm, 70 void DecodeUNPCKHPMask(unsigned NElts, [all …]
|
/external/llvm/lib/Target/AMDGPU/ |
D | AMDGPUTargetTransformInfo.cpp | 127 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/ |
D | AMDGPUTargetTransformInfo.cpp | 353 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 …]
|
/external/swiftshader/third_party/LLVM/include/llvm/CodeGen/ |
D | ValueTypes.h | 165 unsigned NElts = getVectorNumElements(); in isPow2VectorType() local 166 return !(NElts & (NElts - 1)); in isPow2VectorType() 175 unsigned NElts = getVectorNumElements(); in getPow2VectorType() local 176 unsigned Pow2NElts = 1 << Log2_32_Ceil(NElts); in getPow2VectorType() 639 unsigned NElts = getVectorNumElements(); in isPow2VectorType() local 640 return !(NElts & (NElts - 1)); in isPow2VectorType() 647 unsigned NElts = getVectorNumElements(); in getPow2VectorType() local 648 unsigned Pow2NElts = 1 << Log2_32_Ceil(NElts); in getPow2VectorType()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/X86/Utils/ |
D | X86ShuffleDecode.cpp | 58 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()
|
D | X86ShuffleDecode.h | 39 void DecodeMOVHLPSMask(unsigned NElts, SmallVectorImpl<int> &ShuffleMask); 43 void DecodeMOVLHPSMask(unsigned NElts, SmallVectorImpl<int> &ShuffleMask);
|
/external/llvm/lib/Target/X86/Utils/ |
D | X86ShuffleDecode.cpp | 60 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()
|
D | X86ShuffleDecode.h | 40 void DecodeMOVHLPSMask(unsigned NElts, SmallVectorImpl<int> &ShuffleMask); 44 void DecodeMOVLHPSMask(unsigned NElts, SmallVectorImpl<int> &ShuffleMask);
|
/external/llvm/include/llvm/CodeGen/ |
D | ValueTypes.h | 315 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()
|
D | MachineValueType.h | 292 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/ |
D | ValueTypes.h | 360 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/ |
D | STLExtras.h | 329 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/llvm/lib/Target/PowerPC/ |
D | PPCVSXSwapRemoval.cpp | 818 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/lib/Target/PowerPC/ |
D | PPCVSXSwapRemoval.cpp | 828 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/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Support/ |
D | MachineValueType.h | 396 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/ |
D | STLExtras.h | 546 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/ |
D | STLExtras.h | 842 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/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/ |
D | InstCombineVectorOps.cpp | 59 unsigned NElts = SVI->getType()->getNumElements(); in getShuffleMask() local 61 return std::vector<int>(NElts, 0); in getShuffleMask() 63 return std::vector<int>(NElts, -1); in getShuffleMask()
|
/external/llvm/lib/Target/Hexagon/ |
D | HexagonISelLowering.cpp | 2325 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/lib/CodeGen/SelectionDAG/ |
D | SelectionDAG.cpp | 1235 int NElts = M.size(); in commuteShuffle() local 1236 for (int i = 0; i != NElts; ++i) { in commuteShuffle() 1237 if (M[i] >= NElts) in commuteShuffle() 1238 M[i] -= NElts; in commuteShuffle() 1240 M[i] += NElts; in commuteShuffle() 1258 unsigned NElts = VT.getVectorNumElements(); in getVectorShuffle() local 1260 for (unsigned i = 0; i != NElts; ++i) { in getVectorShuffle() 1261 assert(Mask[i] < (int)(NElts * 2) && "Index out of range"); in getVectorShuffle() 1268 for (unsigned i = 0; i != NElts; ++i) in getVectorShuffle() 1269 if (MaskVec[i] >= (int)NElts) MaskVec[i] -= NElts; in getVectorShuffle() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/ |
D | TargetLoweringBase.cpp | 1164 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/ |
D | TargetLoweringBase.cpp | 1394 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/ |
D | SelectionDAG.cpp | 1488 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/ |
D | SelectionDAG.cpp | 1574 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 …]
|