summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PPCISelLowering.h
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2007-03-12 23:29:01 +0000
committerEvan Cheng <evan.cheng@apple.com>2007-03-12 23:29:01 +0000
commitb9dce9db85b05367b8176b2a88cb9198dca811df (patch)
treec2c118d060f995671d77e58e70a7306eee31075a /llvm/lib/Target/PowerPC/PPCISelLowering.h
parent3ab7ea79657b31de97ce500926f12bfef4ef93a7 (diff)
downloadbcm5719-llvm-b9dce9db85b05367b8176b2a88cb9198dca811df.tar.gz
bcm5719-llvm-b9dce9db85b05367b8176b2a88cb9198dca811df.zip
More flexible TargetLowering LSR hooks for testing whether an immediate is a legal target address immediate or scale.
llvm-svn: 35074
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCISelLowering.h')
-rw-r--r--llvm/lib/Target/PowerPC/PPCISelLowering.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCISelLowering.h b/llvm/lib/Target/PowerPC/PPCISelLowering.h
index 009ceb0d966..cc1f032493f 100644
--- a/llvm/lib/Target/PowerPC/PPCISelLowering.h
+++ b/llvm/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);
};
OpenPOWER on IntegriCloud