summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/ARM/ARMAddressingModes.h
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2010-03-16 17:46:45 +0000
committerBob Wilson <bob.wilson@apple.com>2010-03-16 17:46:45 +0000
commitd6243b49d440cfde81cf9830a71658a65f8f69c0 (patch)
tree46f1ccd76dedf60ad848c9cc14ac9fbe203b0ffb /llvm/lib/Target/ARM/ARMAddressingModes.h
parentceda0780f9043f6212e1df3051c3fc3fbf6b6704 (diff)
downloadbcm5719-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.h11
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;
}
//===--------------------------------------------------------------------===//
OpenPOWER on IntegriCloud