Changeset View
Changeset View
Standalone View
Standalone View
llvm/include/llvm/CodeGen/BasicTTIImpl.h
Show First 20 Lines • Show All 513 Lines • ▼ Show 20 Lines | int getInstructionLatency(const Instruction *I) { | ||||
return BaseT::getInstructionLatency(I); | return BaseT::getInstructionLatency(I); | ||||
} | } | ||||
/// @} | /// @} | ||||
/// \name Vector TTI Implementations | /// \name Vector TTI Implementations | ||||
/// @{ | /// @{ | ||||
unsigned getNumberOfRegisters(bool Vector) { return Vector ? 0 : 1; } | |||||
unsigned getRegisterBitWidth(bool Vector) const { return 32; } | unsigned getRegisterBitWidth(bool Vector) const { return 32; } | ||||
/// Estimate the overhead of scalarizing an instruction. Insert and Extract | /// Estimate the overhead of scalarizing an instruction. Insert and Extract | ||||
/// are set if the result needs to be inserted and/or extracted from vectors. | /// are set if the result needs to be inserted and/or extracted from vectors. | ||||
unsigned getScalarizationOverhead(Type *Ty, bool Insert, bool Extract) { | unsigned getScalarizationOverhead(Type *Ty, bool Insert, bool Extract) { | ||||
assert(Ty->isVectorTy() && "Can only scalarize vectors"); | assert(Ty->isVectorTy() && "Can only scalarize vectors"); | ||||
unsigned Cost = 0; | unsigned Cost = 0; | ||||
▲ Show 20 Lines • Show All 1,183 Lines • Show Last 20 Lines |