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()
553 InstructionCost PPCTTIImpl::vectorCostAdjustmentFactor(unsigned Opcode, in vectorCostAdjustmentFactor() argument
571 int ISD = TLI->InstructionOpcodeToISD(Opcode); in vectorCostAdjustmentFactor()
585 unsigned Opcode, Type *Ty, TTI::TargetCostKind CostKind, in getArithmeticInstrCost() argument
589 assert(TLI->InstructionOpcodeToISD(Opcode) && "Invalid opcode"); in getArithmeticInstrCost()
591 InstructionCost CostFactor = vectorCostAdjustmentFactor(Opcode, Ty, nullptr); in getArithmeticInstrCost()
597 return BaseT::getArithmeticInstrCost(Opcode, Ty, CostKind, Op1Info, in getArithmeticInstrCost()
602 Opcode, Ty, CostKind, Op1Info, Op2Info); in getArithmeticInstrCost()
628 InstructionCost PPCTTIImpl::getCFInstrCost(unsigned Opcode, in getCFInstrCost() argument
632 return Opcode == Instruction::PHI ? 0 : 1; in getCFInstrCost()
637 InstructionCost PPCTTIImpl::getCastInstrCost(unsigned Opcode, Type *Dst, in getCastInstrCost() argument
642 assert(TLI->InstructionOpcodeToISD(Opcode) && "Invalid opcode"); in getCastInstrCost()
644 InstructionCost CostFactor = vectorCostAdjustmentFactor(Opcode, Dst, Src); in getCastInstrCost()
649 BaseT::getCastInstrCost(Opcode, Dst, Src, CCH, CostKind, I); in getCastInstrCost()
657 InstructionCost PPCTTIImpl::getCmpSelInstrCost(unsigned Opcode, Type *ValTy, in getCmpSelInstrCost() argument
663 vectorCostAdjustmentFactor(Opcode, ValTy, nullptr); in getCmpSelInstrCost()
668 BaseT::getCmpSelInstrCost(Opcode, ValTy, CondTy, VecPred, CostKind, I); in getCmpSelInstrCost()
675 InstructionCost PPCTTIImpl::getVectorInstrCost(unsigned Opcode, Type *Val, in getVectorInstrCost() argument
681 int ISD = TLI->InstructionOpcodeToISD(Opcode); in getVectorInstrCost()
684 InstructionCost CostFactor = vectorCostAdjustmentFactor(Opcode, Val, nullptr); in getVectorInstrCost()
689 BaseT::getVectorInstrCost(Opcode, Val, CostKind, Index, Op0, Op1); in getVectorInstrCost()
755 InstructionCost PPCTTIImpl::getMemoryOpCost(unsigned Opcode, Type *Src, in getMemoryOpCost() argument
762 InstructionCost CostFactor = vectorCostAdjustmentFactor(Opcode, Src, nullptr); in getMemoryOpCost()
767 return BaseT::getMemoryOpCost(Opcode, Src, Alignment, AddressSpace, in getMemoryOpCost()
771 assert((Opcode == Instruction::Load || Opcode == Instruction::Store) && in getMemoryOpCost()
775 BaseT::getMemoryOpCost(Opcode, Src, Alignment, AddressSpace, CostKind); in getMemoryOpCost()
810 if (Opcode == Instruction::Load && (!ST->hasP8Vector() && IsAltivecType) && in getMemoryOpCost()
835 if (Src->isVectorTy() && Opcode == Instruction::Store) in getMemoryOpCost()
845 unsigned Opcode, Type *VecTy, unsigned Factor, ArrayRef<unsigned> Indices, in getInterleavedMemoryOpCost() argument
849 vectorCostAdjustmentFactor(Opcode, VecTy, nullptr); in getInterleavedMemoryOpCost()
854 return BaseT::getInterleavedMemoryOpCost(Opcode, VecTy, Factor, Indices, in getInterleavedMemoryOpCost()
865 InstructionCost Cost = getMemoryOpCost(Opcode, VecTy, MaybeAlign(Alignment), in getInterleavedMemoryOpCost()
1004 bool PPCTTIImpl::hasActiveVectorLength(unsigned Opcode, Type *DataType, in hasActiveVectorLength() argument
1007 if (Opcode != Instruction::Load && Opcode != Instruction::Store) in hasActiveVectorLength()
1032 InstructionCost PPCTTIImpl::getVPMemoryOpCost(unsigned Opcode, Type *Src, in getVPMemoryOpCost() argument
1037 InstructionCost Cost = BaseT::getVPMemoryOpCost(Opcode, Src, Alignment, in getVPMemoryOpCost()
1045 assert((Opcode == Instruction::Load || Opcode == Instruction::Store) && in getVPMemoryOpCost()
1051 if (hasActiveVectorLength(Opcode, Src, Alignment)) { in getVPMemoryOpCost()
1055 vectorCostAdjustmentFactor(Opcode, Src, nullptr); in getVPMemoryOpCost()
1083 return getMaskedMemoryOpCost(Opcode, Src, Alignment, AddressSpace, CostKind); in getVPMemoryOpCost()