summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PPCSubtarget.h
diff options
context:
space:
mode:
authorHal Finkel <hfinkel@anl.gov>2013-01-29 00:22:47 +0000
committerHal Finkel <hfinkel@anl.gov>2013-01-29 00:22:47 +0000
commit7f9e8d3eaaffeb711a5e9e4844622842525b8eb2 (patch)
treeab196b9b7e1c9da80000c6dcc6a0b498ade1c996 /llvm/lib/Target/PowerPC/PPCSubtarget.h
parent5548cb50b20c97f8615f48785cb0951b430136a0 (diff)
downloadbcm5719-llvm-7f9e8d3eaaffeb711a5e9e4844622842525b8eb2.tar.gz
bcm5719-llvm-7f9e8d3eaaffeb711a5e9e4844622842525b8eb2.zip
Add isBGQ method to PPCSubtarget
This function will be used in future commits. llvm-svn: 173729
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 416c0f3c346..3ddae6371a1 100644
--- a/llvm/lib/Target/PowerPC/PPCSubtarget.h
+++ b/llvm/lib/Target/PowerPC/PPCSubtarget.h
@@ -160,6 +160,8 @@ public:
bool isDarwin() const { return TargetTriple.isMacOSX(); }
/// isBGP - True if this is a BG/P platform.
bool isBGP() const { return TargetTriple.getVendor() == Triple::BGP; }
+ /// isBGQ - True if this is a BG/Q platform.
+ bool isBGQ() const { return TargetTriple.getVendor() == Triple::BGQ; }
bool isDarwinABI() const { return isDarwin(); }
bool isSVR4ABI() const { return !isDarwin(); }
OpenPOWER on IntegriCloud