aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/PowerPC/PPCSubtarget.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-08-05 22:05:03 +0000
committerChris Lattner <sabre@nondot.org>2005-08-05 22:05:03 +0000
commit3c304a3ba18a040d3c3dbd15ab69da5543cdbd54 (patch)
treeaca20e2ff4d3219b44cf073bce8b032293453a46 /lib/Target/PowerPC/PPCSubtarget.h
parent8c4a8735ecf12bc2447129810ec1d6079fc767f2 (diff)
downloadexternal_llvm-3c304a3ba18a040d3c3dbd15ab69da5543cdbd54.zip
external_llvm-3c304a3ba18a040d3c3dbd15ab69da5543cdbd54.tar.gz
external_llvm-3c304a3ba18a040d3c3dbd15ab69da5543cdbd54.tar.bz2
Consolidate the GPOpt stuff to all use the Subtarget, instead of still
depending on the command line option. Now the command line option just sets the subtarget as appropriate. G5 opts will now default to on on G5-enabled nightly testers among other machines. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22688 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPCSubtarget.h')
-rw-r--r--lib/Target/PowerPC/PPCSubtarget.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/lib/Target/PowerPC/PPCSubtarget.h b/lib/Target/PowerPC/PPCSubtarget.h
index c114351..60308f0 100644
--- a/lib/Target/PowerPC/PPCSubtarget.h
+++ b/lib/Target/PowerPC/PPCSubtarget.h
@@ -23,12 +23,12 @@ class PPCSubtarget : public TargetSubtarget {
protected:
/// stackAlignment - The minimum alignment known to hold of the stack frame on
/// entry to the function and which must be maintained by every function.
- unsigned stackAlignment;
+ unsigned StackAlignment;
/// Used by the ISel to turn in optimizations for POWER4-derived architectures
- bool isGigaProcessor;
- bool isAIX;
- bool isDarwin;
+ bool IsGigaProcessor;
+ bool IsAIX;
+ bool IsDarwin;
public:
/// This constructor initializes the data members to match that
/// of the specified module.
@@ -38,10 +38,12 @@ public:
/// getStackAlignment - Returns the minimum alignment known to hold of the
/// stack frame on entry to the function and which must be maintained by every
/// function for this subtarget.
- unsigned getStackAlignment() const { return stackAlignment; }
+ unsigned getStackAlignment() const { return StackAlignment; }
- bool IsAIX() const { return isAIX; }
- bool IsDarwin() const { return isDarwin; }
+ bool isAIX() const { return IsAIX; }
+ bool isDarwin() const { return IsDarwin; }
+
+ bool isGigaProcessor() const { return IsGigaProcessor; }
};
} // End llvm namespace