From d1b8ef97c47d347f2a2261a0d6de4872f248321f Mon Sep 17 00:00:00 2001 From: Chandler Carruth Date: Mon, 7 Jan 2013 03:16:03 +0000 Subject: 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 --- lib/Analysis/TargetTransformInfo.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lib/Analysis') diff --git a/lib/Analysis/TargetTransformInfo.cpp b/lib/Analysis/TargetTransformInfo.cpp index e156277..0299373 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 { -- cgit v1.1