diff options
author | Christian Pirker <cpirker@a-bix.com> | 2014-03-28 14:35:30 +0000 |
---|---|---|
committer | Christian Pirker <cpirker@a-bix.com> | 2014-03-28 14:35:30 +0000 |
commit | 2a111609561eacc50ecf8f6cb9212164b5ce2aac (patch) | |
tree | 28d96eada44426b0323dbf56cdc159e4fbb205f5 /llvm/lib/Target/ARM/ARMSubtarget.h | |
parent | 6f3408259043edc3e1e8f88a9a593c2469bbe92f (diff) | |
download | bcm5719-llvm-2a111609561eacc50ecf8f6cb9212164b5ce2aac.tar.gz bcm5719-llvm-2a111609561eacc50ecf8f6cb9212164b5ce2aac.zip |
Add ARM big endian Target (armeb, thumbeb)
Reviewed at http://llvm-reviews.chandlerc.com/D3095
llvm-svn: 205007
Diffstat (limited to 'llvm/lib/Target/ARM/ARMSubtarget.h')
-rw-r--r-- | llvm/lib/Target/ARM/ARMSubtarget.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM/ARMSubtarget.h b/llvm/lib/Target/ARM/ARMSubtarget.h index 1472bd146b2..2ce99c890f7 100644 --- a/llvm/lib/Target/ARM/ARMSubtarget.h +++ b/llvm/lib/Target/ARM/ARMSubtarget.h @@ -203,6 +203,9 @@ protected: /// CPUString - String name of used CPU. std::string CPUString; + /// IsLittle - The target is Little Endian + bool IsLittle; + /// TargetTriple - What processor and OS we're targeting. Triple TargetTriple; @@ -226,7 +229,8 @@ protected: /// of the specified triple. /// ARMSubtarget(const std::string &TT, const std::string &CPU, - const std::string &FS, const TargetOptions &Options); + const std::string &FS, bool IsLittle, + const TargetOptions &Options); /// getMaxInlineSizeThreshold - Returns the maximum memset / memcpy size /// that still makes it profitable to inline the call. @@ -375,6 +379,8 @@ public: const std::string & getCPUString() const { return CPUString; } + bool isLittle() const { return IsLittle; } + unsigned getMispredictionPenalty() const; /// This function returns true if the target has sincos() routine in its |