diff options
author | Bob Wilson <bob.wilson@apple.com> | 2010-03-16 23:01:13 +0000 |
---|---|---|
committer | Bob Wilson <bob.wilson@apple.com> | 2010-03-16 23:01:13 +0000 |
commit | c7ba918b8417533ae89e2c18aaf1b26879536edc (patch) | |
tree | a6306367f1cd959f340dac9b3adebad272771e8f /llvm/lib/Target/ARM/ARMAddressingModes.h | |
parent | 1668355e06268683fd0b4fcf4bc176150172f374 (diff) | |
download | bcm5719-llvm-c7ba918b8417533ae89e2c18aaf1b26879536edc.tar.gz bcm5719-llvm-c7ba918b8417533ae89e2c18aaf1b26879536edc.zip |
Revert 98683. It is breaking something in the disassembler.
llvm-svn: 98692
Diffstat (limited to 'llvm/lib/Target/ARM/ARMAddressingModes.h')
-rw-r--r-- | llvm/lib/Target/ARM/ARMAddressingModes.h | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/llvm/lib/Target/ARM/ARMAddressingModes.h b/llvm/lib/Target/ARM/ARMAddressingModes.h index 4fe943a7c73..abdd938cc18 100644 --- a/llvm/lib/Target/ARM/ARMAddressingModes.h +++ b/llvm/lib/Target/ARM/ARMAddressingModes.h @@ -520,11 +520,23 @@ namespace ARM_AM { // // This is used for NEON load / store instructions. // - // addrmode6 := reg with optional alignment + // addrmode6 := reg with optional writeback and alignment // - // 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. + // 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; + } } // end namespace ARM_AM } // end namespace llvm |