diff options
author | Nemanja Ivanovic <nemanja.i.ibm@gmail.com> | 2015-04-11 10:40:42 +0000 |
---|---|---|
committer | Nemanja Ivanovic <nemanja.i.ibm@gmail.com> | 2015-04-11 10:40:42 +0000 |
commit | c38b5311cbfa97b92ec9bd0936e99b85af46b95f (patch) | |
tree | 030b1d87db024d4b2665002cb46861a9510a50af /llvm/lib/Target/PowerPC/PPCSubtarget.h | |
parent | 87638f6345a931dd0a9d8c5fb35089593b1cc4f9 (diff) | |
download | bcm5719-llvm-c38b5311cbfa97b92ec9bd0936e99b85af46b95f.tar.gz bcm5719-llvm-c38b5311cbfa97b92ec9bd0936e99b85af46b95f.zip |
Add direct moves to/from VSR and exploit them for FP/INT conversions
This patch corresponds to review:
http://reviews.llvm.org/D8928
It adds direct move instructions to/from VSX registers to GPR's. These are
exploited for FP <-> INT conversions.
llvm-svn: 234682
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCSubtarget.h')
-rw-r--r-- | llvm/lib/Target/PowerPC/PPCSubtarget.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCSubtarget.h b/llvm/lib/Target/PowerPC/PPCSubtarget.h index 6941be6cf97..8d955088634 100644 --- a/llvm/lib/Target/PowerPC/PPCSubtarget.h +++ b/llvm/lib/Target/PowerPC/PPCSubtarget.h @@ -117,6 +117,7 @@ protected: bool HasICBT; bool HasInvariantFunctionDescriptors; bool HasPartwordAtomics; + bool HasDirectMove; bool HasHTM; /// When targeting QPX running a stock PPC64 Linux kernel where the stack @@ -243,6 +244,7 @@ public: return HasInvariantFunctionDescriptors; } bool hasPartwordAtomics() const { return HasPartwordAtomics; } + bool hasDirectMove() const { return HasDirectMove; } bool isQPXStackUnaligned() const { return IsQPXStackUnaligned; } unsigned getPlatformStackAlignment() const { |