Changeset View
Changeset View
Standalone View
Standalone View
llvm/lib/Target/ARM/ARMTargetTransformInfo.h
Show First 20 Lines • Show All 116 Lines • ▼ Show 20 Lines | public: | ||||
int getIntImmCost(unsigned Opcode, unsigned Idx, const APInt &Imm, Type *Ty); | int getIntImmCost(unsigned Opcode, unsigned Idx, const APInt &Imm, Type *Ty); | ||||
/// @} | /// @} | ||||
/// \name Vector TTI Implementations | /// \name Vector TTI Implementations | ||||
/// @{ | /// @{ | ||||
unsigned getNumberOfRegisters(bool Vector) { | unsigned getNumberOfRegisters(unsigned ClassID) const { | ||||
bool Vector = (ClassID == 1); | |||||
if (Vector) { | if (Vector) { | ||||
if (ST->hasNEON()) | if (ST->hasNEON()) | ||||
return 16; | return 16; | ||||
if (ST->hasMVEIntegerOps()) | if (ST->hasMVEIntegerOps()) | ||||
return 8; | return 8; | ||||
return 0; | return 0; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 84 Lines • Show Last 20 Lines |