diff options
author | Evan Cheng <evan.cheng@apple.com> | 2007-03-16 08:42:32 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2007-03-16 08:42:32 +0000 |
commit | a2a2fd1e55af7a8fb66fd328e9e9746e2a818ea2 (patch) | |
tree | 159fcff0c757d07b667869c0869cccf372fbc9bb /llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp | |
parent | 2ae53613caae660addfc318ade2d46029533ec83 (diff) | |
download | bcm5719-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.cpp | 8 |
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. |