diff options
author | Evan Cheng <evan.cheng@apple.com> | 2007-03-12 23:29:01 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2007-03-12 23:29:01 +0000 |
commit | 861939152debbaa15a55a196a4321837c7bc379d (patch) | |
tree | c4f6310a51c1dcd92b569adeabd705e5f3a63600 /lib/Target/PowerPC/PPCISelLowering.h | |
parent | a8a155e77f6216d762f218bedd326c5c3bb08f99 (diff) | |
download | llvm-861939152debbaa15a55a196a4321837c7bc379d.tar.gz llvm-861939152debbaa15a55a196a4321837c7bc379d.tar.bz2 llvm-861939152debbaa15a55a196a4321837c7bc379d.tar.xz |
More flexible TargetLowering LSR hooks for testing whether an immediate is a legal target address immediate or scale.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35074 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPCISelLowering.h')
-rw-r--r-- | lib/Target/PowerPC/PPCISelLowering.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/Target/PowerPC/PPCISelLowering.h b/lib/Target/PowerPC/PPCISelLowering.h index 009ceb0d96..cc1f032493 100644 --- a/lib/Target/PowerPC/PPCISelLowering.h +++ b/lib/Target/PowerPC/PPCISelLowering.h @@ -237,9 +237,13 @@ namespace llvm { SelectionDAG &DAG); /// isLegalAddressImmediate - Return true if the integer value can be used - /// as the offset of the target addressing mode. - virtual bool isLegalAddressImmediate(int64_t V) const; - virtual bool isLegalAddressImmediate(llvm::GlobalValue*) const; + /// as the offset of the target addressing mode for load / store of the + /// given type. + virtual bool isLegalAddressImmediate(int64_t V, const Type *Ty) const; + + /// isLegalAddressImmediate - Return true if the GlobalValue can be used as + /// the offset of the target addressing mode. + virtual bool isLegalAddressImmediate(GlobalValue *GV) const; SDOperand LowerFRAMEADDR(SDOperand Op, SelectionDAG &DAG); }; |