Lines Matching refs:Opcode

66 InstructionCost SystemZTTIImpl::getIntImmCostInst(unsigned Opcode, unsigned Idx,  in getIntImmCostInst()  argument
81 switch (Opcode) { in getIntImmCostInst()
384 unsigned Opcode, Type *Ty, TTI::TargetCostKind CostKind, in getArithmeticInstrCost() argument
392 return BaseT::getArithmeticInstrCost(Opcode, Ty, CostKind, Op1Info, in getArithmeticInstrCost()
413 Opcode == Instruction::SDiv || Opcode == Instruction::SRem; in getArithmeticInstrCost()
415 Opcode == Instruction::UDiv || Opcode == Instruction::URem; in getArithmeticInstrCost()
438 if (Opcode == Instruction::FAdd || Opcode == Instruction::FSub || in getArithmeticInstrCost()
439 Opcode == Instruction::FMul || Opcode == Instruction::FDiv) in getArithmeticInstrCost()
443 if (Opcode == Instruction::FRem) in getArithmeticInstrCost()
448 if (Opcode == Instruction::Xor) { in getArithmeticInstrCost()
458 else if (Opcode == Instruction::Or || Opcode == Instruction::And) { in getArithmeticInstrCost()
468 if (Opcode == Instruction::Or) in getArithmeticInstrCost()
471 if (Opcode == Instruction::Xor && ScalarBits == 1) { in getArithmeticInstrCost()
491 if (Opcode == Instruction::Shl || Opcode == Instruction::LShr || in getArithmeticInstrCost()
492 Opcode == Instruction::AShr) { in getArithmeticInstrCost()
513 if (Opcode == Instruction::FAdd || Opcode == Instruction::FSub || in getArithmeticInstrCost()
514 Opcode == Instruction::FMul || Opcode == Instruction::FDiv) { in getArithmeticInstrCost()
523 getArithmeticInstrCost(Opcode, Ty->getScalarType(), CostKind); in getArithmeticInstrCost()
542 if (Opcode == Instruction::FRem) { in getArithmeticInstrCost()
554 return BaseT::getArithmeticInstrCost(Opcode, Ty, CostKind, Op1Info, Op2Info, in getArithmeticInstrCost()
704 getBoolVecToIntConversionCost(unsigned Opcode, Type *Dst, in getBoolVecToIntConversionCost() argument
714 if (Opcode == Instruction::ZExt || Opcode == Instruction::UIToFP) in getBoolVecToIntConversionCost()
720 InstructionCost SystemZTTIImpl::getCastInstrCost(unsigned Opcode, Type *Dst, in getCastInstrCost() argument
727 auto BaseCost = BaseT::getCastInstrCost(Opcode, Dst, Src, CCH, CostKind, I); in getCastInstrCost()
737 if (Opcode == Instruction::SIToFP || Opcode == Instruction::UIToFP) { in getCastInstrCost()
744 if ((Opcode == Instruction::ZExt || Opcode == Instruction::SExt) && in getCastInstrCost()
752 if (Opcode == Instruction::SExt) in getCastInstrCost()
754 if (Opcode == Instruction::ZExt) in getCastInstrCost()
769 return BaseT::getCastInstrCost(Opcode, Dst, Src, CCH, CostKind, I); in getCastInstrCost()
775 if (Opcode == Instruction::Trunc) { in getCastInstrCost()
781 if (Opcode == Instruction::ZExt || Opcode == Instruction::SExt) { in getCastInstrCost()
795 return getBoolVecToIntConversionCost(Opcode, Dst, I); in getCastInstrCost()
798 if (Opcode == Instruction::SIToFP || Opcode == Instruction::UIToFP || in getCastInstrCost()
799 Opcode == Instruction::FPToSI || Opcode == Instruction::FPToUI) { in getCastInstrCost()
809 return getBoolVecToIntConversionCost(Opcode, Dst, I) + NumDstVectors; in getCastInstrCost()
816 Opcode, Dst->getScalarType(), Src->getScalarType(), CCH, CostKind); in getCastInstrCost()
821 (Opcode == Instruction::SIToFP || Opcode == Instruction::UIToFP)) in getCastInstrCost()
824 (Opcode == Instruction::FPToSI || Opcode == Instruction::FPToUI)) in getCastInstrCost()
837 if (Opcode == Instruction::FPTrunc) { in getCastInstrCost()
845 if (Opcode == Instruction::FPExt) { in getCastInstrCost()
857 return BaseT::getCastInstrCost(Opcode, Dst, Src, CCH, CostKind, I); in getCastInstrCost()
872 InstructionCost SystemZTTIImpl::getCmpSelInstrCost(unsigned Opcode, Type *ValTy, in getCmpSelInstrCost() argument
878 return BaseT::getCmpSelInstrCost(Opcode, ValTy, CondTy, VecPred, CostKind); in getCmpSelInstrCost()
881 switch (Opcode) { in getCmpSelInstrCost()
908 if (Opcode == Instruction::ICmp || Opcode == Instruction::FCmp) { in getCmpSelInstrCost()
940 assert (Opcode == Instruction::Select); in getCmpSelInstrCost()
954 return BaseT::getCmpSelInstrCost(Opcode, ValTy, CondTy, VecPred, CostKind); in getCmpSelInstrCost()
957 InstructionCost SystemZTTIImpl::getVectorInstrCost(unsigned Opcode, Type *Val, in getVectorInstrCost() argument
961 if (Opcode == Instruction::InsertElement && Val->isIntOrIntVectorTy(64)) in getVectorInstrCost()
964 if (Opcode == Instruction::ExtractElement) { in getVectorInstrCost()
974 return BaseT::getVectorInstrCost(Opcode, Val, Index); in getVectorInstrCost()
1066 InstructionCost SystemZTTIImpl::getMemoryOpCost(unsigned Opcode, Type *Src, in getMemoryOpCost() argument
1077 if (!Src->isVectorTy() && Opcode == Instruction::Load && I != nullptr) { in getMemoryOpCost()
1111 if (Opcode == Instruction::Load && I->hasOneUse()) { in getMemoryOpCost()
1138 unsigned Opcode, Type *VecTy, unsigned Factor, ArrayRef<unsigned> Indices, in getInterleavedMemoryOpCost() argument
1142 return BaseT::getInterleavedMemoryOpCost(Opcode, VecTy, Factor, Indices, in getInterleavedMemoryOpCost()
1155 if (Opcode == Instruction::Load) { in getInterleavedMemoryOpCost()