| 1 |
// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -std=c++20 -mconstructor-aliases -fclangir -emit-cir %s -o %t.cir |
| 2 |
// RUN: FileCheck --input-file=%t.cir %s --check-prefix=CIR |
| 3 |
// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -std=c++20 -mconstructor-aliases -fclangir -emit-llvm %s -o %t-cir.ll |
| 4 |
// RUN: FileCheck --input-file=%t-cir.ll %s --check-prefix=LLVM |
| 5 |
// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -std=c++20 -mconstructor-aliases -emit-llvm %s -o %t.ll |
| 6 |
// RUN: FileCheck --input-file=%t.ll %s --check-prefix=OGCG |
| 7 |
|
| 8 |
struct Pair { |
| 9 |
int a; |
| 10 |
int b; |
| 11 |
}; |
| 12 |
|
| 13 |
struct ZeroInit { |
| 14 |
int i{}; |
| 15 |
Pair p{}; |
| 16 |
int arr[4]{}; |
| 17 |
float _Complex c{}; |
| 18 |
unsigned bf : 8 {}; |
| 19 |
ZeroInit() = default; |
| 20 |
}; |
| 21 |
|
| 22 |
// CIR: cir.func{{.*}} @_ZN8ZeroInitC2Ev(%[[THIS_ARG:.*]]: !cir.ptr<!rec_ZeroInit> {{.*}}) |
| 23 |
// CIR: %[[ITER:.*]] = cir.alloca {{.*}} ["arrayinit.temp"] |
| 24 |
// CIR: %[[THIS:.*]] = cir.load %[[THIS_ALLOCA:.*]] |
| 25 |
// CIR: %[[I:.*]] = cir.get_member %[[THIS]][0] {name = "i"} |
| 26 |
// CIR: %[[ZERO:.*]] = cir.const #cir.int<0> : !s32i |
| 27 |
// CIR: cir.store{{.*}} %[[ZERO]], %[[I]] |
| 28 |
// CIR: %[[P:.*]] = cir.get_member %[[THIS]][1] {name = "p"} |
| 29 |
// CIR: %[[P_A:.*]] = cir.get_member %[[P]][0] {name = "a"} |
| 30 |
// CIR: %[[ZERO:.*]] = cir.const #cir.int<0> : !s32i |
| 31 |
// CIR: cir.store{{.*}} %[[ZERO]], %[[P_A]] |
| 32 |
// CIR: %[[P_B:.*]] = cir.get_member %[[P]][1] {name = "b"} |
| 33 |
// CIR: %[[ZERO:.*]] = cir.const #cir.int<0> : !s32i |
| 34 |
// CIR: cir.store{{.*}} %[[ZERO]], %[[P_B]] |
| 35 |
// CIR: %[[ARR:.*]] = cir.get_member %[[THIS]][2] {name = "arr"} |
| 36 |
// CIR: %[[ARR_BEGIN:.*]] = cir.cast array_to_ptrdecay %[[ARR]] : !cir.ptr<!cir.array<!s32i x 4>> -> !cir.ptr<!s32i> |
| 37 |
// CIR: cir.store{{.*}} %[[ARR_BEGIN]], %[[ITER]] |
| 38 |
// CIR: %[[FOUR:.*]] = cir.const #cir.int<4> : !s64i |
| 39 |
// CIR: %[[END:.*]] = cir.ptr_stride %[[ARR_BEGIN]], %[[FOUR]] : (!cir.ptr<!s32i>, !s64i) |
| 40 |
// CIR: cir.do { |
| 41 |
// CIR: %[[CUR:.*]] = cir.load{{.*}} %[[ITER]] |
| 42 |
// CIR: %[[ZERO:.*]] = cir.const #cir.int<0> : !s32i |
| 43 |
// CIR: cir.store{{.*}} %[[ZERO]], %[[CUR]] |
| 44 |
// CIR: %[[ONE:.*]] = cir.const #cir.int<1> : !s64i |
| 45 |
// CIR: %[[NEXT:.*]] = cir.ptr_stride %[[CUR]], %[[ONE]] : (!cir.ptr<!s32i>, !s64i) |
| 46 |
// CIR: cir.store{{.*}} %[[NEXT]], %[[ITER]] |
| 47 |
// CIR: cir.yield |
| 48 |
// CIR: } while { |
| 49 |
// CIR: %[[CUR:.*]] = cir.load{{.*}} %[[ITER]] |
| 50 |
// CIR: %[[CMP:.*]] = cir.cmp(ne, %[[CUR]], %[[END]]) |
| 51 |
// CIR: cir.condition(%[[CMP]]) |
| 52 |
// CIR: } |
| 53 |
// CIR: %[[C:.*]] = cir.get_member %[[THIS]][3] {name = "c"} |
| 54 |
// CIR: %[[ZERO:.*]] = cir.const #cir.zero : !cir.complex<!cir.float> |
| 55 |
// CIR: cir.store{{.*}} %[[ZERO]], %[[C]] |
| 56 |
// CIR: %[[BF:.*]] = cir.get_member %[[THIS]][4] {name = "bf"} |
| 57 |
// CIR: %[[ZERO:.*]] = cir.const #cir.int<0> : !u32i |
| 58 |
// CIR: %[[BF_VAL:.*]] = cir.set_bitfield{{.*}} (#bfi_bf, %[[BF]] : !cir.ptr<!u8i>, %[[ZERO]] : !u32i) |
| 59 |
|
| 60 |
// LLVM: define{{.*}} void @_ZN8ZeroInitC2Ev(ptr %[[THIS_ARG:.*]]) |
| 61 |
// LLVM: %[[THIS_ALLOCA:.*]] = alloca ptr |
| 62 |
// LLVM: %[[ITER:.*]] = alloca ptr |
| 63 |
// LLVM: %[[THIS:.*]] = load ptr, ptr %[[THIS_ALLOCA]] |
| 64 |
// LLVM: %[[I:.*]] = getelementptr %struct.ZeroInit, ptr %[[THIS]], i32 0, i32 0 |
| 65 |
// LLVM: store i32 0, ptr %[[I]] |
| 66 |
// LLVM: %[[P:.*]] = getelementptr %struct.ZeroInit, ptr %[[THIS]], i32 0, i32 1 |
| 67 |
// LLVM: %[[P_A:.*]] = getelementptr %struct.Pair, ptr %[[P]], i32 0, i32 0 |
| 68 |
// LLVM: store i32 0, ptr %[[P_A]] |
| 69 |
// LLVM: %[[P_B:.*]] = getelementptr %struct.Pair, ptr %[[P]], i32 0, i32 1 |
| 70 |
// LLVM: store i32 0, ptr %[[P_B]] |
| 71 |
// LLVM: %[[ARR:.*]] = getelementptr %struct.ZeroInit, ptr %[[THIS]], i32 0, i32 2 |
| 72 |
// LLVM: %[[ARR_BEGIN:.*]] = getelementptr i32, ptr %[[ARR]], i32 0 |
| 73 |
// LLVM: store ptr %[[ARR_BEGIN]], ptr %[[ITER]] |
| 74 |
// LLVM: %[[ARR_END:.*]] = getelementptr i32, ptr %[[ARR_BEGIN]], i64 4 |
| 75 |
// LLVM: br label %[[LOOP_BODY:.*]] |
| 76 |
// LLVM: [[LOOP_COND:.*]]: |
| 77 |
// LLVM: %[[CUR:.*]] = load ptr, ptr %[[ITER]] |
| 78 |
// LLVM: %[[CMP:.*]] = icmp ne ptr %[[CUR]], %[[ARR_END]] |
| 79 |
// LLVM: br i1 %[[CMP]], label %[[LOOP_BODY]], label %[[LOOP_END:.*]] |
| 80 |
// LLVM: [[LOOP_BODY]]: |
| 81 |
// LLVM: %[[CUR:.*]] = load ptr, ptr %[[ITER]] |
| 82 |
// LLVM: store i32 0, ptr %[[CUR]] |
| 83 |
// LLVM: %[[NEXT:.*]] = getelementptr i32, ptr %[[CUR]], i64 1 |
| 84 |
// LLVM: store ptr %[[NEXT]], ptr %[[ITER]] |
| 85 |
// LLVM: br label %[[LOOP_COND]] |
| 86 |
// LLVM: [[LOOP_END]]: |
| 87 |
// LLVM: %[[C:.*]] = getelementptr %struct.ZeroInit, ptr %[[THIS]], i32 0, i32 3 |
| 88 |
// LLVM: store { float, float } zeroinitializer, ptr %[[C]] |
| 89 |
// LLVM: %[[BF:.*]] = getelementptr %struct.ZeroInit, ptr %[[THIS]], i32 0, i32 4 |
| 90 |
// LLVM: store i8 0, ptr %[[BF]] |
| 91 |
|
| 92 |
// OGCG: define{{.*}} void @_ZN8ZeroInitC2Ev(ptr {{.*}} %[[THIS_ARG:.*]]) |
| 93 |
// OGCG: %[[THIS:.*]] = load ptr, ptr %[[THIS_ALLOCA:.*]] |
| 94 |
// OGCG: %[[I:.*]] = getelementptr inbounds nuw %struct.ZeroInit, ptr %[[THIS]], i32 0, i32 0 |
| 95 |
// OGCG: store i32 0, ptr %[[I]] |
| 96 |
// OGCG: %[[P:.*]] = getelementptr inbounds nuw %struct.ZeroInit, ptr %[[THIS]], i32 0, i32 1 |
| 97 |
// OGCG: %[[P_A:.*]] = getelementptr inbounds nuw %struct.Pair, ptr %[[P]], i32 0, i32 0 |
| 98 |
// OGCG: store i32 0, ptr %[[P_A]] |
| 99 |
// OGCG: %[[P_B:.*]] = getelementptr inbounds nuw %struct.Pair, ptr %[[P]], i32 0, i32 1 |
| 100 |
// OGCG: store i32 0, ptr %[[P_B]] |
| 101 |
// OGCG: %[[ARR:.*]] = getelementptr inbounds nuw %struct.ZeroInit, ptr %[[THIS]], i32 0, i32 2 |
| 102 |
// OGCG: %[[ARR_END:.*]] = getelementptr inbounds i32, ptr %[[ARR]], i64 4 |
| 103 |
// OGCG: br label %[[LOOP_BODY:.*]] |
| 104 |
// OGCG: [[LOOP_BODY]]: |
| 105 |
// OGCG: %[[CUR:.*]] = phi ptr [ %[[ARR]], %entry ], [ %[[NEXT:.*]], %[[LOOP_BODY]] ] |
| 106 |
// OGCG: store i32 0, ptr %[[CUR]] |
| 107 |
// OGCG: %[[NEXT]] = getelementptr inbounds i32, ptr %[[CUR]], i64 1 |
| 108 |
// OGCG: %[[CMP:.*]] = icmp eq ptr %[[NEXT]], %[[ARR_END]] |
| 109 |
// OGCG: br i1 %[[CMP]], label %[[LOOP_END:.*]], label %[[LOOP_BODY]] |
| 110 |
// OGCG: [[LOOP_END]]: |
| 111 |
// OGCG: %[[C:.*]] = getelementptr inbounds nuw %struct.ZeroInit, ptr %[[THIS]], i32 0, i32 3 |
| 112 |
// OGCG: %[[C_REAL_PTR:.*]] = getelementptr inbounds nuw { float, float }, ptr %[[C]], i32 0, i32 0 |
| 113 |
// OGCG: %[[C_IMAG_PTR:.*]] = getelementptr inbounds nuw { float, float }, ptr %[[C]], i32 0, i32 1 |
| 114 |
// OGCG: store float 0.000000e+00, ptr %[[C_REAL_PTR]] |
| 115 |
// OGCG: store float 0.000000e+00, ptr %[[C_IMAG_PTR]] |
| 116 |
// OGCG: %[[BF:.*]] = getelementptr inbounds nuw %struct.ZeroInit, ptr %[[THIS]], i32 0, i32 4 |
| 117 |
// OGCG: store i8 0, ptr %[[BF]] |
| 118 |
|
| 119 |
struct ValueInit { |
| 120 |
int i{1}; |
| 121 |
Pair p{2, 3}; |
| 122 |
int arr[4]{4, 5}; |
| 123 |
float _Complex c{6.0f, 7.0f}; |
| 124 |
unsigned bf : 8 {0xFF}; |
| 125 |
ValueInit() = default; |
| 126 |
}; |
| 127 |
|
| 128 |
// CIR: cir.func{{.*}} @_ZN9ValueInitC2Ev(%[[THIS_ARG:.*]]: !cir.ptr<!rec_ValueInit> {{.*}}) |
| 129 |
// CIR: %[[ITER:.*]] = cir.alloca {{.*}} ["arrayinit.temp"] |
| 130 |
// CIR: %[[THIS:.*]] = cir.load %[[THIS_ALLOCA:.*]] |
| 131 |
// CIR: %[[I:.*]] = cir.get_member %[[THIS]][0] {name = "i"} |
| 132 |
// CIR: %[[ONE:.*]] = cir.const #cir.int<1> : !s32i |
| 133 |
// CIR: cir.store{{.*}} %[[ONE]], %[[I]] |
| 134 |
// CIR: %[[P:.*]] = cir.get_member %[[THIS]][1] {name = "p"} |
| 135 |
// CIR: %[[P_A:.*]] = cir.get_member %[[P]][0] {name = "a"} |
| 136 |
// CIR: %[[TWO:.*]] = cir.const #cir.int<2> : !s32i |
| 137 |
// CIR: cir.store{{.*}} %[[TWO]], %[[P_A]] |
| 138 |
// CIR: %[[P_B:.*]] = cir.get_member %[[P]][1] {name = "b"} |
| 139 |
// CIR: %[[THREE:.*]] = cir.const #cir.int<3> : !s32i |
| 140 |
// CIR: cir.store{{.*}} %[[THREE]], %[[P_B]] |
| 141 |
// CIR: %[[ARR:.*]] = cir.get_member %[[THIS]][2] {name = "arr"} |
| 142 |
// CIR: %[[ARR_BEGIN:.*]] = cir.cast array_to_ptrdecay %[[ARR]] : !cir.ptr<!cir.array<!s32i x 4>> -> !cir.ptr<!s32i> |
| 143 |
// CIR: %[[FOUR:.*]] = cir.const #cir.int<4> : !s32i |
| 144 |
// CIR: cir.store{{.*}} %[[FOUR]], %[[ARR_BEGIN]] |
| 145 |
// CIR: %[[ONE:.*]] = cir.const #cir.int<1> : !s64i |
| 146 |
// CIR: %[[SECOND:.*]] = cir.ptr_stride %[[ARR_BEGIN]], %[[ONE]] : (!cir.ptr<!s32i>, !s64i) |
| 147 |
// CIR: %[[FIVE:.*]] = cir.const #cir.int<5> : !s32i |
| 148 |
// CIR: cir.store{{.*}} %[[FIVE]], %[[SECOND]] |
| 149 |
// CIR: %[[ONE:.*]] = cir.const #cir.int<1> : !s64i |
| 150 |
// CIR: %[[NEXT:.*]] = cir.ptr_stride %[[SECOND]], %[[ONE]] : (!cir.ptr<!s32i>, !s64i) |
| 151 |
// CIR: cir.store{{.*}} %[[NEXT]], %[[ITER]] |
| 152 |
// CIR: %[[FOUR:.*]] = cir.const #cir.int<4> : !s64i |
| 153 |
// CIR: %[[END:.*]] = cir.ptr_stride %[[ARR_BEGIN]], %[[FOUR]] : (!cir.ptr<!s32i>, !s64i) |
| 154 |
// CIR: cir.do { |
| 155 |
// CIR: %[[CUR:.*]] = cir.load{{.*}} %[[ITER]] |
| 156 |
// CIR: %[[ZERO:.*]] = cir.const #cir.int<0> : !s32i |
| 157 |
// CIR: cir.store{{.*}} %[[ZERO]], %[[CUR]] |
| 158 |
// CIR: %[[ONE:.*]] = cir.const #cir.int<1> : !s64i |
| 159 |
// CIR: %[[NEXT:.*]] = cir.ptr_stride %[[CUR]], %[[ONE]] : (!cir.ptr<!s32i>, !s64i) |
| 160 |
// CIR: cir.store{{.*}} %[[NEXT]], %[[ITER]] |
| 161 |
// CIR: cir.yield |
| 162 |
// CIR: } while { |
| 163 |
// CIR: %[[CUR:.*]] = cir.load{{.*}} %[[ITER]] |
| 164 |
// CIR: %[[CMP:.*]] = cir.cmp(ne, %[[CUR]], %[[END]]) |
| 165 |
// CIR: cir.condition(%[[CMP]]) |
| 166 |
// CIR: } |
| 167 |
// CIR: %[[C:.*]] = cir.get_member %[[THIS]][3] {name = "c"} |
| 168 |
// CIR: %[[FOUR_FIVEI:.*]] = cir.const #cir.const_complex<#cir.fp<6.000000e+00> : !cir.float, #cir.fp<7.000000e+00> |
| 169 |
// CIR: cir.store{{.*}} %[[FOUR_FIVEI]], %[[C]] |
| 170 |
// CIR: %[[BF:.*]] = cir.get_member %[[THIS]][4] {name = "bf"} |
| 171 |
// CIR: %[[FF:.*]] = cir.const #cir.int<255> : !u32i |
| 172 |
// CIR: %[[BF_VAL:.*]] = cir.set_bitfield{{.*}} (#bfi_bf, %[[BF]] : !cir.ptr<!u8i>, %[[FF]] : !u32i) |
| 173 |
|
| 174 |
// LLVM: define{{.*}} void @_ZN9ValueInitC2Ev(ptr %[[THIS_ARG:.*]]) |
| 175 |
// LLVM: %[[THIS_ALLOCA:.*]] = alloca ptr |
| 176 |
// LLVM: %[[ITER:.*]] = alloca ptr |
| 177 |
// LLVM: %[[THIS:.*]] = load ptr, ptr %[[THIS_ALLOCA]] |
| 178 |
// LLVM: %[[I:.*]] = getelementptr %struct.ValueInit, ptr %[[THIS]], i32 0, i32 0 |
| 179 |
// LLVM: store i32 1, ptr %[[I]] |
| 180 |
// LLVM: %[[P:.*]] = getelementptr %struct.ValueInit, ptr %[[THIS]], i32 0, i32 1 |
| 181 |
// LLVM: %[[P_A:.*]] = getelementptr %struct.Pair, ptr %[[P]], i32 0, i32 0 |
| 182 |
// LLVM: store i32 2, ptr %[[P_A]] |
| 183 |
// LLVM: %[[P_B:.*]] = getelementptr %struct.Pair, ptr %[[P]], i32 0, i32 1 |
| 184 |
// LLVM: store i32 3, ptr %[[P_B]] |
| 185 |
// LLVM: %[[ARR:.*]] = getelementptr %struct.ValueInit, ptr %[[THIS]], i32 0, i32 2 |
| 186 |
// LLVM: %[[ARR_BEGIN:.*]] = getelementptr i32, ptr %[[ARR]], i32 0 |
| 187 |
// LLVM: store i32 4, ptr %[[ARR_BEGIN]] |
| 188 |
// LLVM: %[[ARR_1:.*]] = getelementptr i32, ptr %[[ARR_BEGIN]], i64 1 |
| 189 |
// LLVM: store i32 5, ptr %[[ARR_1]] |
| 190 |
// LLVM: %[[ARR_2:.*]] = getelementptr i32, ptr %[[ARR_1]], i64 1 |
| 191 |
// LLVM: store ptr %[[ARR_2]], ptr %[[ITER]] |
| 192 |
// LLVM: %[[ARR_END:.*]] = getelementptr i32, ptr %[[ARR_BEGIN]], i64 4 |
| 193 |
// LLVM: br label %[[LOOP_BODY:.*]] |
| 194 |
// LLVM: [[LOOP_COND:.*]]: |
| 195 |
// LLVM: %[[CUR:.*]] = load ptr, ptr %[[ITER]] |
| 196 |
// LLVM: %[[CMP:.*]] = icmp ne ptr %[[CUR]], %[[ARR_END]] |
| 197 |
// LLVM: br i1 %[[CMP]], label %[[LOOP_BODY]], label %[[LOOP_END:.*]] |
| 198 |
// LLVM: [[LOOP_BODY]]: |
| 199 |
// LLVM: %[[CUR:.*]] = load ptr, ptr %[[ITER]] |
| 200 |
// LLVM: store i32 0, ptr %[[CUR]] |
| 201 |
// LLVM: %[[NEXT:.*]] = getelementptr i32, ptr %[[CUR]], i64 1 |
| 202 |
// LLVM: store ptr %[[NEXT]], ptr %[[ITER]] |
| 203 |
// LLVM: br label %[[LOOP_COND]] |
| 204 |
// LLVM: [[LOOP_END]]: |
| 205 |
// LLVM: %[[C:.*]] = getelementptr %struct.ValueInit, ptr %[[THIS]], i32 0, i32 3 |
| 206 |
// LLVM: store { float, float } { float 6.000000e+00, float 7.000000e+00 }, ptr %[[C]] |
| 207 |
// LLVM: %[[BF:.*]] = getelementptr %struct.ValueInit, ptr %[[THIS]], i32 0, i32 4 |
| 208 |
// LLVM: store i8 -1, ptr %[[BF]] |
| 209 |
|
| 210 |
// OGCG: define{{.*}} void @_ZN9ValueInitC2Ev(ptr {{.*}} %[[THIS_ARG:.*]]) |
| 211 |
// OGCG: %[[THIS:.*]] = load ptr, ptr %[[THIS_ALLOCA:.*]] |
| 212 |
// OGCG: %[[I:.*]] = getelementptr inbounds nuw %struct.ValueInit, ptr %[[THIS]], i32 0, i32 0 |
| 213 |
// OGCG: store i32 1, ptr %[[I]] |
| 214 |
// OGCG: %[[P:.*]] = getelementptr inbounds nuw %struct.ValueInit, ptr %[[THIS]], i32 0, i32 1 |
| 215 |
// OGCG: %[[P_A:.*]] = getelementptr inbounds nuw %struct.Pair, ptr %[[P]], i32 0, i32 0 |
| 216 |
// OGCG: store i32 2, ptr %[[P_A]] |
| 217 |
// OGCG: %[[P_B:.*]] = getelementptr inbounds nuw %struct.Pair, ptr %[[P]], i32 0, i32 1 |
| 218 |
// OGCG: store i32 3, ptr %[[P_B]] |
| 219 |
// OGCG: %[[ARR:.*]] = getelementptr inbounds nuw %struct.ValueInit, ptr %[[THIS]], i32 0, i32 2 |
| 220 |
// OGCG: store i32 4, ptr %[[ARR]] |
| 221 |
// OGCG: %[[ARR_1:.*]] = getelementptr inbounds i32, ptr %[[ARR]], i64 1 |
| 222 |
// OGCG: store i32 5, ptr %[[ARR_1]] |
| 223 |
// OGCG: %[[ARR_BEGIN:.*]] = getelementptr inbounds i32, ptr %[[ARR]], i64 2 |
| 224 |
// OGCG: %[[ARR_END:.*]] = getelementptr inbounds i32, ptr %[[ARR]], i64 4 |
| 225 |
// OGCG: br label %[[LOOP_BODY:.*]] |
| 226 |
// OGCG: [[LOOP_BODY]]: |
| 227 |
// OGCG: %[[CUR:.*]] = phi ptr [ %[[ARR_BEGIN]], %entry ], [ %[[NEXT:.*]], %[[LOOP_BODY]] ] |
| 228 |
// OGCG: store i32 0, ptr %[[CUR]] |
| 229 |
// OGCG: %[[NEXT]] = getelementptr inbounds i32, ptr %[[CUR]], i64 1 |
| 230 |
// OGCG: %[[CMP:.*]] = icmp eq ptr %[[NEXT]], %[[ARR_END]] |
| 231 |
// OGCG: br i1 %[[CMP]], label %[[LOOP_END:.*]], label %[[LOOP_BODY]] |
| 232 |
// OGCG: [[LOOP_END]]: |
| 233 |
// OGCG: %[[C:.*]] = getelementptr inbounds nuw %struct.ValueInit, ptr %[[THIS]], i32 0, i32 3 |
| 234 |
// OGCG: %[[C_REAL_PTR:.*]] = getelementptr inbounds nuw { float, float }, ptr %[[C]], i32 0, i32 0 |
| 235 |
// OGCG: %[[C_IMAG_PTR:.*]] = getelementptr inbounds nuw { float, float }, ptr %[[C]], i32 0, i32 1 |
| 236 |
// OGCG: store float 6.000000e+00, ptr %[[C_REAL_PTR]] |
| 237 |
// OGCG: store float 7.000000e+00, ptr %[[C_IMAG_PTR]] |
| 238 |
// OGCG: %[[BF:.*]] = getelementptr inbounds nuw %struct.ValueInit, ptr %[[THIS]], i32 0, i32 4 |
| 239 |
// OGCG: store i8 -1, ptr %[[BF]] |
| 240 |
|
| 241 |
void use_structs() { |
| 242 |
ZeroInit zi; |
| 243 |
ValueInit vi; |
| 244 |
} |