aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/ARM/ARMSubtarget.h
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2010-09-28 04:09:35 +0000
committerBob Wilson <bob.wilson@apple.com>2010-09-28 04:09:35 +0000
commit60b668c67a68ae36db5a8f1676c4baa8babfa294 (patch)
tree9d94b1f01c2c6466f8cfb98c547cbab054c1d033 /lib/Target/ARM/ARMSubtarget.h
parent72b926bb743135098e1727804c3750279e63b37e (diff)
downloadexternal_llvm-60b668c67a68ae36db5a8f1676c4baa8babfa294.zip
external_llvm-60b668c67a68ae36db5a8f1676c4baa8babfa294.tar.gz
external_llvm-60b668c67a68ae36db5a8f1676c4baa8babfa294.tar.bz2
Add a command line option "-arm-strict-align" to disallow unaligned memory
accesses for ARM targets that would otherwise allow it. Radar 8465431. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114941 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMSubtarget.h')
-rw-r--r--lib/Target/ARM/ARMSubtarget.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/Target/ARM/ARMSubtarget.h b/lib/Target/ARM/ARMSubtarget.h
index 605d81a..3d9f40b 100644
--- a/lib/Target/ARM/ARMSubtarget.h
+++ b/lib/Target/ARM/ARMSubtarget.h
@@ -106,6 +106,11 @@ protected:
/// precision.
bool FPOnlySP;
+ /// AllowsUnalignedMem - If true, the subtarget allows unaligned memory
+ /// accesses for some types. For details, see
+ /// ARMTargetLowering::allowsUnalignedMemoryAccesses().
+ bool AllowsUnalignedMem;
+
/// stackAlignment - The minimum alignment known to hold of the stack frame on
/// entry to the function and which must be maintained by every function.
unsigned stackAlignment;
@@ -185,6 +190,8 @@ protected:
bool useMovt() const { return UseMovt && hasV6T2Ops(); }
+ bool allowsUnalignedMem() const { return AllowsUnalignedMem; }
+
const std::string & getCPUString() const { return CPUString; }
/// enablePostRAScheduler - True at 'More' optimization.