Make isLegalAddressingMode() taking DataLayout as an argument
[oota-llvm.git] / lib / Target / AMDGPU / SIISelLowering.h
index 69b99d0607ab9412f3af83cb80abcb32f90093e9..c15713cc7d131bd43ee9750da37d5a4bde0c0814 100644 (file)
@@ -62,8 +62,8 @@ public:
   bool isShuffleMaskLegal(const SmallVectorImpl<int> &/*Mask*/,
                           EVT /*VT*/) const override;
 
-  bool isLegalAddressingMode(const AddrMode &AM,
-                             Type *Ty, unsigned AS) const override;
+  bool isLegalAddressingMode(const DataLayout &DL, const AddrMode &AM, Type *Ty,
+                             unsigned AS) const override;
 
   bool allowsMisalignedMemoryAccesses(EVT VT, unsigned AS,
                                       unsigned Align,