summaryrefslogtreecommitdiff
path: root/lib/Target/PowerPC/PPCSubtarget.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-06-16 01:37:27 +0000
committerChris Lattner <sabre@nondot.org>2006-06-16 01:37:27 +0000
commit94de9a8951339536af1cc0ca947bc1005eb8f5f3 (patch)
tree0d4b5940346c745c5961385309bb2f9a6b589f30 /lib/Target/PowerPC/PPCSubtarget.h
parent1127315562b221010040925980040fd4f65bdb1c (diff)
downloadllvm-94de9a8951339536af1cc0ca947bc1005eb8f5f3.tar.gz
llvm-94de9a8951339536af1cc0ca947bc1005eb8f5f3.tar.bz2
llvm-94de9a8951339536af1cc0ca947bc1005eb8f5f3.tar.xz
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
Diffstat (limited to 'lib/Target/PowerPC/PPCSubtarget.h')
-rw-r--r--lib/Target/PowerPC/PPCSubtarget.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/Target/PowerPC/PPCSubtarget.h b/lib/Target/PowerPC/PPCSubtarget.h
index 4f838741ad..c98291e162 100644
--- a/lib/Target/PowerPC/PPCSubtarget.h
+++ b/lib/Target/PowerPC/PPCSubtarget.h
@@ -44,7 +44,7 @@ public:
/// 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 @@ public:
/// 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; }