annotate clang/test/CodeGenObjC/block-6.m @ 206:f17a3b42b08b

Added tag before-12 for changeset b7591485f4cd
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 07 Jun 2021 21:25:57 +0900
parents 1d019706d866
children 2e18cbf3894f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
150
anatofuz
parents:
diff changeset
1 // RUN: %clang_cc1 %s -emit-llvm -o - -fblocks -triple x86_64-apple-darwin10 -fobjc-runtime=macosx-fragile-10.5 | FileCheck %s
anatofuz
parents:
diff changeset
2 // rdar://8893785
anatofuz
parents:
diff changeset
3
anatofuz
parents:
diff changeset
4 void MYFUNC() {
anatofuz
parents:
diff changeset
5 // CHECK-LABEL: define void @MYFUNC()
anatofuz
parents:
diff changeset
6 // CHECK: [[OBSERVER_SLOT:%.*]] = alloca [[OBSERVER_T:%.*]], align 8
anatofuz
parents:
diff changeset
7
anatofuz
parents:
diff changeset
8 // CHECK: [[T0:%.*]] = getelementptr inbounds [[OBSERVER_T]], [[OBSERVER_T]]* [[OBSERVER_SLOT]], i32 0, i32 1
anatofuz
parents:
diff changeset
9 // CHECK: store [[OBSERVER_T]]* [[OBSERVER_SLOT]], [[OBSERVER_T]]** [[T0]]
anatofuz
parents:
diff changeset
10
anatofuz
parents:
diff changeset
11 // CHECK: [[T1:%.*]] = bitcast i8* ()*
anatofuz
parents:
diff changeset
12 // CHECK: [[FORWARDING:%.*]] = getelementptr inbounds [[OBSERVER_T]], [[OBSERVER_T]]* [[OBSERVER_SLOT]], i32 0, i32 1
anatofuz
parents:
diff changeset
13 // CHECK-NEXT: [[T0:%.*]] = load [[OBSERVER_T]]*, [[OBSERVER_T]]** [[FORWARDING]]
anatofuz
parents:
diff changeset
14 // CHECK-NEXT: [[OBSERVER:%.*]] = getelementptr inbounds [[OBSERVER_T]], [[OBSERVER_T]]* [[T0]], i32 0, i32 6
anatofuz
parents:
diff changeset
15 // CHECK-NEXT: store i8* [[T1]], i8** [[OBSERVER]]
anatofuz
parents:
diff changeset
16 __block id observer = ^{ return observer; };
anatofuz
parents:
diff changeset
17 }
anatofuz
parents:
diff changeset
18