summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/SystemZ/SystemZTargetTransformInfo.h
diff options
context:
space:
mode:
authorUlrich Weigand <ulrich.weigand@de.ibm.com>2015-03-31 12:56:33 +0000
committerUlrich Weigand <ulrich.weigand@de.ibm.com>2015-03-31 12:56:33 +0000
commitb401218ca2bda7d5ca7233b7d216a8f1860cc4b7 (patch)
treece2e6c4b2645ffbe7517cba86a4afbe664cf1c7a /llvm/lib/Target/SystemZ/SystemZTargetTransformInfo.h
parent1f6666a49c9a8cc773e81545d8cd70b047b73672 (diff)
downloadbcm5719-llvm-b401218ca2bda7d5ca7233b7d216a8f1860cc4b7.tar.gz
bcm5719-llvm-b401218ca2bda7d5ca7233b7d216a8f1860cc4b7.zip
[SystemZ] Use POPCNT instruction on z196
We already exploit a number of instructions specific to z196, but not yet POPCNT. Add support for the population-count facility, MC support for the POPCNT instruction, CodeGen support for using POPCNT, and implement the getPopcntSupport TargetTransformInfo hook. llvm-svn: 233689
Diffstat (limited to 'llvm/lib/Target/SystemZ/SystemZTargetTransformInfo.h')
-rw-r--r--llvm/lib/Target/SystemZ/SystemZTargetTransformInfo.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/SystemZ/SystemZTargetTransformInfo.h b/llvm/lib/Target/SystemZ/SystemZTargetTransformInfo.h
index d96515adce4..d4989130679 100644
--- a/llvm/lib/Target/SystemZ/SystemZTargetTransformInfo.h
+++ b/llvm/lib/Target/SystemZ/SystemZTargetTransformInfo.h
@@ -60,6 +60,8 @@ public:
unsigned getIntImmCost(Intrinsic::ID IID, unsigned Idx, const APInt &Imm,
Type *Ty);
+ TTI::PopcntSupportKind getPopcntSupport(unsigned TyWidth);
+
/// @}
};
OpenPOWER on IntegriCloud