File tree Expand file tree Collapse file tree 7 files changed +8
-7
lines changed
Attributor/ArgumentPromotion Expand file tree Collapse file tree 7 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,8 @@ class LLVM_LIBRARY_VISIBILITY AVRTargetInfo : public TargetInfo {
5757 Int16Type = SignedInt;
5858 Char32Type = UnsignedLong;
5959 SigAtomicType = SignedChar;
60- resetDataLayout (" e-P1-p:16:8-i8:8-i16:8-i32:8-i64:8-f32:8-f64:8-n8-a:8" );
60+ resetDataLayout (
61+ " e-P1-p0:16:8-p1:16:8-i8:8-i16:8-i32:8-i64:8-f32:8-f64:8-n8-a:8" );
6162 }
6263
6364 void getTargetDefines (const LangOptions &Opts,
Original file line number Diff line number Diff line change 2727namespace llvm {
2828
2929static const char *AVRDataLayout =
30- " e-P1-p :16:8-i8:8-i16:8-i32:8-i64:8-f32:8-f64:8-n8-a:8" ;
30+ " e-P1-p0:16:8-p1 :16:8-i8:8-i16:8-i32:8-i64:8-f32:8-f64:8-n8-a:8" ;
3131
3232// / Processes a CPU name.
3333static StringRef getCPU (StringRef CPU) {
Original file line number Diff line number Diff line change 1111; This would cause a load of uninitialized memory, not even
1212; touching the program's machine code as otherwise desired.
1313
14- target datalayout = "e-P1-p :16:8-i8:8-i16:8-i32:8-i64:8-f32:8-f64:8-n8-a:8"
14+ target datalayout = "e-P1-p0:16:8-p1 :16:8-i8:8-i16:8-i32:8-i64:8-f32:8-f64:8-n8-a:8"
1515
1616; CHECK-LABEL: load_with_no_forward_reference
1717define i8 @load_with_no_forward_reference (i8 %a , i8 %b ) {
Original file line number Diff line number Diff line change 55; amount to a loop. These loops avoid generating a (non-existing) builtin such
66; as __ashlsi3.
77
8- target datalayout = "e-P1-p :16:8-i8:8-i16:8-i32:8-i64:8-f32:8-f64:8-n8-a:8"
8+ target datalayout = "e-P1-p0:16:8-p1 :16:8-i8:8-i16:8-i32:8-i64:8-f32:8-f64:8-n8-a:8"
99target triple = "avr"
1010
1111define i16 @shl16 (i16 %value , i16 %amount ) addrspace (1 ) {
Original file line number Diff line number Diff line change 44; ArgumentPromotion should preserve the default function address space
55; from the data layout.
66
7- target datalayout = "e-P1-p :16:8-i8:8-i16:8-i32:8-i64:8-f32:8-f64:8-n8-a:8"
7+ target datalayout = "e-P1-p0:16:8-p1 :16:8-i8:8-i16:8-i32:8-i64:8-f32:8-f64:8-n8-a:8"
88
99@g = common global i32 0 , align 4
1010
Original file line number Diff line number Diff line change 55; ArgumentPromotion should preserve the default function address space
66; from the data layout.
77
8- target datalayout = "e-P1-p :16:8-i8:8-i16:8-i32:8-i64:8-f32:8-f64:8-n8-a:8"
8+ target datalayout = "e-P1-p0:16:8-p1 :16:8-i8:8-i16:8-i32:8-i64:8-f32:8-f64:8-n8-a:8"
99
1010@g = common global i32 0 , align 4
1111
Original file line number Diff line number Diff line change 33; DeadArgumentElimination should respect the function address space
44; in the data layout.
55
6- target datalayout = "e-P1-p :16:8-i8:8-i16:8-i32:8-i64:8-f32:8-f64:8-n8-a:8"
6+ target datalayout = "e-P1-p0:16:8-p1 :16:8-i8:8-i16:8-i32:8-i64:8-f32:8-f64:8-n8-a:8"
77
88; CHECK: define internal i32 @foo() addrspace(1)
99define internal i32 @foo (i32 %x ) #0 {
You can’t perform that action at this time.
0 commit comments