diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2013-01-07 03:16:03 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2013-01-07 03:16:03 +0000 |
commit | 50a36cd148f920699e47be35f057a0e0d862b611 (patch) | |
tree | 7c503e0b69ff29114a6ddadee492b55dfe15e5a8 /llvm/lib/Target/X86/X86TargetTransformInfo.cpp | |
parent | d3e73556d6139bf46f897b6d62b3d4d9d3323ad4 (diff) | |
download | bcm5719-llvm-50a36cd148f920699e47be35f057a0e0d862b611.tar.gz bcm5719-llvm-50a36cd148f920699e47be35f057a0e0d862b611.zip |
Make the popcnt support enums and methods have more clear names and
follow the conding conventions regarding enumerating a set of "kinds" of
things.
llvm-svn: 171687
Diffstat (limited to 'llvm/lib/Target/X86/X86TargetTransformInfo.cpp')
-rw-r--r-- | llvm/lib/Target/X86/X86TargetTransformInfo.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Target/X86/X86TargetTransformInfo.cpp b/llvm/lib/Target/X86/X86TargetTransformInfo.cpp index c98681b6290..8a699afa6a4 100644 --- a/llvm/lib/Target/X86/X86TargetTransformInfo.cpp +++ b/llvm/lib/Target/X86/X86TargetTransformInfo.cpp @@ -76,7 +76,7 @@ public: /// \name Scalar TTI Implementations /// @{ - virtual PopcntHwSupport getPopcntHwSupport(unsigned TyWidth) const; + virtual PopcntSupportKind getPopcntSupport(unsigned TyWidth) const; /// @} @@ -157,12 +157,12 @@ FindInConvertTable(const X86TypeConversionCostTblEntry *Tbl, unsigned len, } -X86TTI::PopcntHwSupport X86TTI::getPopcntHwSupport(unsigned TyWidth) const { +X86TTI::PopcntSupportKind X86TTI::getPopcntSupport(unsigned TyWidth) const { assert(isPowerOf2_32(TyWidth) && "Ty width must be power of 2"); // TODO: Currently the __builtin_popcount() implementation using SSE3 // instructions is inefficient. Once the problem is fixed, we should // call ST->hasSSE3() instead of ST->hasSSE4(). - return ST->hasSSE41() ? Fast : None; + return ST->hasSSE41() ? PSK_FastHardware : PSK_Software; } unsigned X86TTI::getNumberOfRegisters(bool Vector) const { |