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()
629 InstructionCost PPCTTIImpl::getCFInstrCost(unsigned Opcode, in getCFInstrCost() argument
633 return Opcode == Instruction::PHI ? 0 : 1; in getCFInstrCost()
638 InstructionCost PPCTTIImpl::getCastInstrCost(unsigned Opcode, Type *Dst, in getCastInstrCost() argument
643 assert(TLI->InstructionOpcodeToISD(Opcode) && "Invalid opcode"); in getCastInstrCost()
645 InstructionCost CostFactor = vectorCostAdjustmentFactor(Opcode, Dst, Src); in getCastInstrCost()
650 BaseT::getCastInstrCost(Opcode, Dst, Src, CCH, CostKind, I); in getCastInstrCost()
658 InstructionCost PPCTTIImpl::getCmpSelInstrCost(unsigned Opcode, Type *ValTy, in getCmpSelInstrCost() argument
664 vectorCostAdjustmentFactor(Opcode, ValTy, nullptr); in getCmpSelInstrCost()
669 BaseT::getCmpSelInstrCost(Opcode, ValTy, CondTy, VecPred, CostKind, I); in getCmpSelInstrCost()
676 InstructionCost PPCTTIImpl::getVectorInstrCost(unsigned Opcode, Type *Val, in getVectorInstrCost() argument
682 int ISD = TLI->InstructionOpcodeToISD(Opcode); in getVectorInstrCost()
685 InstructionCost CostFactor = vectorCostAdjustmentFactor(Opcode, Val, nullptr); in getVectorInstrCost()
690 BaseT::getVectorInstrCost(Opcode, Val, CostKind, Index, Op0, Op1); in getVectorInstrCost()
766 InstructionCost PPCTTIImpl::getMemoryOpCost(unsigned Opcode, Type *Src, in getMemoryOpCost() argument
773 InstructionCost CostFactor = vectorCostAdjustmentFactor(Opcode, Src, nullptr); in getMemoryOpCost()
778 return BaseT::getMemoryOpCost(Opcode, Src, Alignment, AddressSpace, in getMemoryOpCost()
782 assert((Opcode == Instruction::Load || Opcode == Instruction::Store) && in getMemoryOpCost()
786 BaseT::getMemoryOpCost(Opcode, Src, Alignment, AddressSpace, CostKind); in getMemoryOpCost()
821 if (Opcode == Instruction::Load && (!ST->hasP8Vector() && IsAltivecType) && in getMemoryOpCost()
846 if (Src->isVectorTy() && Opcode == Instruction::Store) in getMemoryOpCost()
856 unsigned Opcode, Type *VecTy, unsigned Factor, ArrayRef<unsigned> Indices, in getInterleavedMemoryOpCost() argument
860 vectorCostAdjustmentFactor(Opcode, VecTy, nullptr); in getInterleavedMemoryOpCost()
865 return BaseT::getInterleavedMemoryOpCost(Opcode, VecTy, Factor, Indices, in getInterleavedMemoryOpCost()
876 InstructionCost Cost = getMemoryOpCost(Opcode, VecTy, MaybeAlign(Alignment), in getInterleavedMemoryOpCost()
1015 bool PPCTTIImpl::hasActiveVectorLength(unsigned Opcode, Type *DataType, in hasActiveVectorLength() argument
1018 if (Opcode != Instruction::Load && Opcode != Instruction::Store) in hasActiveVectorLength()
1043 InstructionCost PPCTTIImpl::getVPMemoryOpCost(unsigned Opcode, Type *Src, in getVPMemoryOpCost() argument
1048 InstructionCost Cost = BaseT::getVPMemoryOpCost(Opcode, Src, Alignment, in getVPMemoryOpCost()
1056 assert((Opcode == Instruction::Load || Opcode == Instruction::Store) && in getVPMemoryOpCost()
1062 if (hasActiveVectorLength(Opcode, Src, Alignment)) { in getVPMemoryOpCost()
1066 vectorCostAdjustmentFactor(Opcode, Src, nullptr); in getVPMemoryOpCost()
1094 return getMaskedMemoryOpCost(Opcode, Src, Alignment, AddressSpace, CostKind); in getVPMemoryOpCost()