summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/ARMISelLowering.h
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2009-11-11 19:05:52 +0000
committerEvan Cheng <evan.cheng@apple.com>2009-11-11 19:05:52 +0000
commit3d3c24a82c6ece607775f4beb7891e4ddce550bb (patch)
treeb850af238e073f4560e5448e52a7b13107f569ee /llvm/lib/Target/ARM/ARMISelLowering.h
parentd576d66d91ad15c59b60f16ea0471db9b6a8fdde (diff)
downloadbcm5719-llvm-3d3c24a82c6ece607775f4beb7891e4ddce550bb.tar.gz
bcm5719-llvm-3d3c24a82c6ece607775f4beb7891e4ddce550bb.zip
Add TargetLowering::isLegalICmpImmediate. It tells LSR what immediate can be folded into target icmp instructions.
llvm-svn: 86858
Diffstat (limited to 'llvm/lib/Target/ARM/ARMISelLowering.h')
-rw-r--r--llvm/lib/Target/ARM/ARMISelLowering.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/Target/ARM/ARMISelLowering.h b/llvm/lib/Target/ARM/ARMISelLowering.h
index df69ab1cc2c..1eb1a71384c 100644
--- a/llvm/lib/Target/ARM/ARMISelLowering.h
+++ b/llvm/lib/Target/ARM/ARMISelLowering.h
@@ -180,6 +180,12 @@ namespace llvm {
virtual bool isLegalAddressingMode(const AddrMode &AM, const Type *Ty)const;
bool isLegalT2ScaledAddressingMode(const AddrMode &AM, EVT VT) const;
+ /// isLegalICmpImmediate - Return true if the specified immediate is legal
+ /// icmp immediate, that is the target has icmp instructions which can compare
+ /// a register against the immediate without having to materialize the
+ /// immediate into a register.
+ virtual bool isLegalICmpImmediate(uint64_t Imm) const;
+
/// getPreIndexedAddressParts - returns true by value, base pointer and
/// offset pointer and addressing mode by reference if the node's address
/// can be legally represented as pre-indexed load / store address.
OpenPOWER on IntegriCloud