From c53ab4d77f4b3d2905cf9ad625c28ff6b1c04aff Mon Sep 17 00:00:00 2001 From: Hal Finkel Date: Thu, 28 Mar 2013 13:29:47 +0000 Subject: Add the PPC64 popcntd instruction PPC ISA 2.06 (P7, A2, etc.) has a popcntd instruction. Add this instruction and tell TTI about it so that popcount-loop recognition will know about it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178233 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/PowerPC/PPCSubtarget.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/Target/PowerPC/PPCSubtarget.h') diff --git a/lib/Target/PowerPC/PPCSubtarget.h b/lib/Target/PowerPC/PPCSubtarget.h index 15885bd..070a9a9 100644 --- a/lib/Target/PowerPC/PPCSubtarget.h +++ b/lib/Target/PowerPC/PPCSubtarget.h @@ -79,6 +79,7 @@ protected: bool HasFSQRT; bool HasSTFIWX; bool HasISEL; + bool HasPOPCNTD; bool IsBookE; bool HasLazyResolverStubs; bool IsJITCodeModel; @@ -159,6 +160,7 @@ public: bool hasQPX() const { return HasQPX; } bool hasMFOCRF() const { return HasMFOCRF; } bool hasISEL() const { return HasISEL; } + bool hasPOPCNTD() const { return HasPOPCNTD; } bool isBookE() const { return IsBookE; } const Triple &getTargetTriple() const { return TargetTriple; } -- cgit v1.1