Lines Matching refs:Opcode
102 InstructionCost SystemZTTIImpl::getIntImmCostInst(unsigned Opcode, unsigned Idx, in getIntImmCostInst() argument
117 switch (Opcode) { in getIntImmCostInst()
421 unsigned Opcode, Type *Ty, TTI::TargetCostKind CostKind, in getArithmeticInstrCost() argument
429 return BaseT::getArithmeticInstrCost(Opcode, Ty, CostKind, Op1Info, in getArithmeticInstrCost()
450 Opcode == Instruction::SDiv || Opcode == Instruction::SRem; in getArithmeticInstrCost()
452 Opcode == Instruction::UDiv || Opcode == Instruction::URem; in getArithmeticInstrCost()
475 if (Opcode == Instruction::FAdd || Opcode == Instruction::FSub || in getArithmeticInstrCost()
476 Opcode == Instruction::FMul || Opcode == Instruction::FDiv) in getArithmeticInstrCost()
480 if (Opcode == Instruction::FRem) in getArithmeticInstrCost()
485 if (Opcode == Instruction::Xor) { in getArithmeticInstrCost()
495 else if (Opcode == Instruction::Or || Opcode == Instruction::And) { in getArithmeticInstrCost()
505 if (Opcode == Instruction::Or) in getArithmeticInstrCost()
508 if (Opcode == Instruction::Xor && ScalarBits == 1) { in getArithmeticInstrCost()
528 if (Opcode == Instruction::Shl || Opcode == Instruction::LShr || in getArithmeticInstrCost()
529 Opcode == Instruction::AShr) { in getArithmeticInstrCost()
550 if (Opcode == Instruction::FAdd || Opcode == Instruction::FSub || in getArithmeticInstrCost()
551 Opcode == Instruction::FMul || Opcode == Instruction::FDiv) { in getArithmeticInstrCost()
560 getArithmeticInstrCost(Opcode, Ty->getScalarType(), CostKind); in getArithmeticInstrCost()
579 if (Opcode == Instruction::FRem) { in getArithmeticInstrCost()
591 return BaseT::getArithmeticInstrCost(Opcode, Ty, CostKind, Op1Info, Op2Info, in getArithmeticInstrCost()
742 getBoolVecToIntConversionCost(unsigned Opcode, Type *Dst, in getBoolVecToIntConversionCost() argument
752 if (Opcode == Instruction::ZExt || Opcode == Instruction::UIToFP) in getBoolVecToIntConversionCost()
758 InstructionCost SystemZTTIImpl::getCastInstrCost(unsigned Opcode, Type *Dst, in getCastInstrCost() argument
765 auto BaseCost = BaseT::getCastInstrCost(Opcode, Dst, Src, CCH, CostKind, I); in getCastInstrCost()
775 if (Opcode == Instruction::SIToFP || Opcode == Instruction::UIToFP) { in getCastInstrCost()
782 if ((Opcode == Instruction::ZExt || Opcode == Instruction::SExt) && in getCastInstrCost()
790 if (Opcode == Instruction::SExt) in getCastInstrCost()
792 if (Opcode == Instruction::ZExt) in getCastInstrCost()
807 return BaseT::getCastInstrCost(Opcode, Dst, Src, CCH, CostKind, I); in getCastInstrCost()
813 if (Opcode == Instruction::Trunc) { in getCastInstrCost()
819 if (Opcode == Instruction::ZExt || Opcode == Instruction::SExt) { in getCastInstrCost()
822 if (Opcode == Instruction::ZExt) in getCastInstrCost()
837 return getBoolVecToIntConversionCost(Opcode, Dst, I); in getCastInstrCost()
840 if (Opcode == Instruction::SIToFP || Opcode == Instruction::UIToFP || in getCastInstrCost()
841 Opcode == Instruction::FPToSI || Opcode == Instruction::FPToUI) { in getCastInstrCost()
851 return getBoolVecToIntConversionCost(Opcode, Dst, I) + NumDstVectors; in getCastInstrCost()
858 Opcode, Dst->getScalarType(), Src->getScalarType(), CCH, CostKind); in getCastInstrCost()
863 (Opcode == Instruction::SIToFP || Opcode == Instruction::UIToFP)) in getCastInstrCost()
866 (Opcode == Instruction::FPToSI || Opcode == Instruction::FPToUI)) in getCastInstrCost()
879 if (Opcode == Instruction::FPTrunc) { in getCastInstrCost()
887 if (Opcode == Instruction::FPExt) { in getCastInstrCost()
899 return BaseT::getCastInstrCost(Opcode, Dst, Src, CCH, CostKind, I); in getCastInstrCost()
914 InstructionCost SystemZTTIImpl::getCmpSelInstrCost(unsigned Opcode, Type *ValTy, in getCmpSelInstrCost() argument
920 return BaseT::getCmpSelInstrCost(Opcode, ValTy, CondTy, VecPred, CostKind); in getCmpSelInstrCost()
923 switch (Opcode) { in getCmpSelInstrCost()
950 if (Opcode == Instruction::ICmp || Opcode == Instruction::FCmp) { in getCmpSelInstrCost()
982 assert (Opcode == Instruction::Select); in getCmpSelInstrCost()
996 return BaseT::getCmpSelInstrCost(Opcode, ValTy, CondTy, VecPred, CostKind); in getCmpSelInstrCost()
999 InstructionCost SystemZTTIImpl::getVectorInstrCost(unsigned Opcode, Type *Val, in getVectorInstrCost() argument
1003 if (Opcode == Instruction::InsertElement && Val->isIntOrIntVectorTy(64)) in getVectorInstrCost()
1006 if (Opcode == Instruction::ExtractElement) { in getVectorInstrCost()
1016 return BaseT::getVectorInstrCost(Opcode, Val, Index); in getVectorInstrCost()
1108 InstructionCost SystemZTTIImpl::getMemoryOpCost(unsigned Opcode, Type *Src, in getMemoryOpCost() argument
1119 if (!Src->isVectorTy() && Opcode == Instruction::Load && I != nullptr) { in getMemoryOpCost()
1153 if (Opcode == Instruction::Load && I->hasOneUse()) { in getMemoryOpCost()
1180 unsigned Opcode, Type *VecTy, unsigned Factor, ArrayRef<unsigned> Indices, in getInterleavedMemoryOpCost() argument
1184 return BaseT::getInterleavedMemoryOpCost(Opcode, VecTy, Factor, Indices, in getInterleavedMemoryOpCost()
1197 if (Opcode == Instruction::Load) { in getInterleavedMemoryOpCost()