Lines Matching refs:Opcode

103 InstructionCost SystemZTTIImpl::getIntImmCostInst(unsigned Opcode, unsigned Idx,  in getIntImmCostInst()  argument
118 switch (Opcode) { in getIntImmCostInst()
422 unsigned Opcode, Type *Ty, TTI::TargetCostKind CostKind, in getArithmeticInstrCost() argument
429 return BaseT::getArithmeticInstrCost(Opcode, Ty, CostKind, Op1Info, in getArithmeticInstrCost()
449 Opcode == Instruction::SDiv || Opcode == Instruction::SRem; in getArithmeticInstrCost()
451 Opcode == Instruction::UDiv || Opcode == Instruction::URem; in getArithmeticInstrCost()
474 if (Opcode == Instruction::FAdd || Opcode == Instruction::FSub || in getArithmeticInstrCost()
475 Opcode == Instruction::FMul || Opcode == Instruction::FDiv) in getArithmeticInstrCost()
479 if (Opcode == Instruction::FRem) in getArithmeticInstrCost()
484 if (Opcode == Instruction::Xor) { in getArithmeticInstrCost()
497 else if (Opcode == Instruction::And || Opcode == Instruction::Or) { in getArithmeticInstrCost()
503 (Opcode == Instruction::And || ST->hasVectorEnhancements1())))) in getArithmeticInstrCost()
510 if (Opcode == Instruction::Or) in getArithmeticInstrCost()
513 if (Opcode == Instruction::Xor && ScalarBits == 1) { in getArithmeticInstrCost()
533 if (Opcode == Instruction::Shl || Opcode == Instruction::LShr || in getArithmeticInstrCost()
534 Opcode == Instruction::AShr) { in getArithmeticInstrCost()
556 if (Opcode == Instruction::FAdd || Opcode == Instruction::FSub || in getArithmeticInstrCost()
557 Opcode == Instruction::FMul || Opcode == Instruction::FDiv) { in getArithmeticInstrCost()
566 getArithmeticInstrCost(Opcode, Ty->getScalarType(), CostKind); in getArithmeticInstrCost()
586 if (Opcode == Instruction::FRem) { in getArithmeticInstrCost()
598 return BaseT::getArithmeticInstrCost(Opcode, Ty, CostKind, Op1Info, Op2Info, in getArithmeticInstrCost()
750 getBoolVecToIntConversionCost(unsigned Opcode, Type *Dst, in getBoolVecToIntConversionCost() argument
760 if (Opcode == Instruction::ZExt || Opcode == Instruction::UIToFP) in getBoolVecToIntConversionCost()
766 InstructionCost SystemZTTIImpl::getCastInstrCost(unsigned Opcode, Type *Dst, in getCastInstrCost() argument
773 auto BaseCost = BaseT::getCastInstrCost(Opcode, Dst, Src, CCH, CostKind, I); in getCastInstrCost()
783 if (Opcode == Instruction::SIToFP || Opcode == Instruction::UIToFP) { in getCastInstrCost()
792 if ((Opcode == Instruction::FPToSI || Opcode == Instruction::FPToUI) && in getCastInstrCost()
796 if ((Opcode == Instruction::ZExt || Opcode == Instruction::SExt)) { in getCastInstrCost()
807 if (Opcode == Instruction::SExt) in getCastInstrCost()
809 if (Opcode == Instruction::ZExt) in getCastInstrCost()
820 if (Opcode == Instruction::ZExt && I != nullptr) in getCastInstrCost()
828 if (Opcode == Instruction::Trunc && isInt128InVR(Src) && I != nullptr) { in getCastInstrCost()
849 return BaseT::getCastInstrCost(Opcode, Dst, Src, CCH, CostKind, I); in getCastInstrCost()
855 if (Opcode == Instruction::Trunc) { in getCastInstrCost()
861 if (Opcode == Instruction::ZExt || Opcode == Instruction::SExt) { in getCastInstrCost()
864 if (Opcode == Instruction::ZExt) in getCastInstrCost()
879 return getBoolVecToIntConversionCost(Opcode, Dst, I); in getCastInstrCost()
882 if (Opcode == Instruction::SIToFP || Opcode == Instruction::UIToFP || in getCastInstrCost()
883 Opcode == Instruction::FPToSI || Opcode == Instruction::FPToUI) { in getCastInstrCost()
893 return getBoolVecToIntConversionCost(Opcode, Dst, I) + NumDstVectors; in getCastInstrCost()
900 Opcode, Dst->getScalarType(), Src->getScalarType(), CCH, CostKind); in getCastInstrCost()
905 (Opcode == Instruction::SIToFP || Opcode == Instruction::UIToFP)) in getCastInstrCost()
908 (Opcode == Instruction::FPToSI || Opcode == Instruction::FPToUI)) in getCastInstrCost()
923 if (Opcode == Instruction::FPTrunc) { in getCastInstrCost()
932 if (Opcode == Instruction::FPExt) { in getCastInstrCost()
945 return BaseT::getCastInstrCost(Opcode, Dst, Src, CCH, CostKind, I); in getCastInstrCost()
960 InstructionCost SystemZTTIImpl::getCmpSelInstrCost(unsigned Opcode, Type *ValTy, in getCmpSelInstrCost() argument
966 return BaseT::getCmpSelInstrCost(Opcode, ValTy, CondTy, VecPred, CostKind); in getCmpSelInstrCost()
969 switch (Opcode) { in getCmpSelInstrCost()
996 if (Opcode == Instruction::ICmp || Opcode == Instruction::FCmp) { in getCmpSelInstrCost()
1028 assert (Opcode == Instruction::Select); in getCmpSelInstrCost()
1042 return BaseT::getCmpSelInstrCost(Opcode, ValTy, CondTy, VecPred, CostKind); in getCmpSelInstrCost()
1045 InstructionCost SystemZTTIImpl::getVectorInstrCost(unsigned Opcode, Type *Val, in getVectorInstrCost() argument
1051 if (Opcode == Instruction::InsertElement && Val->isIntOrIntVectorTy(64)) in getVectorInstrCost()
1054 if (Opcode == Instruction::ExtractElement) { in getVectorInstrCost()
1064 return BaseT::getVectorInstrCost(Opcode, Val, CostKind, Index, Op0, Op1); in getVectorInstrCost()
1156 InstructionCost SystemZTTIImpl::getMemoryOpCost(unsigned Opcode, Type *Src, in getMemoryOpCost() argument
1168 if (!Src->isVectorTy() && Opcode == Instruction::Load && I != nullptr) { in getMemoryOpCost()
1198 return BaseT::getMemoryOpCost(Opcode, Src, Alignment, AddressSpace, in getMemoryOpCost()
1211 if (Opcode == Instruction::Load && I->hasOneUse()) { in getMemoryOpCost()
1234 unsigned Opcode, Type *VecTy, unsigned Factor, ArrayRef<unsigned> Indices, in getInterleavedMemoryOpCost() argument
1238 return BaseT::getInterleavedMemoryOpCost(Opcode, VecTy, Factor, Indices, in getInterleavedMemoryOpCost()
1251 if (Opcode == Instruction::Load) { in getInterleavedMemoryOpCost()