aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Target/TargetLowering.h
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
commit14245a9d62d9a785a5d6590516380b300bab4957 (patch)
tree18278b1fc52996d93e7b907c565cb7c08f2212d9 /include/llvm/Target/TargetLowering.h
parent2864eee7a322610a8dc5f01e450a5e1ca477f7e7 (diff)
downloadexternal_llvm-14245a9d62d9a785a5d6590516380b300bab4957.zip
external_llvm-14245a9d62d9a785a5d6590516380b300bab4957.tar.gz
external_llvm-14245a9d62d9a785a5d6590516380b300bab4957.tar.bz2
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 'include/llvm/Target/TargetLowering.h')
-rw-r--r--include/llvm/Target/TargetLowering.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/llvm/Target/TargetLowering.h b/include/llvm/Target/TargetLowering.h
index 7fedc38..dc023c8 100644
--- a/include/llvm/Target/TargetLowering.h
+++ b/include/llvm/Target/TargetLowering.h
@@ -855,7 +855,13 @@ public:
//===--------------------------------------------------------------------===//
// 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.
+ virtual bool isLegalAddressExpression(unsigned Opc, Value *Op0, Value *Op1,
+ 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.