diff options
author | Anton Korobeynikov <asl@math.spbu.ru> | 2009-05-29 23:41:08 +0000 |
---|---|---|
committer | Anton Korobeynikov <asl@math.spbu.ru> | 2009-05-29 23:41:08 +0000 |
commit | f2e14756aa488fb1b09eb78ffe0055db6581dd5f (patch) | |
tree | 58d6cbf11f9a3be932d48a868b47f699738d8b75 /lib/Target/ARM/ARMSubtarget.h | |
parent | 6724446aa1b2842adc3bdb2e2becf77c5c79a674 (diff) | |
download | external_llvm-f2e14756aa488fb1b09eb78ffe0055db6581dd5f.zip external_llvm-f2e14756aa488fb1b09eb78ffe0055db6581dd5f.tar.gz external_llvm-f2e14756aa488fb1b09eb78ffe0055db6581dd5f.tar.bz2 |
Add placeholder for thumb2 stuff
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72593 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMSubtarget.h')
-rw-r--r-- | lib/Target/ARM/ARMSubtarget.h | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/lib/Target/ARM/ARMSubtarget.h b/lib/Target/ARM/ARMSubtarget.h index 39e85b0..370817d 100644 --- a/lib/Target/ARM/ARMSubtarget.h +++ b/lib/Target/ARM/ARMSubtarget.h @@ -30,15 +30,21 @@ protected: None, VFPv2, VFPv3, NEON }; + enum ThumbTypeEnum { + ThumbNone, + Thumb1, + Thumb2 + }; + /// ARMArchVersion - ARM architecture version: V4T (base), V5T, V5TE, - /// V6, V7A. + /// V6, V6T2, V7A. ARMArchEnum ARMArchVersion; /// ARMFPUType - Floating Point Unit type. ARMFPEnum ARMFPUType; - /// IsThumb - True if we are in thumb mode, false if in ARM mode. - bool IsThumb; + /// ThumbMode - ARM if in ARM mode, otherwise indicates Thumb version. + ThumbTypeEnum ThumbMode; /// UseThumbBacktraces - True if we use thumb style backtraces. bool UseThumbBacktraces; @@ -66,7 +72,7 @@ protected: /// This constructor initializes the data members to match that /// of the specified module. /// - ARMSubtarget(const Module &M, const std::string &FS, bool thumb); + ARMSubtarget(const Module &M, const std::string &FS, bool isThumb); /// getMaxInlineSizeThreshold - Returns the maximum memset / memcpy size /// that still makes it profitable to inline the call. @@ -96,7 +102,8 @@ protected: bool isAPCS_ABI() const { return TargetABI == ARM_ABI_APCS; } bool isAAPCS_ABI() const { return TargetABI == ARM_ABI_AAPCS; } - bool isThumb() const { return IsThumb; } + bool isThumb() const { return ThumbMode >= Thumb1; } + bool isThumb2() const { return ThumbMode >= Thumb2; } bool useThumbBacktraces() const { return UseThumbBacktraces; } bool isR9Reserved() const { return IsR9Reserved; } |