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 | d1b8ef97c47d347f2a2261a0d6de4872f248321f (patch) | |
tree | 2d50accb52c1165093aa4780d27d8ec2240c3ba1 /lib/Analysis/TargetTransformInfo.cpp | |
parent | be04929f7fd76a921540e9901f24563e51dc1219 (diff) |
Make the popcnt support enums and methods have more clear names and
follow the conding conventions regarding enumerating a set of "kinds" of
things.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171687 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/TargetTransformInfo.cpp')
-rw-r--r-- | lib/Analysis/TargetTransformInfo.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/Analysis/TargetTransformInfo.cpp b/lib/Analysis/TargetTransformInfo.cpp index e156277a27..029937397e 100644 --- a/lib/Analysis/TargetTransformInfo.cpp +++ b/lib/Analysis/TargetTransformInfo.cpp @@ -79,9 +79,9 @@ bool TargetTransformInfo::shouldBuildLookupTables() const { return PrevTTI->shouldBuildLookupTables(); } -TargetTransformInfo::PopcntHwSupport -TargetTransformInfo::getPopcntHwSupport(unsigned IntTyWidthInBit) const { - return PrevTTI->getPopcntHwSupport(IntTyWidthInBit); +TargetTransformInfo::PopcntSupportKind +TargetTransformInfo::getPopcntSupport(unsigned IntTyWidthInBit) const { + return PrevTTI->getPopcntSupport(IntTyWidthInBit); } unsigned TargetTransformInfo::getIntImmCost(const APInt &Imm, Type *Ty) const { @@ -202,8 +202,8 @@ struct NoTTI : ImmutablePass, TargetTransformInfo { return true; } - PopcntHwSupport getPopcntHwSupport(unsigned IntTyWidthInBit) const { - return None; + PopcntSupportKind getPopcntSupport(unsigned IntTyWidthInBit) const { + return PSK_Software; } unsigned getIntImmCost(const APInt &Imm, Type *Ty) const { |