diff options
| author | Bob Wilson <bob.wilson@apple.com> | 2010-03-16 17:46:45 +0000 |
|---|---|---|
| committer | Bob Wilson <bob.wilson@apple.com> | 2010-03-16 17:46:45 +0000 |
| commit | d6243b49d440cfde81cf9830a71658a65f8f69c0 (patch) | |
| tree | 46f1ccd76dedf60ad848c9cc14ac9fbe203b0ffb /llvm/lib/Target/ARM/ARMAddressingModes.h | |
| parent | ceda0780f9043f6212e1df3051c3fc3fbf6b6704 (diff) | |
| download | bcm5719-llvm-d6243b49d440cfde81cf9830a71658a65f8f69c0.tar.gz bcm5719-llvm-d6243b49d440cfde81cf9830a71658a65f8f69c0.zip | |
Remove the writeback flag from ARM's address mode 4. Now that we have separate
instructions for ld/st with writeback, the flag is completely redundant.
llvm-svn: 98643
Diffstat (limited to 'llvm/lib/Target/ARM/ARMAddressingModes.h')
| -rw-r--r-- | llvm/lib/Target/ARM/ARMAddressingModes.h | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/llvm/lib/Target/ARM/ARMAddressingModes.h b/llvm/lib/Target/ARM/ARMAddressingModes.h index 9e086ca5c54..5be2fb2c246 100644 --- a/llvm/lib/Target/ARM/ARMAddressingModes.h +++ b/llvm/lib/Target/ARM/ARMAddressingModes.h @@ -463,20 +463,13 @@ namespace ARM_AM { // IB - Increment before // DA - Decrement after // DB - Decrement before - // - // If the 4th bit (writeback)is set, then the base register is updated after - // the memory transfer. static inline AMSubMode getAM4SubMode(unsigned Mode) { return (AMSubMode)(Mode & 0x7); } - static inline unsigned getAM4ModeImm(AMSubMode SubMode, bool WB = false) { - return (int)SubMode | ((int)WB << 3); - } - - static inline bool getAM4WBFlag(unsigned Mode) { - return (Mode >> 3) & 1; + static inline unsigned getAM4ModeImm(AMSubMode SubMode) { + return (int)SubMode; } //===--------------------------------------------------------------------===// |

