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 | 14245a9d62d9a785a5d6590516380b300bab4957 (patch) | |
tree | 18278b1fc52996d93e7b907c565cb7c08f2212d9 /lib/CodeGen/SelectionDAG/TargetLowering.cpp | |
parent | 2864eee7a322610a8dc5f01e450a5e1ca477f7e7 (diff) |
Added isLegalAddressExpression hook to test if the given expression can be
folded into target addressing mode for the given type.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35121 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/TargetLowering.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/TargetLowering.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/CodeGen/SelectionDAG/TargetLowering.cpp b/lib/CodeGen/SelectionDAG/TargetLowering.cpp index faa5029569..8df7d8da39 100644 --- a/lib/CodeGen/SelectionDAG/TargetLowering.cpp +++ b/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. |