summaryrefslogtreecommitdiff
path: root/lib/Target/PowerPC/PPCSubtarget.h
diff options
context:
space:
mode:
authorHal Finkel <hfinkel@anl.gov>2013-07-15 22:29:40 +0000
committerHal Finkel <hfinkel@anl.gov>2013-07-15 22:29:40 +0000
commita44c37f880c8ca84b7388dd52fb2708495697a18 (patch)
treeb33c7d6884ab280afddab5e80ef1a1eca6371f8d /lib/Target/PowerPC/PPCSubtarget.h
parent0b485908ed5bb9e788618773276b43be2e5a37df (diff)
downloadllvm-a44c37f880c8ca84b7388dd52fb2708495697a18.tar.gz
llvm-a44c37f880c8ca84b7388dd52fb2708495697a18.tar.bz2
llvm-a44c37f880c8ca84b7388dd52fb2708495697a18.tar.xz
PPC: Refactoring to support subtarget feature changing
This change mirrors the changes that were made to the X86 and ARM targets to support subtarget feature changing. As indicated in r182899, the mechanism is still undergoing revision, and so as with the X86 and ARM targets, there is no test case yet (there is no effective functionality change). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186357 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPCSubtarget.h')
-rw-r--r--lib/Target/PowerPC/PPCSubtarget.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/Target/PowerPC/PPCSubtarget.h b/lib/Target/PowerPC/PPCSubtarget.h
index 097f2bc75c..50af75d13f 100644
--- a/lib/Target/PowerPC/PPCSubtarget.h
+++ b/lib/Target/PowerPC/PPCSubtarget.h
@@ -137,6 +137,13 @@ public:
: "E-p:32:32-f64:64:64-i64:64:64-f128:64:128-n32";
}
+ /// \brief Reset the features for the PowerPC target.
+ virtual void resetSubtargetFeatures(const MachineFunction *MF);
+private:
+ void initializeEnvironment();
+ void resetSubtargetFeatures(StringRef CPU, StringRef FS);
+
+public:
/// isPPC64 - Return true if we are generating code for 64-bit pointer mode.
///
bool isPPC64() const { return IsPPC64; }