[llvm] r173729 - Add isBGQ method to PPCSubtarget

Hal Finkel hfinkel at anl.gov
Mon Jan 28 16:22:47 PST 2013


Author: hfinkel
Date: Mon Jan 28 18:22:47 2013
New Revision: 173729

URL: http://llvm.org/viewvc/llvm-project?rev=173729&view=rev
Log:
Add isBGQ method to PPCSubtarget

This function will be used in future commits.

Modified:
    llvm/trunk/lib/Target/PowerPC/PPCSubtarget.h

Modified: llvm/trunk/lib/Target/PowerPC/PPCSubtarget.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PowerPC/PPCSubtarget.h?rev=173729&r1=173728&r2=173729&view=diff
==============================================================================
--- llvm/trunk/lib/Target/PowerPC/PPCSubtarget.h (original)
+++ llvm/trunk/lib/Target/PowerPC/PPCSubtarget.h Mon Jan 28 18:22:47 2013
@@ -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(); }





More information about the llvm-commits mailing list