Make isLegalAddressingMode() taking DataLayout as an argument
[oota-llvm.git] / lib / Target / NVPTX / NVPTXISelLowering.h
index 5fada47f8c7184a6709b7705460a4c7edbed7ae7..0b0444e71e4931702264f3a38df6dfe0c3ae3bc9 100644 (file)
@@ -456,7 +456,7 @@ public:
   /// Used to guide target specific optimizations, like loop strength
   /// reduction (LoopStrengthReduce.cpp) and memory optimization for
   /// address mode (CodeGenPrepare.cpp)
-  bool isLegalAddressingMode(const AddrMode &AM, Type *Ty,
+  bool isLegalAddressingMode(const DataLayout &DL, const AddrMode &AM, Type *Ty,
                              unsigned AS) const override;
 
   /// getFunctionAlignment - Return the Log2 alignment of this function.