From: Evan Cheng Date: Fri, 3 Nov 2006 03:04:06 +0000 (+0000) Subject: Added a target specific hook to check whether / how a node can be transformed X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=24d9cf025dff0852dfd9b53e764f6729bc8e67ac;p=oota-llvm.git Added a target specific hook to check whether / how a node can be transformed into a pair of base / offset nodes for pre-indexed load / store ops. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31407 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Target/TargetLowering.h b/include/llvm/Target/TargetLowering.h index 7d1f3e00b8f..0ebf1d50549 100644 --- a/include/llvm/Target/TargetLowering.h +++ b/include/llvm/Target/TargetLowering.h @@ -371,6 +371,16 @@ public: unsigned getJumpBufAlignment() const { return JumpBufAlignment; } + + /// getLegalPreIndexedAddressBase - returns true by value, base pointer and + /// offset pointer and addressing mode by reference if the node's address + /// can be legally represented as pre-indexed load / store address. + virtual bool getLegalPreIndexedAddressBase(SDNode *N, SDOperand &Base, + SDOperand &Offset, + ISD::MemOpAddrMode &AM, + SelectionDAG &DAG) { + return false; + } //===--------------------------------------------------------------------===// // TargetLowering Optimization Methods