llvm.org GIT mirror llvm / 9312313
Also set alignment of stack-based structs to 4 in thumb mode. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33741 91177308-0d34-0410-b5e6-96231b3b80d8 Evan Cheng 13 years ago
2 changed file(s) with 7 addition(s) and 8 deletion(s). Raw diff Collapse all Expand all
707707 }
708708
709709 Offset += InstrOffs * Scale;
710 assert((Scale == 1 || (Offset & (Scale-1)) == 0) &&
711 "Can't encode this offset!");
710 assert((Offset & (Scale-1)) == 0 && "Can't encode this offset!");
712711 if (Offset < 0) {
713712 Offset = -Offset;
714713 isSub = true;
3434 ARMTargetMachine::ARMTargetMachine(const Module &M, const std::string &FS)
3535 : Subtarget(M, FS),
3636 DataLayout(Subtarget.isTargetDarwin() ?
37 (Subtarget.isThumb() ?
38 std::string("e-p:32:32-d:32:32-l:32:32-s:16:32-b:8:32-B:8:32") :
39 std::string("e-p:32:32-d:32:32-l:32:32")) :
40 (Subtarget.isThumb() ?
41 std::string("e-p:32:32-d:32:64-l:32:64-s:16:32-b:8:32-B:8:32") :
42 std::string("e-p:32:32-d:32:64-l:32:64"))),
37 (Subtarget.isThumb() ?
38 std::string("e-p:32:32-d:32:32-l:32:32-s:16:32-b:8:32-B:8:32-A:32") :
39 std::string("e-p:32:32-d:32:32-l:32:32")) :
40 (Subtarget.isThumb() ?
41 std::string("e-p:32:32-d:32:64-l:32:64-s:16:32-b:8:32-B:8:32-A:32") :
42 std::string("e-p:32:32-d:32:64-l:32:64"))),
4343 InstrInfo(Subtarget),
4444 FrameInfo(Subtarget) {}
4545