Lines Matching refs:Opcode

142 InstructionCost RISCVTTIImpl::getIntImmCostInst(unsigned Opcode, unsigned Idx,  in getIntImmCostInst()  argument
158 switch (Opcode) { in getIntImmCostInst()
212 if (Instruction::isCommutative(Opcode) || Idx == ImmArgIdx) { in getIntImmCostInst()
545 RISCVTTIImpl::getMaskedMemoryOpCost(unsigned Opcode, Type *Src, Align Alignment, in getMaskedMemoryOpCost() argument
550 return BaseT::getMaskedMemoryOpCost(Opcode, Src, Alignment, AddressSpace, in getMaskedMemoryOpCost()
553 return getMemoryOpCost(Opcode, Src, Alignment, AddressSpace, CostKind); in getMaskedMemoryOpCost()
557 unsigned Opcode, Type *VecTy, unsigned Factor, ArrayRef<unsigned> Indices, in getInterleavedMemoryOpCost() argument
564 getMemoryOpCost(Opcode, VecTy, Alignment, AddressSpace, CostKind); in getInterleavedMemoryOpCost()
585 Opcode, LegalFVTy, Alignment, AddressSpace, CostKind); in getInterleavedMemoryOpCost()
596 if (Opcode == Instruction::Load) { in getInterleavedMemoryOpCost()
621 return BaseT::getInterleavedMemoryOpCost(Opcode, VecTy, Factor, Indices, in getInterleavedMemoryOpCost()
625 assert(Opcode == Instruction::Store && "Opcode must be a store"); in getInterleavedMemoryOpCost()
636 unsigned Opcode, Type *DataTy, const Value *Ptr, bool VariableMask, in getGatherScatterOpCost() argument
639 return BaseT::getGatherScatterOpCost(Opcode, DataTy, Ptr, VariableMask, in getGatherScatterOpCost()
642 if ((Opcode == Instruction::Load && in getGatherScatterOpCost()
644 (Opcode == Instruction::Store && in getGatherScatterOpCost()
646 return BaseT::getGatherScatterOpCost(Opcode, DataTy, Ptr, VariableMask, in getGatherScatterOpCost()
654 getMemoryOpCost(Opcode, VTy.getElementType(), Alignment, 0, CostKind, in getGatherScatterOpCost()
839 InstructionCost RISCVTTIImpl::getCastInstrCost(unsigned Opcode, Type *Dst, in getCastInstrCost() argument
847 return BaseT::getCastInstrCost(Opcode, Dst, Src, CCH, CostKind, I); in getCastInstrCost()
852 return BaseT::getCastInstrCost(Opcode, Dst, Src, CCH, CostKind, I); in getCastInstrCost()
854 int ISD = TLI->InstructionOpcodeToISD(Opcode); in getCastInstrCost()
913 return BaseT::getCastInstrCost(Opcode, Dst, Src, CCH, CostKind, I); in getCastInstrCost()
954 RISCVTTIImpl::getArithmeticReductionCost(unsigned Opcode, VectorType *Ty, in getArithmeticReductionCost() argument
958 return BaseT::getArithmeticReductionCost(Opcode, Ty, FMF, CostKind); in getArithmeticReductionCost()
962 return BaseT::getArithmeticReductionCost(Opcode, Ty, FMF, CostKind); in getArithmeticReductionCost()
964 int ISD = TLI->InstructionOpcodeToISD(Opcode); in getArithmeticReductionCost()
969 return BaseT::getArithmeticReductionCost(Opcode, Ty, FMF, CostKind); in getArithmeticReductionCost()
989 unsigned Opcode, bool IsUnsigned, Type *ResTy, VectorType *ValTy, in getExtendedReductionCost() argument
992 return BaseT::getExtendedReductionCost(Opcode, IsUnsigned, ResTy, ValTy, in getExtendedReductionCost()
997 return BaseT::getExtendedReductionCost(Opcode, IsUnsigned, ResTy, ValTy, in getExtendedReductionCost()
1000 if (Opcode != Instruction::Add && Opcode != Instruction::FAdd) in getExtendedReductionCost()
1001 return BaseT::getExtendedReductionCost(Opcode, IsUnsigned, ResTy, ValTy, in getExtendedReductionCost()
1007 return BaseT::getExtendedReductionCost(Opcode, IsUnsigned, ResTy, ValTy, in getExtendedReductionCost()
1011 getArithmeticReductionCost(Opcode, ValTy, FMF, CostKind); in getExtendedReductionCost()
1034 InstructionCost RISCVTTIImpl::getMemoryOpCost(unsigned Opcode, Type *Src, in getMemoryOpCost() argument
1043 return BaseT::getMemoryOpCost(Opcode, Src, Alignment, AddressSpace, in getMemoryOpCost()
1047 if (Opcode == Instruction::Store && OpInfo.isConstant()) in getMemoryOpCost()
1050 BaseT::getMemoryOpCost(Opcode, Src, Alignment, AddressSpace, in getMemoryOpCost()
1062 InstructionCost RISCVTTIImpl::getCmpSelInstrCost(unsigned Opcode, Type *ValTy, in getCmpSelInstrCost() argument
1068 return BaseT::getCmpSelInstrCost(Opcode, ValTy, CondTy, VecPred, CostKind, in getCmpSelInstrCost()
1072 return BaseT::getCmpSelInstrCost(Opcode, ValTy, CondTy, VecPred, CostKind, in getCmpSelInstrCost()
1077 return BaseT::getCmpSelInstrCost(Opcode, ValTy, CondTy, VecPred, CostKind, in getCmpSelInstrCost()
1080 if (Opcode == Instruction::Select && ValTy->isVectorTy()) { in getCmpSelInstrCost()
1108 if ((Opcode == Instruction::ICmp || Opcode == Instruction::FCmp) && in getCmpSelInstrCost()
1123 return BaseT::getCmpSelInstrCost(Opcode, ValTy, CondTy, VecPred, CostKind, in getCmpSelInstrCost()
1142 return BaseT::getCmpSelInstrCost(Opcode, ValTy, CondTy, VecPred, CostKind, I); in getCmpSelInstrCost()
1145 InstructionCost RISCVTTIImpl::getCFInstrCost(unsigned Opcode, in getCFInstrCost() argument
1149 return Opcode == Instruction::PHI ? 0 : 1; in getCFInstrCost()
1154 InstructionCost RISCVTTIImpl::getVectorInstrCost(unsigned Opcode, Type *Val, in getVectorInstrCost() argument
1160 if (Opcode != Instruction::ExtractElement && in getVectorInstrCost()
1161 Opcode != Instruction::InsertElement) in getVectorInstrCost()
1162 return BaseT::getVectorInstrCost(Opcode, Val, CostKind, Index, Op0, Op1); in getVectorInstrCost()
1184 return Opcode == Instruction::ExtractElement in getVectorInstrCost()
1194 return BaseT::getVectorInstrCost(Opcode, Val, CostKind, Index, Op0, Op1); in getVectorInstrCost()
1201 if (Opcode == Instruction::ExtractElement) { in getVectorInstrCost()
1206 = getVectorInstrCost(Opcode, WideTy, CostKind, Index, nullptr, nullptr); in getVectorInstrCost()
1213 = getVectorInstrCost(Opcode, WideTy, CostKind, Index, nullptr, nullptr); in getVectorInstrCost()
1225 unsigned SlideCost = Opcode == Instruction::InsertElement ? 2 : 1; in getVectorInstrCost()
1238 else if (Opcode == Instruction::InsertElement) in getVectorInstrCost()
1263 BaseCost = Opcode == Instruction::InsertElement ? 3 : 4; in getVectorInstrCost()
1269 unsigned Opcode, Type *Ty, TTI::TargetCostKind CostKind, in getArithmeticInstrCost() argument
1275 return BaseT::getArithmeticInstrCost(Opcode, Ty, CostKind, Op1Info, Op2Info, in getArithmeticInstrCost()
1279 return BaseT::getArithmeticInstrCost(Opcode, Ty, CostKind, Op1Info, Op2Info, in getArithmeticInstrCost()
1284 return BaseT::getArithmeticInstrCost(Opcode, Ty, CostKind, Op1Info, Op2Info, in getArithmeticInstrCost()
1292 return BaseT::getArithmeticInstrCost(Opcode, Ty, CostKind, Op1Info, Op2Info, in getArithmeticInstrCost()
1298 if (OpInfo.isUniform() && TLI->canSplatOperand(Opcode, Operand)) in getArithmeticInstrCost()
1316 switch (TLI->InstructionOpcodeToISD(Opcode)) { in getArithmeticInstrCost()
1336 BaseT::getArithmeticInstrCost(Opcode, Ty, CostKind, Op1Info, Op2Info, in getArithmeticInstrCost()
1486 unsigned RISCVTTIImpl::getMaximumVF(unsigned ElemWidth, unsigned Opcode) const { in getMaximumVF()