Lines Matching refs:Opcode

121 int PPCTTIImpl::getIntImmCostInst(unsigned Opcode, unsigned Idx,
124 return BaseT::getIntImmCostInst(Opcode, Idx, Imm, Ty);
135 switch (Opcode) {
277 unsigned Opcode = 0;
312 case Intrinsic::sqrt: Opcode = ISD::FSQRT; break;
313 case Intrinsic::floor: Opcode = ISD::FFLOOR; break;
314 case Intrinsic::ceil: Opcode = ISD::FCEIL; break;
315 case Intrinsic::trunc: Opcode = ISD::FTRUNC; break;
316 case Intrinsic::rint: Opcode = ISD::FRINT; break;
317 case Intrinsic::lrint: Opcode = ISD::LRINT; break;
318 case Intrinsic::llrint: Opcode = ISD::LLRINT; break;
319 case Intrinsic::nearbyint: Opcode = ISD::FNEARBYINT; break;
320 case Intrinsic::round: Opcode = ISD::FROUND; break;
321 case Intrinsic::lround: Opcode = ISD::LROUND; break;
322 case Intrinsic::llround: Opcode = ISD::LLROUND; break;
323 case Intrinsic::minnum: Opcode = ISD::FMINNUM; break;
324 case Intrinsic::maxnum: Opcode = ISD::FMAXNUM; break;
325 case Intrinsic::umul_with_overflow: Opcode = ISD::UMULO; break;
326 case Intrinsic::smul_with_overflow: Opcode = ISD::SMULO; break;
361 Opcode = ISD::FSQRT; break;
365 Opcode = ISD::FFLOOR; break;
369 Opcode = ISD::FNEARBYINT; break;
373 Opcode = ISD::FCEIL; break;
377 Opcode = ISD::FRINT; break;
381 Opcode = ISD::FROUND; break;
385 Opcode = ISD::FTRUNC; break;
389 Opcode = ISD::FMINNUM; break;
393 Opcode = ISD::FMAXNUM; break;
397 if (Opcode) {
404 if (TLI->isOperationLegalOrCustom(Opcode, EVTy))
407 TLI->isOperationLegalOrCustom(Opcode, EVTy.getScalarType()))
709 int PPCTTIImpl::vectorCostAdjustment(int Cost, unsigned Opcode, Type *Ty1,
720 int ISD = TLI->InstructionOpcodeToISD(Opcode);
733 int PPCTTIImpl::getArithmeticInstrCost(unsigned Opcode, Type *Ty,
740 assert(TLI->InstructionOpcodeToISD(Opcode) && "Invalid opcode");
743 int Cost = BaseT::getArithmeticInstrCost(Opcode, Ty, Op1Info, Op2Info,
745 return vectorCostAdjustment(Cost, Opcode, Ty, nullptr);
762 int PPCTTIImpl::getCastInstrCost(unsigned Opcode, Type *Dst, Type *Src,
764 assert(TLI->InstructionOpcodeToISD(Opcode) && "Invalid opcode");
766 int Cost = BaseT::getCastInstrCost(Opcode, Dst, Src);
767 return vectorCostAdjustment(Cost, Opcode, Dst, Src);
770 int PPCTTIImpl::getCmpSelInstrCost(unsigned Opcode, Type *ValTy, Type *CondTy,
772 int Cost = BaseT::getCmpSelInstrCost(Opcode, ValTy, CondTy, I);
773 return vectorCostAdjustment(Cost, Opcode, ValTy, nullptr);
776 int PPCTTIImpl::getVectorInstrCost(unsigned Opcode, Type *Val, unsigned Index) {
779 int ISD = TLI->InstructionOpcodeToISD(Opcode);
782 int Cost = BaseT::getVectorInstrCost(Opcode, Val, Index);
783 Cost = vectorCostAdjustment(Cost, Opcode, Val, nullptr);
805 return vectorCostAdjustment(2, Opcode, Val, nullptr);
822 return vectorCostAdjustment(1, Opcode, Val, nullptr);
849 int PPCTTIImpl::getMemoryOpCost(unsigned Opcode, Type *Src,
854 assert((Opcode == Instruction::Load || Opcode == Instruction::Store) &&
855 "Invalid Opcode");
857 int Cost = BaseT::getMemoryOpCost(Opcode, Src, Alignment, AddressSpace);
858 Cost = vectorCostAdjustment(Cost, Opcode, Src, nullptr);
873 if (Opcode == Instruction::Load && ST->hasVSX() && IsAltivecType &&
889 if (Opcode == Instruction::Load &&
915 if (Src->isVectorTy() && Opcode == Instruction::Store)
922 int PPCTTIImpl::getInterleavedMemoryOpCost(unsigned Opcode, Type *VecTy,
930 return BaseT::getInterleavedMemoryOpCost(Opcode, VecTy, Factor, Indices,
942 getMemoryOpCost(Opcode, VecTy, MaybeAlign(Alignment), AddressSpace);