[PowerPC] Refactor popcnt[dw] target features
authorHal Finkel <hfinkel@anl.gov>
Tue, 29 Mar 2016 01:36:01 +0000 (01:36 +0000)
committerHal Finkel <hfinkel@anl.gov>
Tue, 29 Mar 2016 01:36:01 +0000 (01:36 +0000)
commitfa7057a415d5de8bec0063b2e9c96836c08468ab
treef4059fd8b058380a901d047a9d53260025550240
parent5e241b11ed541145bb13759793d85485bdd73808
[PowerPC] Refactor popcnt[dw] target features

Instead of using two feature bits, one to indicate the availability of the
popcnt[dw] instructions, and another to indicate whether or not they're fast,
use a single enum. This allows more consistent control via target attribute
strings, and via Clang's command line.

llvm-svn: 264690
llvm/lib/Target/PowerPC/PPC.td
llvm/lib/Target/PowerPC/PPCISelLowering.cpp
llvm/lib/Target/PowerPC/PPCSubtarget.cpp
llvm/lib/Target/PowerPC/PPCSubtarget.h
llvm/lib/Target/PowerPC/PPCTargetTransformInfo.cpp
llvm/test/CodeGen/PowerPC/popcnt.ll