Lines Matching refs:Opcode

107 InstructionCost SystemZTTIImpl::getIntImmCostInst(unsigned Opcode, unsigned Idx,  in getIntImmCostInst()  argument
122 switch (Opcode) { in getIntImmCostInst()
426 unsigned Opcode, Type *Ty, TTI::TargetCostKind CostKind, in getArithmeticInstrCost() argument
433 return BaseT::getArithmeticInstrCost(Opcode, Ty, CostKind, Op1Info, in getArithmeticInstrCost()
453 Opcode == Instruction::SDiv || Opcode == Instruction::SRem; in getArithmeticInstrCost()
455 Opcode == Instruction::UDiv || Opcode == Instruction::URem; in getArithmeticInstrCost()
478 if (Opcode == Instruction::FAdd || Opcode == Instruction::FSub || in getArithmeticInstrCost()
479 Opcode == Instruction::FMul || Opcode == Instruction::FDiv) in getArithmeticInstrCost()
483 if (Opcode == Instruction::FRem) in getArithmeticInstrCost()
488 if (Opcode == Instruction::Xor) { in getArithmeticInstrCost()
501 else if (Opcode == Instruction::And || Opcode == Instruction::Or) { in getArithmeticInstrCost()
507 (Opcode == Instruction::And || ST->hasVectorEnhancements1())))) in getArithmeticInstrCost()
514 if (Opcode == Instruction::Or) in getArithmeticInstrCost()
517 if (Opcode == Instruction::Xor && ScalarBits == 1) { in getArithmeticInstrCost()
537 if (Opcode == Instruction::Shl || Opcode == Instruction::LShr || in getArithmeticInstrCost()
538 Opcode == Instruction::AShr) { in getArithmeticInstrCost()
560 if (Opcode == Instruction::FAdd || Opcode == Instruction::FSub || in getArithmeticInstrCost()
561 Opcode == Instruction::FMul || Opcode == Instruction::FDiv) { in getArithmeticInstrCost()
570 getArithmeticInstrCost(Opcode, Ty->getScalarType(), CostKind); in getArithmeticInstrCost()
590 if (Opcode == Instruction::FRem) { in getArithmeticInstrCost()
602 return BaseT::getArithmeticInstrCost(Opcode, Ty, CostKind, Op1Info, Op2Info, in getArithmeticInstrCost()
752 getBoolVecToIntConversionCost(unsigned Opcode, Type *Dst, in getBoolVecToIntConversionCost() argument
762 if (Opcode == Instruction::ZExt || Opcode == Instruction::UIToFP) in getBoolVecToIntConversionCost()
768 InstructionCost SystemZTTIImpl::getCastInstrCost(unsigned Opcode, Type *Dst, in getCastInstrCost() argument
775 auto BaseCost = BaseT::getCastInstrCost(Opcode, Dst, Src, CCH, CostKind, I); in getCastInstrCost()
785 if (Opcode == Instruction::SIToFP || Opcode == Instruction::UIToFP) { in getCastInstrCost()
794 if ((Opcode == Instruction::FPToSI || Opcode == Instruction::FPToUI) && in getCastInstrCost()
798 if ((Opcode == Instruction::ZExt || Opcode == Instruction::SExt)) { in getCastInstrCost()
809 if (Opcode == Instruction::SExt) in getCastInstrCost()
811 if (Opcode == Instruction::ZExt) in getCastInstrCost()
822 if (Opcode == Instruction::ZExt && I != nullptr) in getCastInstrCost()
830 if (Opcode == Instruction::Trunc && isInt128InVR(Src) && I != nullptr) { in getCastInstrCost()
851 return BaseT::getCastInstrCost(Opcode, Dst, Src, CCH, CostKind, I); in getCastInstrCost()
857 if (Opcode == Instruction::Trunc) { in getCastInstrCost()
863 if (Opcode == Instruction::ZExt || Opcode == Instruction::SExt) { in getCastInstrCost()
866 if (Opcode == Instruction::ZExt) in getCastInstrCost()
881 return getBoolVecToIntConversionCost(Opcode, Dst, I); in getCastInstrCost()
884 if (Opcode == Instruction::SIToFP || Opcode == Instruction::UIToFP || in getCastInstrCost()
885 Opcode == Instruction::FPToSI || Opcode == Instruction::FPToUI) { in getCastInstrCost()
895 return getBoolVecToIntConversionCost(Opcode, Dst, I) + NumDstVectors; in getCastInstrCost()
902 Opcode, Dst->getScalarType(), Src->getScalarType(), CCH, CostKind); in getCastInstrCost()
907 (Opcode == Instruction::SIToFP || Opcode == Instruction::UIToFP)) in getCastInstrCost()
910 (Opcode == Instruction::FPToSI || Opcode == Instruction::FPToUI)) in getCastInstrCost()
925 if (Opcode == Instruction::FPTrunc) { in getCastInstrCost()
934 if (Opcode == Instruction::FPExt) { in getCastInstrCost()
947 return BaseT::getCastInstrCost(Opcode, Dst, Src, CCH, CostKind, I); in getCastInstrCost()
962 InstructionCost SystemZTTIImpl::getCmpSelInstrCost(unsigned Opcode, Type *ValTy, in getCmpSelInstrCost() argument
968 return BaseT::getCmpSelInstrCost(Opcode, ValTy, CondTy, VecPred, CostKind); in getCmpSelInstrCost()
971 switch (Opcode) { in getCmpSelInstrCost()
998 if (Opcode == Instruction::ICmp || Opcode == Instruction::FCmp) { in getCmpSelInstrCost()
1030 assert (Opcode == Instruction::Select); in getCmpSelInstrCost()
1044 return BaseT::getCmpSelInstrCost(Opcode, ValTy, CondTy, VecPred, CostKind); in getCmpSelInstrCost()
1047 InstructionCost SystemZTTIImpl::getVectorInstrCost(unsigned Opcode, Type *Val, in getVectorInstrCost() argument
1053 if (Opcode == Instruction::InsertElement && Val->isIntOrIntVectorTy(64)) in getVectorInstrCost()
1056 if (Opcode == Instruction::ExtractElement) { in getVectorInstrCost()
1066 return BaseT::getVectorInstrCost(Opcode, Val, CostKind, Index, Op0, Op1); in getVectorInstrCost()
1158 InstructionCost SystemZTTIImpl::getMemoryOpCost(unsigned Opcode, Type *Src, in getMemoryOpCost() argument
1170 if (!Src->isVectorTy() && Opcode == Instruction::Load && I != nullptr) { in getMemoryOpCost()
1200 return BaseT::getMemoryOpCost(Opcode, Src, Alignment, AddressSpace, in getMemoryOpCost()
1213 if (Opcode == Instruction::Load && I->hasOneUse()) { in getMemoryOpCost()
1236 unsigned Opcode, Type *VecTy, unsigned Factor, ArrayRef<unsigned> Indices, in getInterleavedMemoryOpCost() argument
1240 return BaseT::getInterleavedMemoryOpCost(Opcode, VecTy, Factor, Indices, in getInterleavedMemoryOpCost()
1253 if (Opcode == Instruction::Load) { in getInterleavedMemoryOpCost()