diff options
author | Chris Lattner <sabre@nondot.org> | 2006-06-16 01:37:27 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-06-16 01:37:27 +0000 |
commit | 0c4aa14deb868d44cdd65d3af03ec2ef32525c58 (patch) | |
tree | 6115c03c70834dfdd671d0a69a81edf4068fac43 /llvm/lib/Target/PowerPC/PPCSubtarget.h | |
parent | 44ab8aefa66644ba3033d8aa24d3d4c391f762ab (diff) | |
download | bcm5719-llvm-0c4aa14deb868d44cdd65d3af03ec2ef32525c58.tar.gz bcm5719-llvm-0c4aa14deb868d44cdd65d3af03ec2ef32525c58.zip |
First baby step towards ppc64 support. This adds a new -march=ppc64 backend
that is currently just like ppc32 :)
llvm-svn: 28813
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCSubtarget.h')
-rw-r--r-- | llvm/lib/Target/PowerPC/PPCSubtarget.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCSubtarget.h b/llvm/lib/Target/PowerPC/PPCSubtarget.h index 4f838741ad0..c98291e1620 100644 --- a/llvm/lib/Target/PowerPC/PPCSubtarget.h +++ b/llvm/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; } |