Lines Matching refs:Ty

33   unsigned getScalarizationOverhead(Type *Ty, bool Insert, bool Extract) const;
75 virtual bool isLegalAddressingMode(Type *Ty, GlobalValue *BaseGV,
78 virtual int getScalingFactorCost(Type *Ty, GlobalValue *BaseGV,
82 virtual bool isTypeLegal(Type *Ty) const;
95 virtual unsigned getArithmeticInstrCost(unsigned Opcode, Type *Ty,
113 virtual unsigned getAddressComputationCost(Type *Ty, bool IsComplex) const;
139 bool BasicTTI::isLegalAddressingMode(Type *Ty, GlobalValue *BaseGV,
147 return getTLI()->isLegalAddressingMode(AM, Ty);
150 int BasicTTI::getScalingFactorCost(Type *Ty, GlobalValue *BaseGV,
158 return getTLI()->getScalingFactorCost(AM, Ty);
165 bool BasicTTI::isTypeLegal(Type *Ty) const {
166 EVT T = getTLI()->getValueType(Ty);
191 unsigned BasicTTI::getScalarizationOverhead(Type *Ty, bool Insert,
193 assert (Ty->isVectorTy() && "Can only scalarize vectors");
196 for (int i = 0, e = Ty->getVectorNumElements(); i < e; ++i) {
198 Cost += TopTTI->getVectorInstrCost(Instruction::InsertElement, Ty, i);
200 Cost += TopTTI->getVectorInstrCost(Instruction::ExtractElement, Ty, i);
218 unsigned BasicTTI::getArithmeticInstrCost(unsigned Opcode, Type *Ty,
226 std::pair<unsigned, MVT> LT = TLI->getTypeLegalizationCost(Ty);
228 bool IsFloat = Ty->getScalarType()->isFloatingPointTy();
250 if (Ty->isVectorTy()) {
251 unsigned Num = Ty->getVectorNumElements();
252 unsigned Cost = TopTTI->getArithmeticInstrCost(Opcode, Ty->getScalarType());
255 return getScalarizationOverhead(Ty, true, true) + Num * Cost;
498 unsigned BasicTTI::getAddressComputationCost(Type *Ty, bool IsComplex) const {