Lines Matching refs:Idx

122     int Idx = CostTableLookup(AVX2UniformConstCostTable, ISD, LT.second);  in getArithmeticInstrCost()  local
123 if (Idx != -1) in getArithmeticInstrCost()
124 return LT.first * AVX2UniformConstCostTable[Idx].Cost; in getArithmeticInstrCost()
172 int Idx = CostTableLookup(AVX512CostTable, ISD, LT.second); in getArithmeticInstrCost() local
173 if (Idx != -1) in getArithmeticInstrCost()
174 return LT.first * AVX512CostTable[Idx].Cost; in getArithmeticInstrCost()
185 int Idx = CostTableLookup(AVX2CostTable, ISD, LT.second); in getArithmeticInstrCost() local
186 if (Idx != -1) in getArithmeticInstrCost()
187 return LT.first * AVX2CostTable[Idx].Cost; in getArithmeticInstrCost()
221 int Idx = CostTableLookup(SSE2UniformConstCostTable, ISD, LT.second); in getArithmeticInstrCost() local
222 if (Idx != -1) in getArithmeticInstrCost()
223 return LT.first * SSE2UniformConstCostTable[Idx].Cost; in getArithmeticInstrCost()
283 int Idx = CostTableLookup(SSE2CostTable, ISD, LT.second); in getArithmeticInstrCost() local
284 if (Idx != -1) in getArithmeticInstrCost()
285 return LT.first * SSE2CostTable[Idx].Cost; in getArithmeticInstrCost()
316 int Idx = CostTableLookup(AVX1CostTable, ISD, VT); in getArithmeticInstrCost() local
317 if (Idx != -1) in getArithmeticInstrCost()
318 return LT.first * AVX1CostTable[Idx].Cost; in getArithmeticInstrCost()
328 int Idx = CostTableLookup(CustomLowered, ISD, LT.second); in getArithmeticInstrCost() local
329 if (Idx != -1) in getArithmeticInstrCost()
330 return LT.first * CustomLowered[Idx].Cost; in getArithmeticInstrCost()
385 int Idx = CostTableLookup(AVXAltShuffleTbl, ISD::VECTOR_SHUFFLE, LT.second); in getShuffleCost() local
386 if (Idx != -1) in getShuffleCost()
387 return LT.first * AVXAltShuffleTbl[Idx].Cost; in getShuffleCost()
409 int Idx = CostTableLookup(SSE41AltShuffleTbl, ISD::VECTOR_SHUFFLE, LT.second); in getShuffleCost() local
410 if (Idx != -1) in getShuffleCost()
411 return LT.first * SSE41AltShuffleTbl[Idx].Cost; in getShuffleCost()
428 int Idx = CostTableLookup(SSSE3AltShuffleTbl, ISD::VECTOR_SHUFFLE, LT.second); in getShuffleCost() local
429 if (Idx != -1) in getShuffleCost()
430 return LT.first * SSSE3AltShuffleTbl[Idx].Cost; in getShuffleCost()
448 int Idx = CostTableLookup(SSEAltShuffleTbl, ISD::VECTOR_SHUFFLE, LT.second); in getShuffleCost() local
449 if (Idx != -1) in getShuffleCost()
450 return LT.first * SSEAltShuffleTbl[Idx].Cost; in getShuffleCost()
489 int Idx = in getCastInstrCost() local
491 if (Idx != -1) in getCastInstrCost()
492 return LTSrc.first * SSE2ConvTbl[Idx].Cost; in getCastInstrCost()
529 int Idx = ConvertCostTableLookup(AVX512ConversionTbl, ISD, LTDest.second, in getCastInstrCost() local
531 if (Idx != -1) in getCastInstrCost()
532 return AVX512ConversionTbl[Idx].Cost; in getCastInstrCost()
645 int Idx = ConvertCostTableLookup(AVX2ConversionTbl, ISD, in getCastInstrCost() local
647 if (Idx != -1) in getCastInstrCost()
648 return AVX2ConversionTbl[Idx].Cost; in getCastInstrCost()
652 int Idx = ConvertCostTableLookup(AVXConversionTbl, ISD, DstTy.getSimpleVT(), in getCastInstrCost() local
654 if (Idx != -1) in getCastInstrCost()
655 return AVXConversionTbl[Idx].Cost; in getCastInstrCost()
705 int Idx = CostTableLookup(AVX512CostTbl, ISD, MTy); in getCmpSelInstrCost() local
706 if (Idx != -1) in getCmpSelInstrCost()
707 return LT.first * AVX512CostTbl[Idx].Cost; in getCmpSelInstrCost()
711 int Idx = CostTableLookup(AVX2CostTbl, ISD, MTy); in getCmpSelInstrCost() local
712 if (Idx != -1) in getCmpSelInstrCost()
713 return LT.first * AVX2CostTbl[Idx].Cost; in getCmpSelInstrCost()
717 int Idx = CostTableLookup(AVX1CostTbl, ISD, MTy); in getCmpSelInstrCost() local
718 if (Idx != -1) in getCmpSelInstrCost()
719 return LT.first * AVX1CostTbl[Idx].Cost; in getCmpSelInstrCost()
723 int Idx = CostTableLookup(SSE42CostTbl, ISD, MTy); in getCmpSelInstrCost() local
724 if (Idx != -1) in getCmpSelInstrCost()
725 return LT.first * SSE42CostTbl[Idx].Cost; in getCmpSelInstrCost()
934 int Idx = CostTableLookup(AVX1CostTblPairWise, ISD, MTy); in getReductionCost() local
935 if (Idx != -1) in getReductionCost()
936 return LT.first * AVX1CostTblPairWise[Idx].Cost; in getReductionCost()
940 int Idx = CostTableLookup(SSE42CostTblPairWise, ISD, MTy); in getReductionCost() local
941 if (Idx != -1) in getReductionCost()
942 return LT.first * SSE42CostTblPairWise[Idx].Cost; in getReductionCost()
946 int Idx = CostTableLookup(AVX1CostTblNoPairWise, ISD, MTy); in getReductionCost() local
947 if (Idx != -1) in getReductionCost()
948 return LT.first * AVX1CostTblNoPairWise[Idx].Cost; in getReductionCost()
952 int Idx = CostTableLookup(SSE42CostTblNoPairWise, ISD, MTy); in getReductionCost() local
953 if (Idx != -1) in getReductionCost()
954 return LT.first * SSE42CostTblNoPairWise[Idx].Cost; in getReductionCost()
1008 unsigned X86TTIImpl::getIntImmCost(unsigned Opcode, unsigned Idx, in getIntImmCost() argument
1026 if (Idx == 0) in getIntImmCost()
1049 if (Idx == 1) in getIntImmCost()
1066 if (Idx == ImmIdx) { in getIntImmCost()
1077 unsigned X86TTIImpl::getIntImmCost(Intrinsic::ID IID, unsigned Idx, in getIntImmCost() argument
1096 if ((Idx == 1) && Imm.getBitWidth() <= 64 && isInt<32>(Imm.getSExtValue())) in getIntImmCost()
1100 if ((Idx < 2) || (Imm.getBitWidth() <= 64 && isInt<64>(Imm.getSExtValue()))) in getIntImmCost()
1105 if ((Idx < 4) || (Imm.getBitWidth() <= 64 && isInt<64>(Imm.getSExtValue()))) in getIntImmCost()