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

Evan Cheng evan.cheng at apple.com
Fri Mar 16 01:42:50 PDT 2007



Changes in directory llvm/include/llvm/Target:

TargetLowering.h updated: 1.112 -> 1.113
---
Log message:

Added isLegalAddressExpression hook to test if the given expression can be
folded into target addressing mode for the given type.

---
Diffs of the changes:  (+7 -1)

 TargetLowering.h |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletion(-)


Index: llvm/include/llvm/Target/TargetLowering.h
diff -u llvm/include/llvm/Target/TargetLowering.h:1.112 llvm/include/llvm/Target/TargetLowering.h:1.113
--- llvm/include/llvm/Target/TargetLowering.h:1.112	Mon Mar 12 18:26:27 2007
+++ llvm/include/llvm/Target/TargetLowering.h	Fri Mar 16 03:42:32 2007
@@ -855,7 +855,13 @@
   //===--------------------------------------------------------------------===//
   // Loop Strength Reduction hooks
   //
-  
+
+  /// isLegalAddressExpression - Return true if the binary expression made up of
+  /// specified opcode, operands, and type can be folded into target addressing
+  /// mode for load / store of the given type.
+  virtual bool isLegalAddressExpression(unsigned Opc, Value *Op0, Value *Op1,
+                                        const Type *Ty) const;
+
   /// isLegalAddressImmediate - Return true if the integer value can be used as
   /// the offset of the target addressing mode for load / store of the given
   /// type.






More information about the llvm-commits mailing list