Lines Matching refs:Opcode

173 InstructionCost SystemZTTIImpl::getIntImmCostInst(unsigned Opcode, unsigned Idx,
188 switch (Opcode) {
528 unsigned Opcode, Type *Ty, TTI::TargetCostKind CostKind,
535 return BaseT::getArithmeticInstrCost(Opcode, Ty, CostKind, Op1Info,
555 Opcode == Instruction::SDiv || Opcode == Instruction::SRem;
557 Opcode == Instruction::UDiv || Opcode == Instruction::URem;
580 if (Opcode == Instruction::FAdd || Opcode == Instruction::FSub ||
581 Opcode == Instruction::FMul || Opcode == Instruction::FDiv)
585 if (Opcode == Instruction::FRem)
590 if (Opcode == Instruction::Xor) {
603 else if (Opcode == Instruction::And || Opcode == Instruction::Or) {
609 (Opcode == Instruction::And || ST->hasVectorEnhancements1()))))
616 if (Opcode == Instruction::Or)
619 if (Opcode == Instruction::Xor && ScalarBits == 1) {
639 if (Opcode == Instruction::Shl || Opcode == Instruction::LShr ||
640 Opcode == Instruction::AShr) {
666 if (Opcode == Instruction::FAdd || Opcode == Instruction::FSub ||
667 Opcode == Instruction::FMul || Opcode == Instruction::FDiv) {
676 getArithmeticInstrCost(Opcode, Ty->getScalarType(), CostKind);
696 if (Opcode == Instruction::FRem) {
709 return BaseT::getArithmeticInstrCost(Opcode, Ty, CostKind, Op1Info, Op2Info,
859 getBoolVecToIntConversionCost(unsigned Opcode, Type *Dst,
869 if (Opcode == Instruction::ZExt || Opcode == Instruction::UIToFP)
875 InstructionCost SystemZTTIImpl::getCastInstrCost(unsigned Opcode, Type *Dst,
882 auto BaseCost = BaseT::getCastInstrCost(Opcode, Dst, Src, CCH, CostKind, I);
892 if (Opcode == Instruction::SIToFP || Opcode == Instruction::UIToFP) {
901 if ((Opcode == Instruction::FPToSI || Opcode == Instruction::FPToUI) &&
905 if ((Opcode == Instruction::ZExt || Opcode == Instruction::SExt)) {
908 if (Opcode == Instruction::SExt && ST->hasVectorEnhancements3())
919 if (Opcode == Instruction::SExt)
921 if (Opcode == Instruction::ZExt)
932 if (Opcode == Instruction::ZExt && I != nullptr)
940 if (Opcode == Instruction::Trunc && isInt128InVR(Src) && I != nullptr) {
961 return BaseT::getCastInstrCost(Opcode, Dst, Src, CCH, CostKind, I);
967 if (Opcode == Instruction::Trunc) {
973 if (Opcode == Instruction::ZExt || Opcode == Instruction::SExt) {
976 if (Opcode == Instruction::ZExt)
991 return getBoolVecToIntConversionCost(Opcode, Dst, I);
994 if (Opcode == Instruction::SIToFP || Opcode == Instruction::UIToFP ||
995 Opcode == Instruction::FPToSI || Opcode == Instruction::FPToUI) {
1005 return getBoolVecToIntConversionCost(Opcode, Dst, I) + NumDstVectors;
1012 Opcode, Dst->getScalarType(), Src->getScalarType(), CCH, CostKind);
1017 (Opcode == Instruction::SIToFP || Opcode == Instruction::UIToFP))
1020 (Opcode == Instruction::FPToSI || Opcode == Instruction::FPToUI))
1035 if (Opcode == Instruction::FPTrunc) {
1044 if (Opcode == Instruction::FPExt) {
1057 return BaseT::getCastInstrCost(Opcode, Dst, Src, CCH, CostKind, I);
1073 unsigned Opcode, Type *ValTy, Type *CondTy, CmpInst::Predicate VecPred,
1077 return BaseT::getCmpSelInstrCost(Opcode, ValTy, CondTy, VecPred, CostKind,
1081 switch (Opcode) {
1117 if (Opcode == Instruction::ICmp || Opcode == Instruction::FCmp) {
1149 assert (Opcode == Instruction::Select);
1163 return BaseT::getCmpSelInstrCost(Opcode, ValTy, CondTy, VecPred, CostKind,
1167 InstructionCost SystemZTTIImpl::getVectorInstrCost(unsigned Opcode, Type *Val,
1171 if (Opcode == Instruction::InsertElement) {
1183 if (Opcode == Instruction::ExtractElement) {
1193 return BaseT::getVectorInstrCost(Opcode, Val, CostKind, Index, Op0, Op1);
1285 InstructionCost SystemZTTIImpl::getMemoryOpCost(unsigned Opcode, Type *Src,
1297 if (!Src->isVectorTy() && Opcode == Instruction::Load && I != nullptr) {
1327 return BaseT::getMemoryOpCost(Opcode, Src, Alignment, AddressSpace,
1340 if (Opcode == Instruction::Load && I->hasOneUse()) {
1363 unsigned Opcode, Type *VecTy, unsigned Factor, ArrayRef<unsigned> Indices,
1367 return BaseT::getInterleavedMemoryOpCost(Opcode, VecTy, Factor, Indices,
1380 if (Opcode == Instruction::Load) {
1437 inline bool customCostReductions(unsigned Opcode) {
1438 return Opcode == Instruction::FAdd || Opcode == Instruction::FMul ||
1439 Opcode == Instruction::Add || Opcode == Instruction::Mul;
1443 SystemZTTIImpl::getArithmeticReductionCost(unsigned Opcode, VectorType *Ty,
1449 if (customCostReductions(Opcode) && ST->hasVector() &&
1455 if (Opcode == Instruction::Add)
1461 if ((Opcode == Instruction::FAdd) || (Opcode == Instruction::FMul))
1466 return BaseT::getArithmeticReductionCost(Opcode, Ty, FMF, CostKind);