Lines Matching defs:Opcode

161 InstructionCost RISCVTTIImpl::getIntImmCostInst(unsigned Opcode, unsigned Idx,
177 switch (Opcode) {
252 if (Instruction::isCommutative(Opcode) || Idx == ImmArgIdx) {
611 RISCVTTIImpl::getMaskedMemoryOpCost(unsigned Opcode, Type *Src, Align Alignment,
616 return BaseT::getMaskedMemoryOpCost(Opcode, Src, Alignment, AddressSpace,
619 return getMemoryOpCost(Opcode, Src, Alignment, AddressSpace, CostKind);
623 unsigned Opcode, Type *VecTy, unsigned Factor, ArrayRef<unsigned> Indices,
653 Opcode, LegalVTy, Alignment, AddressSpace, CostKind);
666 getMemoryOpCost(Opcode, VecTy, Alignment, AddressSpace, CostKind);
674 if (Opcode == Instruction::Load) {
699 return BaseT::getInterleavedMemoryOpCost(Opcode, VecTy, Factor, Indices,
703 assert(Opcode == Instruction::Store && "Opcode must be a store");
714 unsigned Opcode, Type *DataTy, const Value *Ptr, bool VariableMask,
717 return BaseT::getGatherScatterOpCost(Opcode, DataTy, Ptr, VariableMask,
720 if ((Opcode == Instruction::Load &&
722 (Opcode == Instruction::Store &&
724 return BaseT::getGatherScatterOpCost(Opcode, DataTy, Ptr, VariableMask,
732 getMemoryOpCost(Opcode, VTy.getElementType(), Alignment, 0, CostKind,
739 unsigned Opcode, Type *DataTy, const Value *Ptr, bool VariableMask,
741 if (((Opcode == Instruction::Load || Opcode == Instruction::Store) &&
743 (Opcode != Instruction::Load && Opcode != Instruction::Store))
744 return BaseT::getStridedMemoryOpCost(Opcode, DataTy, Ptr, VariableMask,
755 getMemoryOpCost(Opcode, VTy.getElementType(), Alignment, 0, CostKind,
1024 InstructionCost RISCVTTIImpl::getCastInstrCost(unsigned Opcode, Type *Dst,
1031 return BaseT::getCastInstrCost(Opcode, Dst, Src, CCH, CostKind, I);
1039 return BaseT::getCastInstrCost(Opcode, Dst, Src, CCH, CostKind, I);
1044 int ISD = TLI->InstructionOpcodeToISD(Opcode);
1062 return BaseT::getCastInstrCost(Opcode, Dst, Src, CCH, CostKind, I);
1128 return BaseT::getCastInstrCost(Opcode, Dst, Src, CCH, CostKind, I);
1248 RISCVTTIImpl::getArithmeticReductionCost(unsigned Opcode, VectorType *Ty,
1252 return BaseT::getArithmeticReductionCost(Opcode, Ty, FMF, CostKind);
1256 return BaseT::getArithmeticReductionCost(Opcode, Ty, FMF, CostKind);
1258 int ISD = TLI->InstructionOpcodeToISD(Opcode);
1263 return BaseT::getArithmeticReductionCost(Opcode, Ty, FMF, CostKind);
1333 unsigned Opcode, bool IsUnsigned, Type *ResTy, VectorType *ValTy,
1336 return BaseT::getExtendedReductionCost(Opcode, IsUnsigned, ResTy, ValTy,
1341 return BaseT::getExtendedReductionCost(Opcode, IsUnsigned, ResTy, ValTy,
1344 if (Opcode != Instruction::Add && Opcode != Instruction::FAdd)
1345 return BaseT::getExtendedReductionCost(Opcode, IsUnsigned, ResTy, ValTy,
1351 return BaseT::getExtendedReductionCost(Opcode, IsUnsigned, ResTy, ValTy,
1355 getArithmeticReductionCost(Opcode, ValTy, FMF, CostKind);
1378 InstructionCost RISCVTTIImpl::getMemoryOpCost(unsigned Opcode, Type *Src,
1387 return BaseT::getMemoryOpCost(Opcode, Src, Alignment, AddressSpace,
1391 if (Opcode == Instruction::Store && OpInfo.isConstant())
1394 BaseT::getMemoryOpCost(Opcode, Src, Alignment, AddressSpace,
1406 InstructionCost RISCVTTIImpl::getCmpSelInstrCost(unsigned Opcode, Type *ValTy,
1412 return BaseT::getCmpSelInstrCost(Opcode, ValTy, CondTy, VecPred, CostKind,
1416 return BaseT::getCmpSelInstrCost(Opcode, ValTy, CondTy, VecPred, CostKind,
1421 return BaseT::getCmpSelInstrCost(Opcode, ValTy, CondTy, VecPred, CostKind,
1425 if (Opcode == Instruction::Select && ValTy->isVectorTy()) {
1464 if ((Opcode == Instruction::ICmp) && ValTy->isVectorTy() &&
1472 if ((Opcode == Instruction::FCmp) && ValTy->isVectorTy() &&
1486 return BaseT::getCmpSelInstrCost(Opcode, ValTy, CondTy, VecPred, CostKind,
1538 return BaseT::getCmpSelInstrCost(Opcode, ValTy, CondTy, VecPred, CostKind, I);
1541 InstructionCost RISCVTTIImpl::getCFInstrCost(unsigned Opcode,
1545 return Opcode == Instruction::PHI ? 0 : 1;
1550 InstructionCost RISCVTTIImpl::getVectorInstrCost(unsigned Opcode, Type *Val,
1556 if (Opcode != Instruction::ExtractElement &&
1557 Opcode != Instruction::InsertElement)
1558 return BaseT::getVectorInstrCost(Opcode, Val, CostKind, Index, Op0, Op1);
1580 return Opcode == Instruction::ExtractElement
1590 return BaseT::getVectorInstrCost(Opcode, Val, CostKind, Index, Op0, Op1);
1597 if (Opcode == Instruction::ExtractElement) {
1602 = getVectorInstrCost(Opcode, WideTy, CostKind, Index, nullptr, nullptr);
1609 = getVectorInstrCost(Opcode, WideTy, CostKind, Index, nullptr, nullptr);
1621 unsigned SlideCost = Opcode == Instruction::InsertElement ? 2 : 1;
1634 else if (Opcode == Instruction::InsertElement)
1659 BaseCost = Opcode == Instruction::InsertElement ? 3 : 4;
1665 unsigned Opcode, Type *Ty, TTI::TargetCostKind CostKind,
1671 return BaseT::getArithmeticInstrCost(Opcode, Ty, CostKind, Op1Info, Op2Info,
1675 return BaseT::getArithmeticInstrCost(Opcode, Ty, CostKind, Op1Info, Op2Info,
1680 return BaseT::getArithmeticInstrCost(Opcode, Ty, CostKind, Op1Info, Op2Info,
1688 return BaseT::getArithmeticInstrCost(Opcode, Ty, CostKind, Op1Info, Op2Info,
1693 if (OpInfo.isUniform() && TLI->canSplatOperand(Opcode, Operand))
1712 switch (TLI->InstructionOpcodeToISD(Opcode)) {
1758 return ConstantMatCost + BaseT::getArithmeticInstrCost(Opcode, Ty, CostKind,
1917 unsigned RISCVTTIImpl::getMaximumVF(unsigned ElemWidth, unsigned Opcode) const {