summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PPCSubtarget.h
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2015-11-20 22:38:20 +0000
committerEric Christopher <echristo@gmail.com>2015-11-20 22:38:20 +0000
commit25bf4a8617804da394edc8b245fc9e4bc1f05def (patch)
tree25d365f1223a963c48c24eb107127b9e151082ad /llvm/lib/Target/PowerPC/PPCSubtarget.h
parent8e85130bb976c28ee0672586c2decaf315e9d153 (diff)
downloadbcm5719-llvm-25bf4a8617804da394edc8b245fc9e4bc1f05def.tar.gz
bcm5719-llvm-25bf4a8617804da394edc8b245fc9e4bc1f05def.zip
Power8 and later support fusing addis/addi and addis/ld instruction
pairs that use the same register to execute as a single instruction. No Functional Change Patch by Kyle Butt! llvm-svn: 253724
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCSubtarget.h')
-rw-r--r--llvm/lib/Target/PowerPC/PPCSubtarget.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCSubtarget.h b/llvm/lib/Target/PowerPC/PPCSubtarget.h
index b21931b1b2d..105ceae4e36 100644
--- a/llvm/lib/Target/PowerPC/PPCSubtarget.h
+++ b/llvm/lib/Target/PowerPC/PPCSubtarget.h
@@ -119,6 +119,7 @@ protected:
bool HasPartwordAtomics;
bool HasDirectMove;
bool HasHTM;
+ bool HasFusion;
/// When targeting QPX running a stock PPC64 Linux kernel where the stack
/// alignment has not been changed, we need to keep the 16-byte alignment
@@ -254,6 +255,7 @@ public:
return 16;
}
bool hasHTM() const { return HasHTM; }
+ bool hasFusion() const { return HasFusion; }
const Triple &getTargetTriple() const { return TargetTriple; }
OpenPOWER on IntegriCloud