diff options
author | Evan Cheng <evan.cheng@apple.com> | 2010-04-21 01:47:12 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2010-04-21 01:47:12 +0000 |
commit | 5528e7bcb1209094a68bbf6d1efeefc3ca34774f (patch) | |
tree | 6286cee658d14415e5c50adc0f29ae85c9a95aa3 /lib/Target/X86/X86Subtarget.h | |
parent | fe5dcbc27d4c21ed80cb5531cad215aa272fded9 (diff) | |
download | external_llvm-5528e7bcb1209094a68bbf6d1efeefc3ca34774f.zip external_llvm-5528e7bcb1209094a68bbf6d1efeefc3ca34774f.tar.gz external_llvm-5528e7bcb1209094a68bbf6d1efeefc3ca34774f.tar.bz2 |
isel (i32 anyext i16) as insert_subreg when 16-bit ops are being promoted.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101979 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86Subtarget.h')
-rw-r--r-- | lib/Target/X86/X86Subtarget.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/Target/X86/X86Subtarget.h b/lib/Target/X86/X86Subtarget.h index 8a873f0..dc99018 100644 --- a/lib/Target/X86/X86Subtarget.h +++ b/lib/Target/X86/X86Subtarget.h @@ -85,10 +85,13 @@ protected: bool IsUAMemFast; /// HasVectorUAMem - True if SIMD operations can have unaligned memory - /// operands. This may require setting a feature bit in the - /// processor. + /// operands. This may require setting a feature bit in the processor. bool HasVectorUAMem; + /// Promote16Bit - True if codegen should promote 16-bit operations to 32-bit. + /// This is a temporary option. + bool Promote16Bit; + /// DarwinVers - Nonzero if this is a darwin platform: the numeric /// version of the platform, e.g. 8 = 10.4 (Tiger), 9 = 10.5 (Leopard), etc. unsigned char DarwinVers; // Is any darwin-x86 platform. @@ -157,6 +160,7 @@ public: bool isBTMemSlow() const { return IsBTMemSlow; } bool isUnalignedMemAccessFast() const { return IsUAMemFast; } bool hasVectorUAMem() const { return HasVectorUAMem; } + bool shouldPromote16Bit() const { return Promote16Bit; } bool isTargetDarwin() const { return TargetType == isDarwin; } bool isTargetELF() const { return TargetType == isELF; } |