diff options
author | Dale Johannesen <dalej@apple.com> | 2007-03-20 21:54:54 +0000 |
---|---|---|
committer | Dale Johannesen <dalej@apple.com> | 2007-03-20 21:54:54 +0000 |
commit | 8e59e163db8cd3e7b4c96e438fbedf78bff06707 (patch) | |
tree | 00cc4ff26c89511c0db563a4c9e9742b4ff74b1e /include/llvm/Target/TargetLowering.h | |
parent | 69cb9b78f11d505f4351a269fc90e7b77fcda437 (diff) | |
download | external_llvm-8e59e163db8cd3e7b4c96e438fbedf78bff06707.zip external_llvm-8e59e163db8cd3e7b4c96e438fbedf78bff06707.tar.gz external_llvm-8e59e163db8cd3e7b4c96e438fbedf78bff06707.tar.bz2 |
do not share old induction variables when this would result in invalid
instructions (that would have to be split later)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35227 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Target/TargetLowering.h')
-rw-r--r-- | include/llvm/Target/TargetLowering.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/llvm/Target/TargetLowering.h b/include/llvm/Target/TargetLowering.h index dc023c8..e0d6740 100644 --- a/include/llvm/Target/TargetLowering.h +++ b/include/llvm/Target/TargetLowering.h @@ -875,6 +875,16 @@ public: /// scale of the target addressing mode for load / store of the given type. virtual bool isLegalAddressScale(int64_t S, const Type *Ty) const; + /// isLegalAddressScaleAndImm - Return true if S works for IsLegalAddressScale + /// and V works for isLegalAddressImmediate _and_ both can be applied + /// simultaneously to the same instruction. + virtual bool isLegalAddressScaleAndImm(int64_t S, int64_t V, + const Type* Ty) const; + /// isLegalAddressScaleAndImm - Return true if S works for IsLegalAddressScale + /// and GV works for isLegalAddressImmediate _and_ both can be applied + /// simultaneously to the same instruction. + virtual bool isLegalAddressScaleAndImm(int64_t S, GlobalValue *GV) const; + //===--------------------------------------------------------------------===// // Div utility functions // |