summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/ARMISelLowering.h
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2011-05-03 00:46:49 +0000
committerDan Gohman <gohman@apple.com>2011-05-03 00:46:49 +0000
commit6136e94897070e8fb73625c011a596c3f59a7334 (patch)
tree3df7f38565d4910e0b3374a0fc6826ac87fc3229 /llvm/lib/Target/ARM/ARMISelLowering.h
parent37286b2440b54265f7dd5f264f16f880ad025bbf (diff)
downloadbcm5719-llvm-6136e94897070e8fb73625c011a596c3f59a7334.tar.gz
bcm5719-llvm-6136e94897070e8fb73625c011a596c3f59a7334.zip
Add an unfolded offset field to LSR's Formula record. This is used to
model constants which can be added to base registers via add-immediate instructions which don't require an additional register to materialize the immediate. llvm-svn: 130743
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 a2e626062ac..82d167ed33f 100644
--- a/llvm/lib/Target/ARM/ARMISelLowering.h
+++ b/llvm/lib/Target/ARM/ARMISelLowering.h
@@ -264,6 +264,12 @@ namespace llvm {
/// the immediate into a register.
virtual bool isLegalICmpImmediate(int64_t Imm) const;
+ /// isLegalAddImmediate - Return true if the specified immediate is legal
+ /// add immediate, that is the target has add instructions which can
+ /// add a register and the immediate without having to materialize
+ /// the immediate into a register.
+ virtual bool isLegalAddImmediate(int64_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