summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/ARMAddressingModes.h
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2010-03-20 22:13:40 +0000
committerBob Wilson <bob.wilson@apple.com>2010-03-20 22:13:40 +0000
commitae08a736d61783668199a27e8272ad65a5f87915 (patch)
tree794b012cb04a7a3e078ea134301557476cea7b8a /llvm/lib/Target/ARM/ARMAddressingModes.h
parent59e5141d4481e0eed2455e1b7dcf865ea21508ea (diff)
downloadbcm5719-llvm-ae08a736d61783668199a27e8272ad65a5f87915.tar.gz
bcm5719-llvm-ae08a736d61783668199a27e8272ad65a5f87915.zip
Re-commit r98683 ("remove redundant writeback flag from ARM address mode 6")
with changes to add a separate optional register update argument. Change all the NEON instructions with address register writeback to use it. llvm-svn: 99095
Diffstat (limited to 'llvm/lib/Target/ARM/ARMAddressingModes.h')
-rw-r--r--llvm/lib/Target/ARM/ARMAddressingModes.h20
1 files changed, 4 insertions, 16 deletions
diff --git a/llvm/lib/Target/ARM/ARMAddressingModes.h b/llvm/lib/Target/ARM/ARMAddressingModes.h
index 21b57752270..ea62c3330e6 100644
--- a/llvm/lib/Target/ARM/ARMAddressingModes.h
+++ b/llvm/lib/Target/ARM/ARMAddressingModes.h
@@ -524,23 +524,11 @@ namespace ARM_AM {
//
// This is used for NEON load / store instructions.
//
- // addrmode6 := reg with optional writeback and alignment
+ // addrmode6 := reg with optional alignment
//
- // This is stored in four operands [regaddr, regupdate, opc, align]. The
- // first is the address register. The second register holds the value of
- // a post-access increment for writeback or reg0 if no writeback or if the
- // writeback increment is the size of the memory access. The third
- // operand encodes whether there is writeback to the address register. The
- // fourth operand is the value of the alignment specifier to use or zero if
- // no explicit alignment.
-
- static inline unsigned getAM6Opc(bool WB = false) {
- return (int)WB;
- }
-
- static inline bool getAM6WBFlag(unsigned Mode) {
- return Mode & 1;
- }
+ // This is stored in two operands [regaddr, align]. The first is the
+ // address register. The second operand is the value of the alignment
+ // specifier to use or zero if no explicit alignment.
} // end namespace ARM_AM
} // end namespace llvm
OpenPOWER on IntegriCloud