First baby step towards ppc64 support. This adds a new -march=ppc64 backend
that is currently just like ppc32 :)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28813 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Target/PowerPC/PPCSubtarget.h b/lib/Target/PowerPC/PPCSubtarget.h
index 4f83874..c98291e 100644
--- a/lib/Target/PowerPC/PPCSubtarget.h
+++ b/lib/Target/PowerPC/PPCSubtarget.h
@@ -44,7 +44,7 @@
/// This constructor initializes the data members to match that
/// of the specified module.
///
- PPCSubtarget(const Module &M, const std::string &FS);
+ PPCSubtarget(const Module &M, const std::string &FS, bool is64Bit);
/// ParseSubtargetFeatures - Parses features string setting specified
/// subtarget options. Definition of function is auto generated by tblgen.
@@ -59,6 +59,10 @@
/// selection.
const InstrItineraryData getInstrItineraryData() const { return InstrItins; }
+ const char *getTargetDataString() const {
+ // FIXME: Make is64Bit be for the processor, not the target.
+ return true ? "E-p:32:32-d:32-l:32" : "E-p:64:64-d:32-l:32";
+ }
bool hasFSQRT() const { return HasFSQRT; }
bool hasSTFIWX() const { return HasSTFIWX; }