From b391e3509ac57af721a757de5a1cddb996ca6397 Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Tue, 7 Nov 2006 09:04:16 +0000 Subject: [PATCH] Added target hook for post-indexed memory ops transformation. llvm-svn: 31499 --- llvm/include/llvm/Target/TargetLowering.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/llvm/include/llvm/Target/TargetLowering.h b/llvm/include/llvm/Target/TargetLowering.h index 9416afd25eca..e5cddada5833 100644 --- a/llvm/include/llvm/Target/TargetLowering.h +++ b/llvm/include/llvm/Target/TargetLowering.h @@ -382,6 +382,16 @@ public: return false; } + /// getPostIndexedAddressParts - returns true by value, base pointer and + /// offset pointer and addressing mode by reference if this node can be + /// combined with a load / store to form a post-indexed load / store. + virtual bool getPostIndexedAddressParts(SDNode *N, MVT::ValueType VT, + SDOperand &Base, SDOperand &Offset, + ISD::MemOpAddrMode &AM, + SelectionDAG &DAG) { + return false; + } + //===--------------------------------------------------------------------===// // TargetLowering Optimization Methods //