This commit enables unaligned memory accesses of vector types on AArch64 back end...
[oota-llvm.git] / lib / Target / AArch64 / AArch64Subtarget.h
index 68c6c4b63cc6b40c282ac4a0986912b45f23791c..45e5a5eb063eafebb1334a748573439a6c7ecccf 100644 (file)
@@ -38,6 +38,11 @@ protected:
   bool HasNEON;
   bool HasCrypto;
 
+  /// AllowsUnalignedMem - If true, the subtarget allows unaligned memory
+  /// accesses for some types.  For details, see
+  /// AArch64TargetLowering::allowsUnalignedMemoryAccesses().
+  bool AllowsUnalignedMem;
+
   /// TargetTriple - What processor and OS we're targeting.
   Triple TargetTriple;
 
@@ -74,6 +79,8 @@ public:
   bool hasNEON() const { return HasNEON; }
   bool hasCrypto() const { return HasCrypto; }
 
+  bool allowsUnalignedMem() const { return AllowsUnalignedMem; }
+
   bool isLittle() const { return IsLittleEndian; }
 
   const std::string & getCPUString() const { return CPUString; }