Lines Matching defs:ValTy

901 InstructionCost ARMTTIImpl::getVectorInstrCost(unsigned Opcode, Type *ValTy,
908 ValTy->isVectorTy() && ValTy->getScalarSizeInBits() <= 32)
915 if (cast<VectorType>(ValTy)->getElementType()->isIntegerTy())
920 if (ValTy->isVectorTy() &&
921 ValTy->getScalarSizeInBits() <= 32)
923 BaseT::getVectorInstrCost(Opcode, ValTy, CostKind, Index, Op0, Op1),
933 getTypeLegalizationCost(ValTy->getScalarType());
934 return LT.first * (ValTy->getScalarType()->isIntegerTy() ? 4 : 1);
937 return BaseT::getVectorInstrCost(Opcode, ValTy, CostKind, Index, Op0, Op1);
941 unsigned Opcode, Type *ValTy, Type *CondTy, CmpInst::Predicate VecPred,
948 ST->isThumb() && !ValTy->isVectorTy()) {
950 if (TLI->getValueType(DL, ValTy, true) == MVT::Other)
957 InstructionCost Cost = getTypeLegalizationCost(ValTy).first;
964 if (ValTy->isIntegerTy(1))
977 if (Sel && ValTy->isVectorTy() &&
978 (ValTy->isIntOrIntVectorTy() || ValTy->isFPOrFPVectorTy())) {
1011 IntrinsicCostAttributes CostAttrs(IID, ValTy, {ValTy, ValTy});
1017 if (ST->hasNEON() && ValTy->isVectorTy() && ISD == ISD::SELECT && CondTy) {
1026 EVT SelValTy = TLI->getValueType(DL, ValTy);
1034 std::pair<InstructionCost, MVT> LT = getTypeLegalizationCost(ValTy);
1038 if (ST->hasMVEIntegerOps() && ValTy->isVectorTy() &&
1040 cast<FixedVectorType>(ValTy)->getNumElements() > 1) {
1041 FixedVectorType *VecValTy = cast<FixedVectorType>(ValTy);
1055 getCmpSelInstrCost(Opcode, ValTy->getScalarType(),
1060 std::pair<InstructionCost, MVT> LT = getTypeLegalizationCost(ValTy);
1079 if (ST->hasMVEIntegerOps() && ValTy->isVectorTy())
1082 return BaseCost * BaseT::getCmpSelInstrCost(Opcode, ValTy, CondTy, VecPred,
1700 ARMTTIImpl::getArithmeticReductionCost(unsigned Opcode, VectorType *ValTy,
1704 EVT ValVT = TLI->getValueType(DL, ValTy);
1715 unsigned NumElts = cast<FixedVectorType>(ValTy)->getNumElements();
1720 Type *VecTy = FixedVectorType::get(ValTy->getElementType(), NumElts / 2);
1737 getArithmeticInstrCost(Opcode, ValTy->getElementType(), CostKind);
1742 unsigned NumElts = cast<FixedVectorType>(ValTy)->getNumElements();
1747 Type *VecTy = FixedVectorType::get(ValTy->getElementType(), NumElts / 2);
1755 Type *VecTy = FixedVectorType::get(ValTy->getElementType(), NumElts);
1765 Opcode, ValTy->getElementType(), CostKind);
1770 return BaseT::getArithmeticReductionCost(Opcode, ValTy, FMF, CostKind);
1772 std::pair<InstructionCost, MVT> LT = getTypeLegalizationCost(ValTy);
1782 return BaseT::getArithmeticReductionCost(Opcode, ValTy, FMF, CostKind);
1786 unsigned Opcode, bool IsUnsigned, Type *ResTy, VectorType *ValTy,
1788 EVT ValVT = TLI->getValueType(DL, ValTy);
1796 std::pair<InstructionCost, MVT> LT = getTypeLegalizationCost(ValTy);
1815 return BaseT::getExtendedReductionCost(Opcode, IsUnsigned, ResTy, ValTy, FMF,
1821 VectorType *ValTy,
1823 EVT ValVT = TLI->getValueType(DL, ValTy);
1827 std::pair<InstructionCost, MVT> LT = getTypeLegalizationCost(ValTy);
1843 return BaseT::getMulAccReductionCost(IsUnsigned, ResTy, ValTy, CostKind);