summaryrefslogtreecommitdiffstats
path: root/llvm/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
commita0014a5a26fe4278c0a209413f6f9fd24003034c (patch)
treee20752fd7164713fd05ee2c3179def1268e08cd6 /llvm/lib/Target/PowerPC/PPCSubtarget.h
parent02559ebbd332aa09984da0ff617573bd489ff1c0 (diff)
downloadbcm5719-llvm-a0014a5a26fe4278c0a209413f6f9fd24003034c.tar.gz
bcm5719-llvm-a0014a5a26fe4278c0a209413f6f9fd24003034c.zip
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). llvm-svn: 186357
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCSubtarget.h')
-rw-r--r--llvm/lib/Target/PowerPC/PPCSubtarget.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCSubtarget.h b/llvm/lib/Target/PowerPC/PPCSubtarget.h
index 097f2bc75ce..50af75d13f4 100644
--- a/llvm/lib/Target/PowerPC/PPCSubtarget.h
+++ b/llvm/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; }
OpenPOWER on IntegriCloud