projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5548cb5
)
Add isBGQ method to PPCSubtarget
author
Hal Finkel
<hfinkel@anl.gov>
Tue, 29 Jan 2013 00:22:47 +0000
(
00:22
+0000)
committer
Hal Finkel
<hfinkel@anl.gov>
Tue, 29 Jan 2013 00:22:47 +0000
(
00:22
+0000)
This function will be used in future commits.
llvm-svn: 173729
llvm/lib/Target/PowerPC/PPCSubtarget.h
patch
|
blob
|
history
diff --git
a/llvm/lib/Target/PowerPC/PPCSubtarget.h
b/llvm/lib/Target/PowerPC/PPCSubtarget.h
index
416c0f3
..
3ddae63
100644
(file)
--- 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(); }