Lines Matching refs:Opcode
235 InstructionCost PPCTTIImpl::getIntImmCostInst(unsigned Opcode, unsigned Idx, in getIntImmCostInst() argument
240 return BaseT::getIntImmCostInst(Opcode, Idx, Imm, Ty, CostKind, Inst); in getIntImmCostInst()
251 switch (Opcode) { in getIntImmCostInst()
426 unsigned Opcode = 0; in mightUseCTR() local
497 case Intrinsic::fma: Opcode = ISD::FMA; break; in mightUseCTR()
498 case Intrinsic::sqrt: Opcode = ISD::FSQRT; break; in mightUseCTR()
499 case Intrinsic::floor: Opcode = ISD::FFLOOR; break; in mightUseCTR()
500 case Intrinsic::ceil: Opcode = ISD::FCEIL; break; in mightUseCTR()
501 case Intrinsic::trunc: Opcode = ISD::FTRUNC; break; in mightUseCTR()
502 case Intrinsic::rint: Opcode = ISD::FRINT; break; in mightUseCTR()
503 case Intrinsic::lrint: Opcode = ISD::LRINT; break; in mightUseCTR()
504 case Intrinsic::llrint: Opcode = ISD::LLRINT; break; in mightUseCTR()
505 case Intrinsic::nearbyint: Opcode = ISD::FNEARBYINT; break; in mightUseCTR()
506 case Intrinsic::round: Opcode = ISD::FROUND; break; in mightUseCTR()
507 case Intrinsic::lround: Opcode = ISD::LROUND; break; in mightUseCTR()
508 case Intrinsic::llround: Opcode = ISD::LLROUND; break; in mightUseCTR()
509 case Intrinsic::minnum: Opcode = ISD::FMINNUM; break; in mightUseCTR()
510 case Intrinsic::maxnum: Opcode = ISD::FMAXNUM; break; in mightUseCTR()
512 Opcode = ISD::STRICT_FSETCC; in mightUseCTR()
515 Opcode = ISD::STRICT_FSETCCS; in mightUseCTR()
518 Opcode = ISD::STRICT_FMA; in mightUseCTR()
521 Opcode = ISD::STRICT_FSQRT; in mightUseCTR()
524 Opcode = ISD::STRICT_FFLOOR; in mightUseCTR()
527 Opcode = ISD::STRICT_FCEIL; in mightUseCTR()
530 Opcode = ISD::STRICT_FTRUNC; in mightUseCTR()
533 Opcode = ISD::STRICT_FRINT; in mightUseCTR()
536 Opcode = ISD::STRICT_LRINT; in mightUseCTR()
539 Opcode = ISD::STRICT_LLRINT; in mightUseCTR()
542 Opcode = ISD::STRICT_FNEARBYINT; in mightUseCTR()
545 Opcode = ISD::STRICT_FROUND; in mightUseCTR()
548 Opcode = ISD::STRICT_LROUND; in mightUseCTR()
551 Opcode = ISD::STRICT_LLROUND; in mightUseCTR()
554 Opcode = ISD::STRICT_FMINNUM; in mightUseCTR()
557 Opcode = ISD::STRICT_FMAXNUM; in mightUseCTR()
559 case Intrinsic::umul_with_overflow: Opcode = ISD::UMULO; break; in mightUseCTR()
560 case Intrinsic::smul_with_overflow: Opcode = ISD::SMULO; break; in mightUseCTR()
595 Opcode = ISD::FSQRT; break; in mightUseCTR()
599 Opcode = ISD::FFLOOR; break; in mightUseCTR()
603 Opcode = ISD::FNEARBYINT; break; in mightUseCTR()
607 Opcode = ISD::FCEIL; break; in mightUseCTR()
611 Opcode = ISD::FRINT; break; in mightUseCTR()
615 Opcode = ISD::FROUND; break; in mightUseCTR()
619 Opcode = ISD::FTRUNC; break; in mightUseCTR()
623 Opcode = ISD::FMINNUM; break; in mightUseCTR()
627 Opcode = ISD::FMAXNUM; break; in mightUseCTR()
631 if (Opcode) { in mightUseCTR()
638 if (TLI->isOperationLegalOrCustom(Opcode, EVTy)) in mightUseCTR()
641 TLI->isOperationLegalOrCustom(Opcode, EVTy.getScalarType())) in mightUseCTR()
948 unsigned Opcode, Type *Ty1, in vectorCostAdjustment() argument
959 int ISD = TLI->InstructionOpcodeToISD(Opcode); in vectorCostAdjustment()
973 unsigned Opcode, Type *Ty, TTI::TargetCostKind CostKind, in getArithmeticInstrCost() argument
978 assert(TLI->InstructionOpcodeToISD(Opcode) && "Invalid opcode"); in getArithmeticInstrCost()
981 return BaseT::getArithmeticInstrCost(Opcode, Ty, CostKind, Op1Info, in getArithmeticInstrCost()
987 Opcode, Ty, CostKind, Op1Info, Op2Info, Opd1PropInfo, Opd2PropInfo); in getArithmeticInstrCost()
988 return vectorCostAdjustment(Cost, Opcode, Ty, nullptr); in getArithmeticInstrCost()
1006 InstructionCost PPCTTIImpl::getCFInstrCost(unsigned Opcode, in getCFInstrCost() argument
1010 return Opcode == Instruction::PHI ? 0 : 1; in getCFInstrCost()
1015 InstructionCost PPCTTIImpl::getCastInstrCost(unsigned Opcode, Type *Dst, in getCastInstrCost() argument
1020 assert(TLI->InstructionOpcodeToISD(Opcode) && "Invalid opcode"); in getCastInstrCost()
1023 BaseT::getCastInstrCost(Opcode, Dst, Src, CCH, CostKind, I); in getCastInstrCost()
1024 Cost = vectorCostAdjustment(Cost, Opcode, Dst, Src); in getCastInstrCost()
1031 InstructionCost PPCTTIImpl::getCmpSelInstrCost(unsigned Opcode, Type *ValTy, in getCmpSelInstrCost() argument
1037 BaseT::getCmpSelInstrCost(Opcode, ValTy, CondTy, VecPred, CostKind, I); in getCmpSelInstrCost()
1041 return vectorCostAdjustment(Cost, Opcode, ValTy, nullptr); in getCmpSelInstrCost()
1044 InstructionCost PPCTTIImpl::getVectorInstrCost(unsigned Opcode, Type *Val, in getVectorInstrCost() argument
1048 int ISD = TLI->InstructionOpcodeToISD(Opcode); in getVectorInstrCost()
1051 InstructionCost Cost = BaseT::getVectorInstrCost(Opcode, Val, Index); in getVectorInstrCost()
1052 Cost = vectorCostAdjustment(Cost, Opcode, Val, nullptr); in getVectorInstrCost()
1067 return vectorCostAdjustment(2, Opcode, Val, nullptr); in getVectorInstrCost()
1084 return vectorCostAdjustment(1, Opcode, Val, nullptr); in getVectorInstrCost()
1111 InstructionCost PPCTTIImpl::getMemoryOpCost(unsigned Opcode, Type *Src, in getMemoryOpCost() argument
1117 return BaseT::getMemoryOpCost(Opcode, Src, Alignment, AddressSpace, in getMemoryOpCost()
1121 assert((Opcode == Instruction::Load || Opcode == Instruction::Store) && in getMemoryOpCost()
1125 BaseT::getMemoryOpCost(Opcode, Src, Alignment, AddressSpace, CostKind); in getMemoryOpCost()
1130 Cost = vectorCostAdjustment(Cost, Opcode, Src, nullptr); in getMemoryOpCost()
1143 if (Opcode == Instruction::Load && ST->hasVSX() && IsAltivecType && in getMemoryOpCost()
1159 if (Opcode == Instruction::Load && (!ST->hasP8Vector() && IsAltivecType) && in getMemoryOpCost()
1184 if (Src->isVectorTy() && Opcode == Instruction::Store) in getMemoryOpCost()
1193 unsigned Opcode, Type *VecTy, unsigned Factor, ArrayRef<unsigned> Indices, in getInterleavedMemoryOpCost() argument
1197 return BaseT::getInterleavedMemoryOpCost(Opcode, VecTy, Factor, Indices, in getInterleavedMemoryOpCost()
1208 InstructionCost Cost = getMemoryOpCost(Opcode, VecTy, MaybeAlign(Alignment), in getInterleavedMemoryOpCost()