[llvm-commits] CVS: llvm/lib/Target/ARM/ARMTargetMachine.cpp
Evan Cheng
evan.cheng at apple.com
Wed Jan 31 14:08:56 PST 2007
Changes in directory llvm/lib/Target/ARM:
ARMTargetMachine.cpp updated: 1.18 -> 1.19
---
Log message:
Thumb add sp, #imm requires the immediate value be multiple of 4. For now,
change preferred alignment of short, byte, bool to 4.
---
Diffs of the changes: (+6 -2)
ARMTargetMachine.cpp | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
Index: llvm/lib/Target/ARM/ARMTargetMachine.cpp
diff -u llvm/lib/Target/ARM/ARMTargetMachine.cpp:1.18 llvm/lib/Target/ARM/ARMTargetMachine.cpp:1.19
--- llvm/lib/Target/ARM/ARMTargetMachine.cpp:1.18 Mon Jan 22 17:13:01 2007
+++ llvm/lib/Target/ARM/ARMTargetMachine.cpp Wed Jan 31 16:08:40 2007
@@ -35,8 +35,12 @@
ARMTargetMachine::ARMTargetMachine(const Module &M, const std::string &FS)
: Subtarget(M, FS),
DataLayout(Subtarget.isTargetDarwin() ?
- std::string("e-p:32:32-d:32:32-l:32:32") :
- std::string("e-p:32:32-d:32:64-l:32:64")),
+ (Subtarget.isThumb() ?
+ std::string("e-p:32:32-d:32:32-l:32:32-s:16:32-b:8:32-B:8:32") :
+ std::string("e-p:32:32-d:32:32-l:32:32")) :
+ (Subtarget.isThumb() ?
+ std::string("e-p:32:32-d:32:64-l:32:64-s:16:32-b:8:32-B:8:32") :
+ std::string("e-p:32:32-d:32:64-l:32:64"))),
InstrInfo(Subtarget),
FrameInfo(Subtarget) {}
More information about the llvm-commits
mailing list