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