summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PPCSubtarget.h
diff options
context:
space:
mode:
authorHal Finkel <hfinkel@anl.gov>2013-09-12 14:40:06 +0000
committerHal Finkel <hfinkel@anl.gov>2013-09-12 14:40:06 +0000
commit0096dbd50df50a08d729e1219f78d43f3e1583b3 (patch)
treef368003d7f5d2335515629e81c0f1cbde4ecdec8 /llvm/lib/Target/PowerPC/PPCSubtarget.h
parent904d8806ce51d6d3493082ea5eb9d411a2a9c2fb (diff)
downloadbcm5719-llvm-0096dbd50df50a08d729e1219f78d43f3e1583b3.tar.gz
bcm5719-llvm-0096dbd50df50a08d729e1219f78d43f3e1583b3.zip
Mark PPC MFTB and DST (and friends) as deprecated
Use the new instruction deprecation feature to mark mftb (now replaced with mfspr) and dst (along with the other Altivec cache control instructions) as deprecated when targeting cores supporting at least ISA v2.03. llvm-svn: 190605
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCSubtarget.h')
-rw-r--r--llvm/lib/Target/PowerPC/PPCSubtarget.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCSubtarget.h b/llvm/lib/Target/PowerPC/PPCSubtarget.h
index 179ceb5e36c..a9fa98fa3e8 100644
--- a/llvm/lib/Target/PowerPC/PPCSubtarget.h
+++ b/llvm/lib/Target/PowerPC/PPCSubtarget.h
@@ -88,6 +88,8 @@ protected:
bool HasPOPCNTD;
bool HasLDBRX;
bool IsBookE;
+ bool DeprecatedMFTB;
+ bool DeprecatedDST;
bool HasLazyResolverStubs;
bool IsJITCodeModel;
bool IsLittleEndian;
@@ -190,6 +192,8 @@ public:
bool hasPOPCNTD() const { return HasPOPCNTD; }
bool hasLDBRX() const { return HasLDBRX; }
bool isBookE() const { return IsBookE; }
+ bool isDeprecatedMFTB() const { return DeprecatedMFTB; }
+ bool isDeprecatedDST() const { return DeprecatedDST; }
const Triple &getTargetTriple() const { return TargetTriple; }
OpenPOWER on IntegriCloud