Added target hook for post-indexed memory ops transformation.

llvm-svn: 31499
This commit is contained in:
Evan Cheng 2006-11-07 09:04:16 +00:00
parent 60c6846d21
commit b391e3509a
1 changed files with 10 additions and 0 deletions

View File

@ -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
//