Lines Matching defs:ValTy
882 InstructionCost ARMTTIImpl::getVectorInstrCost(unsigned Opcode, Type *ValTy,
889 ValTy->isVectorTy() && ValTy->getScalarSizeInBits() <= 32)
896 if (cast<VectorType>(ValTy)->getElementType()->isIntegerTy())
901 if (ValTy->isVectorTy() &&
902 ValTy->getScalarSizeInBits() <= 32)
904 BaseT::getVectorInstrCost(Opcode, ValTy, CostKind, Index, Op0, Op1),
914 getTypeLegalizationCost(ValTy->getScalarType());
915 return LT.first * (ValTy->getScalarType()->isIntegerTy() ? 4 : 1);
918 return BaseT::getVectorInstrCost(Opcode, ValTy, CostKind, Index, Op0, Op1);
921 InstructionCost ARMTTIImpl::getCmpSelInstrCost(unsigned Opcode, Type *ValTy,
930 ST->isThumb() && !ValTy->isVectorTy()) {
932 if (TLI->getValueType(DL, ValTy, true) == MVT::Other)
939 InstructionCost Cost = getTypeLegalizationCost(ValTy).first;
946 if (ValTy->isIntegerTy(1))
959 if (Sel && ValTy->isVectorTy() &&
960 (ValTy->isIntOrIntVectorTy() || ValTy->isFPOrFPVectorTy())) {
993 IntrinsicCostAttributes CostAttrs(IID, ValTy, {ValTy, ValTy});
999 if (ST->hasNEON() && ValTy->isVectorTy() && ISD == ISD::SELECT && CondTy) {
1008 EVT SelValTy = TLI->getValueType(DL, ValTy);
1016 std::pair<InstructionCost, MVT> LT = getTypeLegalizationCost(ValTy);
1020 if (ST->hasMVEIntegerOps() && ValTy->isVectorTy() &&
1022 cast<FixedVectorType>(ValTy)->getNumElements() > 1) {
1023 FixedVectorType *VecValTy = cast<FixedVectorType>(ValTy);
1037 getCmpSelInstrCost(Opcode, ValTy->getScalarType(),
1042 std::pair<InstructionCost, MVT> LT = getTypeLegalizationCost(ValTy);
1061 if (ST->hasMVEIntegerOps() && ValTy->isVectorTy())
1065 BaseT::getCmpSelInstrCost(Opcode, ValTy, CondTy, VecPred, CostKind, I);
1682 ARMTTIImpl::getArithmeticReductionCost(unsigned Opcode, VectorType *ValTy,
1686 EVT ValVT = TLI->getValueType(DL, ValTy);
1697 unsigned NumElts = cast<FixedVectorType>(ValTy)->getNumElements();
1702 Type *VecTy = FixedVectorType::get(ValTy->getElementType(), NumElts / 2);
1719 getArithmeticInstrCost(Opcode, ValTy->getElementType(), CostKind);
1724 unsigned NumElts = cast<FixedVectorType>(ValTy)->getNumElements();
1729 Type *VecTy = FixedVectorType::get(ValTy->getElementType(), NumElts / 2);
1737 Type *VecTy = FixedVectorType::get(ValTy->getElementType(), NumElts);
1747 Opcode, ValTy->getElementType(), CostKind);
1752 return BaseT::getArithmeticReductionCost(Opcode, ValTy, FMF, CostKind);
1754 std::pair<InstructionCost, MVT> LT = getTypeLegalizationCost(ValTy);
1764 return BaseT::getArithmeticReductionCost(Opcode, ValTy, FMF, CostKind);
1768 unsigned Opcode, bool IsUnsigned, Type *ResTy, VectorType *ValTy,
1770 EVT ValVT = TLI->getValueType(DL, ValTy);
1778 std::pair<InstructionCost, MVT> LT = getTypeLegalizationCost(ValTy);
1797 return BaseT::getExtendedReductionCost(Opcode, IsUnsigned, ResTy, ValTy, FMF,
1803 VectorType *ValTy,
1805 EVT ValVT = TLI->getValueType(DL, ValTy);
1809 std::pair<InstructionCost, MVT> LT = getTypeLegalizationCost(ValTy);
1825 return BaseT::getMulAccReductionCost(IsUnsigned, ResTy, ValTy, CostKind);