Teach DAGCombine to fold constant offsets into GlobalAddress nodes,
[oota-llvm.git] / lib / Target / CellSPU / SPUISelLowering.h
index e79b1363f21ab8a1fff52befd3790fef033dea43..54aac66571da35f20952af518ea6200658f2ede8 100644 (file)
@@ -139,6 +139,8 @@ namespace llvm {
     /// as the offset of the target addressing mode.
     virtual bool isLegalAddressImmediate(int64_t V, const Type *Ty) const;
     virtual bool isLegalAddressImmediate(GlobalValue *) const;
+
+    virtual bool isOffsetFoldingLegal(const GlobalAddressSDNode *GA) const;
   };
 }