diff options
| author | Dan Gohman <gohman@apple.com> | 2011-05-03 00:46:49 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2011-05-03 00:46:49 +0000 |
| commit | 6136e94897070e8fb73625c011a596c3f59a7334 (patch) | |
| tree | 3df7f38565d4910e0b3374a0fc6826ac87fc3229 /llvm/lib/Target/ARM/ARMISelLowering.h | |
| parent | 37286b2440b54265f7dd5f264f16f880ad025bbf (diff) | |
| download | bcm5719-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.h | 6 |
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. |

