Add alignment value to allowsUnalignedMemoryAccess
[oota-llvm.git] / include / llvm / Target / TargetLowering.h
index 30b3982ede2a4e0051c0dead4bb38d25723055c1..7f75fec7609d82d861c3546f38347c66c6a747fb 100644 (file)
@@ -782,9 +782,10 @@ public:
   /// copy/move/set is converted to a sequence of store operations. Its use
   /// helps to ensure that such replacements don't generate code that causes an
   /// alignment error (trap) on the target machine.
-  virtual bool allowsUnalignedMemoryAccesses(EVT,
-                                             unsigned AddrSpace = 0,
-                                             bool * /*Fast*/ = nullptr) const {
+  virtual bool allowsMisalignedMemoryAccesses(EVT,
+                                              unsigned AddrSpace = 0,
+                                              unsigned Align = 1,
+                                              bool * /*Fast*/ = nullptr) const {
     return false;
   }