diff options
author | Evan Cheng <evan.cheng@apple.com> | 2010-04-01 05:58:17 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2010-04-01 05:58:17 +0000 |
commit | 738b0f9ec753895807664e75d15ae1e3e7d58cb4 (patch) | |
tree | 87181bcb9bd1e5b3565360251f0d5b8f6941fb51 /llvm/lib/Target/X86/X86Subtarget.h | |
parent | c0f5ce32d5ec06b22788feda4da25e1c394a9670 (diff) | |
download | bcm5719-llvm-738b0f9ec753895807664e75d15ae1e3e7d58cb4.tar.gz bcm5719-llvm-738b0f9ec753895807664e75d15ae1e3e7d58cb4.zip |
Nehalem unaligned memory access is fast.
llvm-svn: 100089
Diffstat (limited to 'llvm/lib/Target/X86/X86Subtarget.h')
-rw-r--r-- | llvm/lib/Target/X86/X86Subtarget.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Target/X86/X86Subtarget.h b/llvm/lib/Target/X86/X86Subtarget.h index 56220db3b21..bf30154625b 100644 --- a/llvm/lib/Target/X86/X86Subtarget.h +++ b/llvm/lib/Target/X86/X86Subtarget.h @@ -78,6 +78,9 @@ protected: /// IsBTMemSlow - True if BT (bit test) of memory instructions are slow. bool IsBTMemSlow; + /// IsUAMemFast - True if unaligned memory access is fast. + bool IsUAMemFast; + /// HasVectorUAMem - True if SIMD operations can have unaligned memory /// operands. This may require setting a feature bit in the /// processor. @@ -148,6 +151,7 @@ public: bool hasFMA3() const { return HasFMA3; } bool hasFMA4() const { return HasFMA4; } bool isBTMemSlow() const { return IsBTMemSlow; } + bool isUnalignedMemAccessFast() const { return IsUAMemFast; } bool hasVectorUAMem() const { return HasVectorUAMem; } bool isTargetDarwin() const { return TargetType == isDarwin; } |