[llvm-commits] CVS: llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp

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



Changes in directory llvm/lib/CodeGen/SelectionDAG:

TargetLowering.cpp updated: 1.96 -> 1.97
---
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:  (+8 -0)

 TargetLowering.cpp |    8 ++++++++
 1 files changed, 8 insertions(+)


Index: llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
diff -u llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp:1.96 llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp:1.97
--- llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp:1.96	Mon Mar 12 18:37:10 2007
+++ llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp	Fri Mar 16 03:42:32 2007
@@ -1931,6 +1931,14 @@
 //  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.
+bool TargetLowering::isLegalAddressExpression(unsigned Opc, Value *Op0,
+                                             Value *Op1, const Type *Ty) const {
+  return false;
+}
+
 /// 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