Lines Matching refs:Opcode
66 int SystemZTTIImpl::getIntImmCost(unsigned Opcode, unsigned Idx, in getIntImmCost() argument
79 switch (Opcode) { in getIntImmCost()
351 unsigned Opcode, Type *Ty, in getArithmeticInstrCost() argument
374 Opcode == Instruction::SDiv || Opcode == Instruction::SRem; in getArithmeticInstrCost()
376 Opcode == Instruction::UDiv || Opcode == Instruction::URem; in getArithmeticInstrCost()
403 if (Opcode == Instruction::Shl || Opcode == Instruction::LShr || in getArithmeticInstrCost()
404 Opcode == Instruction::AShr) { in getArithmeticInstrCost()
423 if (Opcode == Instruction::FAdd || Opcode == Instruction::FSub || in getArithmeticInstrCost()
424 Opcode == Instruction::FMul || Opcode == Instruction::FDiv) { in getArithmeticInstrCost()
433 getArithmeticInstrCost(Opcode, Ty->getScalarType()); in getArithmeticInstrCost()
450 if (Opcode == Instruction::FRem) { in getArithmeticInstrCost()
462 if (Opcode == Instruction::FAdd || Opcode == Instruction::FSub || in getArithmeticInstrCost()
463 Opcode == Instruction::FMul || Opcode == Instruction::FDiv) in getArithmeticInstrCost()
467 if (Opcode == Instruction::FRem) in getArithmeticInstrCost()
471 if (Opcode == Instruction::Or) in getArithmeticInstrCost()
474 if (Opcode == Instruction::Xor && ScalarBits == 1) { in getArithmeticInstrCost()
489 return BaseT::getArithmeticInstrCost(Opcode, Ty, Op1Info, Op2Info, in getArithmeticInstrCost()
634 getBoolVecToIntConversionCost(unsigned Opcode, Type *Dst, in getBoolVecToIntConversionCost() argument
644 if (Opcode == Instruction::ZExt || Opcode == Instruction::UIToFP) in getBoolVecToIntConversionCost()
650 int SystemZTTIImpl::getCastInstrCost(unsigned Opcode, Type *Dst, Type *Src, in getCastInstrCost() argument
662 if (Opcode == Instruction::Trunc) { in getCastInstrCost()
668 if (Opcode == Instruction::ZExt || Opcode == Instruction::SExt) { in getCastInstrCost()
682 return getBoolVecToIntConversionCost(Opcode, Dst, I); in getCastInstrCost()
685 if (Opcode == Instruction::SIToFP || Opcode == Instruction::UIToFP || in getCastInstrCost()
686 Opcode == Instruction::FPToSI || Opcode == Instruction::FPToUI) { in getCastInstrCost()
696 return getBoolVecToIntConversionCost(Opcode, Dst, I) + NumDstVectors; in getCastInstrCost()
702 unsigned ScalarCost = getCastInstrCost(Opcode, Dst->getScalarType(), in getCastInstrCost()
708 (Opcode == Instruction::SIToFP || Opcode == Instruction::UIToFP)) in getCastInstrCost()
711 (Opcode == Instruction::FPToSI || Opcode == Instruction::FPToUI)) in getCastInstrCost()
724 if (Opcode == Instruction::FPTrunc) { in getCastInstrCost()
731 if (Opcode == Instruction::FPExt) { in getCastInstrCost()
745 if (Opcode == Instruction::SIToFP || Opcode == Instruction::UIToFP) { in getCastInstrCost()
752 if ((Opcode == Instruction::ZExt || Opcode == Instruction::SExt) && in getCastInstrCost()
760 if (Opcode == Instruction::SExt) in getCastInstrCost()
762 if (Opcode == Instruction::ZExt) in getCastInstrCost()
772 return BaseT::getCastInstrCost(Opcode, Dst, Src, I); in getCastInstrCost()
787 int SystemZTTIImpl::getCmpSelInstrCost(unsigned Opcode, Type *ValTy, in getCmpSelInstrCost() argument
794 if (Opcode == Instruction::ICmp || Opcode == Instruction::FCmp) { in getCmpSelInstrCost()
826 assert (Opcode == Instruction::Select); in getCmpSelInstrCost()
840 switch (Opcode) { in getCmpSelInstrCost()
864 return BaseT::getCmpSelInstrCost(Opcode, ValTy, CondTy, nullptr); in getCmpSelInstrCost()
868 getVectorInstrCost(unsigned Opcode, Type *Val, unsigned Index) { in getVectorInstrCost() argument
871 if (Opcode == Instruction::InsertElement && Val->isIntOrIntVectorTy(64)) in getVectorInstrCost()
874 if (Opcode == Instruction::ExtractElement) { in getVectorInstrCost()
884 return BaseT::getVectorInstrCost(Opcode, Val, Index); in getVectorInstrCost()
976 int SystemZTTIImpl::getMemoryOpCost(unsigned Opcode, Type *Src, in getMemoryOpCost() argument
981 if (!Src->isVectorTy() && Opcode == Instruction::Load && I != nullptr) { in getMemoryOpCost()
1014 if (Opcode == Instruction::Load && I->hasOneUse()) { in getMemoryOpCost()
1040 int SystemZTTIImpl::getInterleavedMemoryOpCost(unsigned Opcode, Type *VecTy, in getInterleavedMemoryOpCost() argument
1048 return BaseT::getInterleavedMemoryOpCost(Opcode, VecTy, Factor, Indices, in getInterleavedMemoryOpCost()
1064 if (Opcode == Instruction::Load) { in getInterleavedMemoryOpCost()