[llvm-commits] CVS: llvm/include/llvm/Target/TargetLowering.h

Evan Cheng evan.cheng at apple.com
Thu Nov 2 19:04:20 PST 2006



Changes in directory llvm/include/llvm/Target:

TargetLowering.h updated: 1.84 -> 1.85
---
Log message:

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.


---
Diffs of the changes:  (+10 -0)

 TargetLowering.h |   10 ++++++++++
 1 files changed, 10 insertions(+)


Index: llvm/include/llvm/Target/TargetLowering.h
diff -u llvm/include/llvm/Target/TargetLowering.h:1.84 llvm/include/llvm/Target/TargetLowering.h:1.85
--- llvm/include/llvm/Target/TargetLowering.h:1.84	Wed Nov  1 19:39:10 2006
+++ llvm/include/llvm/Target/TargetLowering.h	Thu Nov  2 21:04:06 2006
@@ -371,6 +371,16 @@
   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






More information about the llvm-commits mailing list