Lines Matching refs:Opcode
230 InstructionCost PPCTTIImpl::getIntImmCostInst(unsigned Opcode, unsigned Idx, in getIntImmCostInst() argument
235 return BaseT::getIntImmCostInst(Opcode, Idx, Imm, Ty, CostKind, Inst); in getIntImmCostInst()
246 switch (Opcode) { in getIntImmCostInst()
427 unsigned Opcode = 0; in mightUseCTR() local
496 case Intrinsic::fma: Opcode = ISD::FMA; break; in mightUseCTR()
497 case Intrinsic::sqrt: Opcode = ISD::FSQRT; break; in mightUseCTR()
498 case Intrinsic::floor: Opcode = ISD::FFLOOR; break; in mightUseCTR()
499 case Intrinsic::ceil: Opcode = ISD::FCEIL; break; in mightUseCTR()
500 case Intrinsic::trunc: Opcode = ISD::FTRUNC; break; in mightUseCTR()
501 case Intrinsic::rint: Opcode = ISD::FRINT; break; in mightUseCTR()
502 case Intrinsic::lrint: Opcode = ISD::LRINT; break; in mightUseCTR()
503 case Intrinsic::llrint: Opcode = ISD::LLRINT; break; in mightUseCTR()
504 case Intrinsic::nearbyint: Opcode = ISD::FNEARBYINT; break; in mightUseCTR()
505 case Intrinsic::round: Opcode = ISD::FROUND; break; in mightUseCTR()
506 case Intrinsic::lround: Opcode = ISD::LROUND; break; in mightUseCTR()
507 case Intrinsic::llround: Opcode = ISD::LLROUND; break; in mightUseCTR()
508 case Intrinsic::minnum: Opcode = ISD::FMINNUM; break; in mightUseCTR()
509 case Intrinsic::maxnum: Opcode = ISD::FMAXNUM; break; in mightUseCTR()
511 Opcode = ISD::STRICT_FSETCC; in mightUseCTR()
514 Opcode = ISD::STRICT_FSETCCS; in mightUseCTR()
517 Opcode = ISD::STRICT_FMA; in mightUseCTR()
520 Opcode = ISD::STRICT_FSQRT; in mightUseCTR()
523 Opcode = ISD::STRICT_FFLOOR; in mightUseCTR()
526 Opcode = ISD::STRICT_FCEIL; in mightUseCTR()
529 Opcode = ISD::STRICT_FTRUNC; in mightUseCTR()
532 Opcode = ISD::STRICT_FRINT; in mightUseCTR()
535 Opcode = ISD::STRICT_LRINT; in mightUseCTR()
538 Opcode = ISD::STRICT_LLRINT; in mightUseCTR()
541 Opcode = ISD::STRICT_FNEARBYINT; in mightUseCTR()
544 Opcode = ISD::STRICT_FROUND; in mightUseCTR()
547 Opcode = ISD::STRICT_LROUND; in mightUseCTR()
550 Opcode = ISD::STRICT_LLROUND; in mightUseCTR()
553 Opcode = ISD::STRICT_FMINNUM; in mightUseCTR()
556 Opcode = ISD::STRICT_FMAXNUM; in mightUseCTR()
558 case Intrinsic::umul_with_overflow: Opcode = ISD::UMULO; break; in mightUseCTR()
559 case Intrinsic::smul_with_overflow: Opcode = ISD::SMULO; break; in mightUseCTR()
594 Opcode = ISD::FSQRT; break; in mightUseCTR()
598 Opcode = ISD::FFLOOR; break; in mightUseCTR()
602 Opcode = ISD::FNEARBYINT; break; in mightUseCTR()
606 Opcode = ISD::FCEIL; break; in mightUseCTR()
610 Opcode = ISD::FRINT; break; in mightUseCTR()
614 Opcode = ISD::FROUND; break; in mightUseCTR()
618 Opcode = ISD::FTRUNC; break; in mightUseCTR()
622 Opcode = ISD::FMINNUM; break; in mightUseCTR()
626 Opcode = ISD::FMAXNUM; break; in mightUseCTR()
630 if (Opcode) { in mightUseCTR()
637 if (TLI->isOperationLegalOrCustom(Opcode, EVTy)) in mightUseCTR()
640 TLI->isOperationLegalOrCustom(Opcode, EVTy.getScalarType())) in mightUseCTR()
950 InstructionCost PPCTTIImpl::vectorCostAdjustmentFactor(unsigned Opcode, in vectorCostAdjustmentFactor() argument
968 int ISD = TLI->InstructionOpcodeToISD(Opcode); in vectorCostAdjustmentFactor()
982 unsigned Opcode, Type *Ty, TTI::TargetCostKind CostKind, in getArithmeticInstrCost() argument
987 assert(TLI->InstructionOpcodeToISD(Opcode) && "Invalid opcode"); in getArithmeticInstrCost()
989 InstructionCost CostFactor = vectorCostAdjustmentFactor(Opcode, Ty, nullptr); in getArithmeticInstrCost()
995 return BaseT::getArithmeticInstrCost(Opcode, Ty, CostKind, Op1Info, in getArithmeticInstrCost()
1001 Opcode, Ty, CostKind, Op1Info, Op2Info, Opd1PropInfo, Opd2PropInfo); in getArithmeticInstrCost()
1026 InstructionCost PPCTTIImpl::getCFInstrCost(unsigned Opcode, in getCFInstrCost() argument
1030 return Opcode == Instruction::PHI ? 0 : 1; in getCFInstrCost()
1035 InstructionCost PPCTTIImpl::getCastInstrCost(unsigned Opcode, Type *Dst, in getCastInstrCost() argument
1040 assert(TLI->InstructionOpcodeToISD(Opcode) && "Invalid opcode"); in getCastInstrCost()
1042 InstructionCost CostFactor = vectorCostAdjustmentFactor(Opcode, Dst, Src); in getCastInstrCost()
1047 BaseT::getCastInstrCost(Opcode, Dst, Src, CCH, CostKind, I); in getCastInstrCost()
1055 InstructionCost PPCTTIImpl::getCmpSelInstrCost(unsigned Opcode, Type *ValTy, in getCmpSelInstrCost() argument
1061 vectorCostAdjustmentFactor(Opcode, ValTy, nullptr); in getCmpSelInstrCost()
1066 BaseT::getCmpSelInstrCost(Opcode, ValTy, CondTy, VecPred, CostKind, I); in getCmpSelInstrCost()
1073 InstructionCost PPCTTIImpl::getVectorInstrCost(unsigned Opcode, Type *Val, in getVectorInstrCost() argument
1077 int ISD = TLI->InstructionOpcodeToISD(Opcode); in getVectorInstrCost()
1080 InstructionCost CostFactor = vectorCostAdjustmentFactor(Opcode, Val, nullptr); in getVectorInstrCost()
1084 InstructionCost Cost = BaseT::getVectorInstrCost(Opcode, Val, Index); in getVectorInstrCost()
1144 InstructionCost PPCTTIImpl::getMemoryOpCost(unsigned Opcode, Type *Src, in getMemoryOpCost() argument
1150 InstructionCost CostFactor = vectorCostAdjustmentFactor(Opcode, Src, nullptr); in getMemoryOpCost()
1155 return BaseT::getMemoryOpCost(Opcode, Src, Alignment, AddressSpace, in getMemoryOpCost()
1159 assert((Opcode == Instruction::Load || Opcode == Instruction::Store) && in getMemoryOpCost()
1163 BaseT::getMemoryOpCost(Opcode, Src, Alignment, AddressSpace, CostKind); in getMemoryOpCost()
1181 if (Opcode == Instruction::Load && ST->hasVSX() && IsAltivecType && in getMemoryOpCost()
1197 if (Opcode == Instruction::Load && (!ST->hasP8Vector() && IsAltivecType) && in getMemoryOpCost()
1222 if (Src->isVectorTy() && Opcode == Instruction::Store) in getMemoryOpCost()
1231 unsigned Opcode, Type *VecTy, unsigned Factor, ArrayRef<unsigned> Indices, in getInterleavedMemoryOpCost() argument
1235 vectorCostAdjustmentFactor(Opcode, VecTy, nullptr); in getInterleavedMemoryOpCost()
1240 return BaseT::getInterleavedMemoryOpCost(Opcode, VecTy, Factor, Indices, in getInterleavedMemoryOpCost()
1251 InstructionCost Cost = getMemoryOpCost(Opcode, VecTy, MaybeAlign(Alignment), in getInterleavedMemoryOpCost()
1381 bool PPCTTIImpl::hasActiveVectorLength(unsigned Opcode, Type *DataType, in hasActiveVectorLength() argument
1384 if (Opcode != Instruction::Load && Opcode != Instruction::Store) in hasActiveVectorLength()
1409 InstructionCost PPCTTIImpl::getVPMemoryOpCost(unsigned Opcode, Type *Src, in getVPMemoryOpCost() argument
1414 InstructionCost Cost = BaseT::getVPMemoryOpCost(Opcode, Src, Alignment, in getVPMemoryOpCost()
1422 assert((Opcode == Instruction::Load || Opcode == Instruction::Store) && in getVPMemoryOpCost()
1428 if (hasActiveVectorLength(Opcode, Src, Alignment)) { in getVPMemoryOpCost()
1433 vectorCostAdjustmentFactor(Opcode, Src, nullptr); in getVPMemoryOpCost()
1461 return getMaskedMemoryOpCost(Opcode, Src, Alignment, AddressSpace, CostKind); in getVPMemoryOpCost()