summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PPCISelLowering.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-03-30 23:15:24 +0000
committerChris Lattner <sabre@nondot.org>2007-03-30 23:15:24 +0000
commit1eb94d973a30191382a8ceecdb6039012e5f02b9 (patch)
treeb6af90c5b224182793214bbc2e982e1f28f5e5b2 /llvm/lib/Target/PowerPC/PPCISelLowering.h
parentac3f81508c07355f926f5ca46bf4a386d7d8bbfd (diff)
downloadbcm5719-llvm-1eb94d973a30191382a8ceecdb6039012e5f02b9.tar.gz
bcm5719-llvm-1eb94d973a30191382a8ceecdb6039012e5f02b9.zip
implement the new addressing mode description hook.
llvm-svn: 35521
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCISelLowering.h')
-rw-r--r--llvm/lib/Target/PowerPC/PPCISelLowering.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCISelLowering.h b/llvm/lib/Target/PowerPC/PPCISelLowering.h
index e66d16590bc..593400c2686 100644
--- a/llvm/lib/Target/PowerPC/PPCISelLowering.h
+++ b/llvm/lib/Target/PowerPC/PPCISelLowering.h
@@ -236,6 +236,10 @@ namespace llvm {
SDOperand isOperandValidForConstraint(SDOperand Op, char ConstraintLetter,
SelectionDAG &DAG);
+ /// isLegalAddressingMode - Return true if the addressing mode represented
+ /// by AM is legal for this target, for a load/store of the specified type.
+ virtual bool isLegalAddressingMode(const AddrMode &AM, const Type *Ty)const;
+
/// 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.
OpenPOWER on IntegriCloud