[llvm-commits] CVS: llvm/include/llvm/Target/TargetLowering.h
Evan Cheng
evan.cheng at apple.com
Mon Mar 13 15:15:38 PST 2006
Changes in directory llvm/include/llvm/Target:
TargetLowering.h updated: 1.59 -> 1.60
---
Log message:
Add LSR hooks.
---
Diffs of the changes: (+10 -1)
TargetLowering.h | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletion(-)
Index: llvm/include/llvm/Target/TargetLowering.h
diff -u llvm/include/llvm/Target/TargetLowering.h:1.59 llvm/include/llvm/Target/TargetLowering.h:1.60
--- llvm/include/llvm/Target/TargetLowering.h:1.59 Sun Mar 5 17:49:19 2006
+++ llvm/include/llvm/Target/TargetLowering.h Mon Mar 13 17:15:27 2006
@@ -349,7 +349,7 @@
uint64_t &KnownZero,
uint64_t &KnownOne,
unsigned Depth = 0) const;
-
+
struct DAGCombinerInfo {
void *DC; // The DAG Combiner object.
bool BeforeLegalize;
@@ -560,6 +560,15 @@
virtual bool isOperandValidForConstraint(SDOperand Op, char ConstraintLetter);
//===--------------------------------------------------------------------===//
+ // Loop Strength Reduction hooks
+ //
+
+ /// isLegalAddressImmediate - Return true if the integer value or GlobalValue
+ /// can be used as the offset of the target addressing mode.
+ virtual bool isLegalAddressImmediate(int64_t V) const;
+ virtual bool isLegalAddressImmediate(GlobalValue *GV) const;
+
+ //===--------------------------------------------------------------------===//
// Scheduler hooks
//
More information about the llvm-commits
mailing list