summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2007-03-16 08:42:32 +0000
committerEvan Cheng <evan.cheng@apple.com>2007-03-16 08:42:32 +0000
commita2a2fd1e55af7a8fb66fd328e9e9746e2a818ea2 (patch)
tree159fcff0c757d07b667869c0869cccf372fbc9bb /llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
parent2ae53613caae660addfc318ade2d46029533ec83 (diff)
downloadbcm5719-llvm-a2a2fd1e55af7a8fb66fd328e9e9746e2a818ea2.tar.gz
bcm5719-llvm-a2a2fd1e55af7a8fb66fd328e9e9746e2a818ea2.zip
Added isLegalAddressExpression hook to test if the given expression can be
folded into target addressing mode for the given type. llvm-svn: 35121
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
index faa50295690..8df7d8da399 100644
--- a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
@@ -1931,6 +1931,14 @@ getRegForInlineAsmConstraint(const std::string &Constraint,
// Loop Strength Reduction hooks
//===----------------------------------------------------------------------===//
+/// isLegalAddressExpression - Return true if the binary expression made up of
+/// specified opcode, operands, and type can be folded into target addressing
+/// mode for load / store of the given type.
+bool TargetLowering::isLegalAddressExpression(unsigned Opc, Value *Op0,
+ Value *Op1, const Type *Ty) const {
+ return false;
+}
+
/// 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