2017-05-06 02:39:06 +08:00
|
|
|
// RUN: %clang_cc1 -triple x86_64-apple-darwin -fblocks -fobjc-arc -fobjc-runtime-has-weak -emit-llvm %s -o - | FileCheck -check-prefix CHECK-LP64 %s
|
|
|
|
// RUN: %clang_cc1 -triple x86_64-apple-darwin -O1 -fblocks -fobjc-arc -fobjc-runtime-has-weak -emit-llvm %s -o - | FileCheck -check-prefix CHECK-LP64-OPT %s
|
2011-06-16 07:02:42 +08:00
|
|
|
// rdar://9503326
|
2011-06-17 14:42:21 +08:00
|
|
|
// rdar://9606600
|
2011-06-16 07:02:42 +08:00
|
|
|
|
2011-06-17 14:42:21 +08:00
|
|
|
extern void use(id);
|
|
|
|
extern void use_block(void (^)(void));
|
2011-07-27 09:07:15 +08:00
|
|
|
|
|
|
|
struct NSFastEnumerationState;
|
|
|
|
@interface NSArray
|
|
|
|
- (unsigned long) countByEnumeratingWithState: (struct NSFastEnumerationState*) state
|
|
|
|
objects: (id*) buffer
|
|
|
|
count: (unsigned long) bufferSize;
|
|
|
|
@end;
|
2011-06-16 07:02:42 +08:00
|
|
|
|
2011-06-17 14:42:21 +08:00
|
|
|
void test0(NSArray *array) {
|
|
|
|
// 'x' should be initialized without a retain.
|
|
|
|
// We should actually do a non-constant capture, and that
|
|
|
|
// capture should require a retain.
|
|
|
|
for (id x in array) {
|
|
|
|
use_block(^{ use(x); });
|
|
|
|
}
|
2011-06-16 07:02:42 +08:00
|
|
|
}
|
|
|
|
|
2013-08-15 14:47:53 +08:00
|
|
|
// CHECK-LP64-LABEL: define void @test0(
|
2011-07-27 09:07:15 +08:00
|
|
|
// CHECK-LP64: [[ARRAY:%.*]] = alloca [[ARRAY_T:%.*]]*,
|
2017-04-14 09:00:03 +08:00
|
|
|
// CHECK-LP64-NEXT: [[X:%.*]] = alloca i8*,
|
2011-06-17 14:42:21 +08:00
|
|
|
// CHECK-LP64-NEXT: [[STATE:%.*]] = alloca [[STATE_T:%.*]],
|
2011-07-27 09:07:15 +08:00
|
|
|
// CHECK-LP64-NEXT: [[BUFFER:%.*]] = alloca [16 x i8*], align 8
|
2011-07-10 01:41:47 +08:00
|
|
|
// CHECK-LP64-NEXT: [[BLOCK:%.*]] = alloca [[BLOCK_T:<{.*}>]],
|
2011-06-17 14:42:21 +08:00
|
|
|
|
2017-05-06 02:39:06 +08:00
|
|
|
// CHECK-LP64-OPT-LABEL: define void @test0
|
|
|
|
// CHECK-LP64-OPT: [[STATE:%.*]] = alloca [[STATE_T:%.*]], align 8
|
|
|
|
// CHECK-LP64-OPT-NEXT: [[BUFFER:%.*]] = alloca [16 x i8*], align 8
|
|
|
|
// CHECK-LP64-OPT-NEXT: [[BLOCK:%.*]] = alloca [[BLOCK_T:<{.*}>]], align 8
|
|
|
|
|
2011-07-27 09:07:15 +08:00
|
|
|
// Initialize 'array'.
|
2013-02-21 08:40:10 +08:00
|
|
|
// CHECK-LP64-NEXT: store [[ARRAY_T]]* null, [[ARRAY_T]]** [[ARRAY]]
|
|
|
|
// CHECK-LP64-NEXT: [[ZERO:%.*]] = bitcast [[ARRAY_T]]** [[ARRAY]] to i8**
|
|
|
|
// CHECK-LP64-NEXT: [[ONE:%.*]] = bitcast [[ARRAY_T]]* {{%.*}} to i8*
|
2013-02-22 17:10:20 +08:00
|
|
|
// CHECK-LP64-NEXT: call void @objc_storeStrong(i8** [[ZERO]], i8* [[ONE]]) [[NUW:#[0-9]+]]
|
2011-07-27 09:07:15 +08:00
|
|
|
|
|
|
|
// Initialize the fast enumaration state.
|
|
|
|
// CHECK-LP64-NEXT: [[T0:%.*]] = bitcast [[STATE_T]]* [[STATE]] to i8*
|
Change memcpy/memove/memset to have dest and source alignment attributes (Step 1).
Summary:
Upstream LLVM is changing the the prototypes of the @llvm.memcpy/memmove/memset
intrinsics. This change updates the Clang tests for this change.
The @llvm.memcpy/memmove/memset intrinsics currently have an explicit argument
which is required to be a constant integer. It represents the alignment of the
dest (and source), and so must be the minimum of the actual alignment of the
two.
This change removes the alignment argument in favour of placing the alignment
attribute on the source and destination pointers of the memory intrinsic call.
For example, code which used to read:
call void @llvm.memcpy.p0i8.p0i8.i32(i8* %dest, i8* %src, i32 100, i32 4, i1 false)
will now read
call void @llvm.memcpy.p0i8.p0i8.i32(i8* align 4 %dest, i8* align 4 %src, i32 100, i1 false)
At this time the source and destination alignments must be the same (Step 1).
Step 2 of the change, to be landed shortly, will relax that contraint and allow
the source and destination to have different alignments.
llvm-svn: 322964
2018-01-20 01:12:54 +08:00
|
|
|
// CHECK-LP64-NEXT: call void @llvm.memset.p0i8.i64(i8* align 8 [[T0]], i8 0, i64 64, i1 false)
|
2011-07-27 09:07:15 +08:00
|
|
|
|
|
|
|
// Evaluate the collection expression and retain.
|
2015-02-28 05:19:58 +08:00
|
|
|
// CHECK-LP64-NEXT: [[T0:%.*]] = load [[ARRAY_T]]*, [[ARRAY_T]]** [[ARRAY]], align 8
|
2011-07-27 09:07:15 +08:00
|
|
|
// CHECK-LP64-NEXT: [[T1:%.*]] = bitcast [[ARRAY_T]]* [[T0]] to i8*
|
|
|
|
// CHECK-LP64-NEXT: [[T2:%.*]] = call i8* @objc_retain(i8* [[T1]])
|
|
|
|
// CHECK-LP64-NEXT: [[SAVED_ARRAY:%.*]] = bitcast i8* [[T2]] to [[ARRAY_T]]*
|
|
|
|
|
|
|
|
// Call the enumeration method.
|
2015-02-28 05:19:58 +08:00
|
|
|
// CHECK-LP64-NEXT: [[T0:%.*]] = load i8*, i8** @OBJC_SELECTOR_REFERENCES_
|
2011-07-27 09:07:15 +08:00
|
|
|
// CHECK-LP64-NEXT: [[T1:%.*]] = bitcast [[ARRAY_T]]* [[SAVED_ARRAY]] to i8*
|
|
|
|
// CHECK-LP64-NEXT: [[SIZE:%.*]] = call i64 bitcast (i8* (i8*, i8*, ...)* @objc_msgSend to i64 (i8*, i8*, [[STATE_T]]*, [16 x i8*]*, i64)*)(i8* [[T1]], i8* [[T0]], [[STATE_T]]* [[STATE]], [16 x i8*]* [[BUFFER]], i64 16)
|
|
|
|
|
|
|
|
// Check for a nonzero result.
|
|
|
|
// CHECK-LP64-NEXT: [[T0:%.*]] = icmp eq i64 [[SIZE]], 0
|
|
|
|
// CHECK-LP64-NEXT: br i1 [[T0]]
|
|
|
|
|
2015-02-28 03:18:17 +08:00
|
|
|
// CHECK-LP64: [[T0:%.*]] = getelementptr inbounds [[STATE_T]], [[STATE_T]]* [[STATE]], i32 0, i32 1
|
2015-02-28 05:19:58 +08:00
|
|
|
// CHECK-LP64-NEXT: [[T1:%.*]] = load i8**, i8*** [[T0]]
|
2015-02-28 03:18:17 +08:00
|
|
|
// CHECK-LP64-NEXT: [[T2:%.*]] = getelementptr i8*, i8** [[T1]], i64
|
2015-02-28 05:19:58 +08:00
|
|
|
// CHECK-LP64-NEXT: [[T3:%.*]] = load i8*, i8** [[T2]]
|
2011-06-17 14:42:21 +08:00
|
|
|
// CHECK-LP64-NEXT: store i8* [[T3]], i8** [[X]]
|
|
|
|
|
2015-02-28 03:18:17 +08:00
|
|
|
// CHECK-LP64: [[D0:%.*]] = getelementptr inbounds [[BLOCK_T]], [[BLOCK_T]]* [[BLOCK]], i32 0, i32 5
|
|
|
|
// CHECK-LP64: [[T0:%.*]] = getelementptr inbounds [[BLOCK_T]], [[BLOCK_T]]* [[BLOCK]], i32 0, i32 5
|
2015-02-28 05:19:58 +08:00
|
|
|
// CHECK-LP64-NEXT: [[T1:%.*]] = load i8*, i8** [[X]]
|
2017-05-09 09:20:05 +08:00
|
|
|
// CHECK-LP64-NEXT: [[T2:%.*]] = call i8* @objc_retain(i8* [[T1]])
|
|
|
|
// CHECK-LP64-NEXT: store i8* [[T2]], i8** [[T0]]
|
2017-04-29 02:50:57 +08:00
|
|
|
// CHECK-LP64-NEXT: [[BLOCK1:%.*]] = bitcast [[BLOCK_T]]* [[BLOCK]]
|
|
|
|
// CHECK-LP64-NEXT: call void @use_block(void ()* [[BLOCK1]])
|
2017-05-06 02:39:06 +08:00
|
|
|
// CHECK-LP64-NEXT: call void @objc_storeStrong(i8** [[D0]], i8* null)
|
|
|
|
// CHECK-LP64-NOT: call void (...) @clang.arc.use(i8* [[CAPTURE]])
|
|
|
|
|
|
|
|
// CHECK-LP64-OPT: [[D0:%.*]] = getelementptr inbounds [[BLOCK_T]], [[BLOCK_T]]* [[BLOCK]], i64 0, i32 5
|
|
|
|
// CHECK-LP64-OPT: [[CAPTURE:%.*]] = load i8*, i8** [[D0]]
|
|
|
|
// CHECK-LP64-OPT: call void (...) @clang.arc.use(i8* [[CAPTURE]])
|
2011-06-17 14:42:21 +08:00
|
|
|
|
2015-02-28 05:19:58 +08:00
|
|
|
// CHECK-LP64: [[T0:%.*]] = load i8*, i8** @OBJC_SELECTOR_REFERENCES_
|
2011-07-27 09:07:15 +08:00
|
|
|
// CHECK-LP64-NEXT: [[T1:%.*]] = bitcast [[ARRAY_T]]* [[SAVED_ARRAY]] to i8*
|
|
|
|
// CHECK-LP64-NEXT: [[SIZE:%.*]] = call i64 bitcast (i8* (i8*, i8*, ...)* @objc_msgSend to i64 (i8*, i8*, [[STATE_T]]*, [16 x i8*]*, i64)*)(i8* [[T1]], i8* [[T0]], [[STATE_T]]* [[STATE]], [16 x i8*]* [[BUFFER]], i64 16)
|
|
|
|
|
|
|
|
// Release the array.
|
|
|
|
// CHECK-LP64: [[T0:%.*]] = bitcast [[ARRAY_T]]* [[SAVED_ARRAY]] to i8*
|
|
|
|
// CHECK-LP64-NEXT: call void @objc_release(i8* [[T0]])
|
|
|
|
|
|
|
|
// Destroy 'array'.
|
2012-10-17 10:28:37 +08:00
|
|
|
// CHECK-LP64: [[T0:%.*]] = bitcast [[ARRAY_T]]** [[ARRAY]] to i8**
|
|
|
|
// CHECK-LP64-NEXT: call void @objc_storeStrong(i8** [[T0]], i8* null)
|
2011-07-27 09:07:15 +08:00
|
|
|
// CHECK-LP64-NEXT: ret void
|
|
|
|
|
2013-08-15 14:47:53 +08:00
|
|
|
// CHECK-LP64-LABEL: define internal void @__test0_block_invoke
|
2011-06-17 14:42:21 +08:00
|
|
|
// CHECK-LP64: [[BLOCK:%.*]] = bitcast i8* {{%.*}} to [[BLOCK_T]]*
|
2013-03-30 03:20:35 +08:00
|
|
|
// CHECK-LP64-NOT: ret
|
2015-02-28 03:18:17 +08:00
|
|
|
// CHECK-LP64: [[T0:%.*]] = getelementptr inbounds [[BLOCK_T]], [[BLOCK_T]]* [[BLOCK]], i32 0, i32 5
|
2015-02-28 05:19:58 +08:00
|
|
|
// CHECK-LP64-NEXT: [[T2:%.*]] = load i8*, i8** [[T0]], align 8
|
2011-06-17 14:42:21 +08:00
|
|
|
// CHECK-LP64-NEXT: call void @use(i8* [[T2]])
|
|
|
|
|
|
|
|
void test1(NSArray *array) {
|
|
|
|
for (__weak id x in array) {
|
|
|
|
use_block(^{ use(x); });
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-08-15 14:47:53 +08:00
|
|
|
// CHECK-LP64-LABEL: define void @test1(
|
2011-06-17 14:42:21 +08:00
|
|
|
// CHECK-LP64: alloca [[ARRAY_T:%.*]]*,
|
2017-04-14 09:00:03 +08:00
|
|
|
// CHECK-LP64-NEXT: [[X:%.*]] = alloca i8*,
|
2011-06-17 14:42:21 +08:00
|
|
|
// CHECK-LP64-NEXT: [[STATE:%.*]] = alloca [[STATE_T:%.*]],
|
|
|
|
// CHECK-LP64-NEXT: alloca [16 x i8*], align 8
|
2011-07-10 01:41:47 +08:00
|
|
|
// CHECK-LP64-NEXT: [[BLOCK:%.*]] = alloca [[BLOCK_T:<{.*}>]],
|
2011-06-17 14:42:21 +08:00
|
|
|
|
2015-02-28 03:18:17 +08:00
|
|
|
// CHECK-LP64: [[T0:%.*]] = getelementptr inbounds [[STATE_T]], [[STATE_T]]* [[STATE]], i32 0, i32 1
|
2015-02-28 05:19:58 +08:00
|
|
|
// CHECK-LP64-NEXT: [[T1:%.*]] = load i8**, i8*** [[T0]]
|
2015-02-28 03:18:17 +08:00
|
|
|
// CHECK-LP64-NEXT: [[T2:%.*]] = getelementptr i8*, i8** [[T1]], i64
|
2015-02-28 05:19:58 +08:00
|
|
|
// CHECK-LP64-NEXT: [[T3:%.*]] = load i8*, i8** [[T2]]
|
2011-06-17 14:42:21 +08:00
|
|
|
// CHECK-LP64-NEXT: call i8* @objc_initWeak(i8** [[X]], i8* [[T3]])
|
|
|
|
|
2015-02-28 03:18:17 +08:00
|
|
|
// CHECK-LP64: [[D0:%.*]] = getelementptr inbounds [[BLOCK_T]], [[BLOCK_T]]* [[BLOCK]], i32 0, i32 5
|
|
|
|
// CHECK-LP64: [[T0:%.*]] = getelementptr inbounds [[BLOCK_T]], [[BLOCK_T]]* [[BLOCK]], i32 0, i32 5
|
2015-10-22 02:06:31 +08:00
|
|
|
// CHECK-LP64-NEXT: call void @objc_copyWeak(i8** [[T0]], i8** [[X]])
|
2011-07-10 11:47:27 +08:00
|
|
|
// CHECK-LP64-NEXT: [[T1:%.*]] = bitcast [[BLOCK_T]]* [[BLOCK]] to
|
2011-07-10 13:39:13 +08:00
|
|
|
// CHECK-LP64: call void @use_block
|
2011-11-10 17:22:44 +08:00
|
|
|
// CHECK-LP64-NEXT: call void @objc_destroyWeak(i8** [[D0]])
|
|
|
|
// CHECK-LP64-NEXT: call void @objc_destroyWeak(i8** [[X]])
|
2011-07-27 09:07:15 +08:00
|
|
|
|
|
|
|
// rdar://problem/9817306
|
|
|
|
@interface Test2
|
|
|
|
- (NSArray *) array;
|
|
|
|
@end
|
|
|
|
void test2(Test2 *a) {
|
|
|
|
for (id x in a.array) {
|
|
|
|
use(x);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2013-08-15 14:47:53 +08:00
|
|
|
// CHECK-LP64-LABEL: define void @test2(
|
2011-07-27 09:07:15 +08:00
|
|
|
// CHECK-LP64: [[T0:%.*]] = call [[ARRAY_T]]* bitcast (i8* (i8*, i8*, ...)* @objc_msgSend to [[ARRAY_T]]* (i8*, i8*)*)(
|
|
|
|
// CHECK-LP64-NEXT: [[T1:%.*]] = bitcast [[ARRAY_T]]* [[T0]] to i8*
|
|
|
|
// CHECK-LP64-NEXT: [[T2:%.*]] = call i8* @objc_retainAutoreleasedReturnValue(i8* [[T1]])
|
|
|
|
// CHECK-LP64-NEXT: [[COLL:%.*]] = bitcast i8* [[T2]] to [[ARRAY_T]]*
|
|
|
|
|
|
|
|
// Make sure it's not immediately released before starting the iteration.
|
2015-02-28 05:19:58 +08:00
|
|
|
// CHECK-LP64-NEXT: load i8*, i8** @OBJC_SELECTOR_REFERENCES_
|
2011-07-27 09:07:15 +08:00
|
|
|
// CHECK-LP64-NEXT: [[T0:%.*]] = bitcast [[ARRAY_T]]* [[COLL]] to i8*
|
|
|
|
// CHECK-LP64-NEXT: @objc_msgSend
|
|
|
|
|
|
|
|
// This bitcast is for the mutation check.
|
|
|
|
// CHECK-LP64: [[T0:%.*]] = bitcast [[ARRAY_T]]* [[COLL]] to i8*
|
|
|
|
// CHECK-LP64-NEXT: @objc_enumerationMutation
|
|
|
|
|
|
|
|
// This bitcast is for the 'next' message send.
|
|
|
|
// CHECK-LP64: [[T0:%.*]] = bitcast [[ARRAY_T]]* [[COLL]] to i8*
|
|
|
|
// CHECK-LP64-NEXT: @objc_msgSend
|
|
|
|
|
|
|
|
// This bitcast is for the final release.
|
|
|
|
// CHECK-LP64: [[T0:%.*]] = bitcast [[ARRAY_T]]* [[COLL]] to i8*
|
|
|
|
// CHECK-LP64-NEXT: call void @objc_release(i8* [[T0]])
|
2011-08-05 08:14:38 +08:00
|
|
|
|
|
|
|
|
|
|
|
// Check that the 'continue' label is positioned appropriately
|
|
|
|
// relative to the collection clenaup.
|
|
|
|
void test3(NSArray *array) {
|
|
|
|
for (id x in array) {
|
|
|
|
if (!x) continue;
|
|
|
|
use(x);
|
|
|
|
}
|
|
|
|
|
2013-08-15 14:47:53 +08:00
|
|
|
// CHECK-LP64-LABEL: define void @test3(
|
2011-08-05 08:14:38 +08:00
|
|
|
// CHECK-LP64: [[ARRAY:%.*]] = alloca [[ARRAY_T]]*, align 8
|
2017-04-14 09:00:03 +08:00
|
|
|
// CHECK-LP64-NEXT: [[X:%.*]] = alloca i8*, align 8
|
2015-02-28 05:19:58 +08:00
|
|
|
// CHECK-LP64: [[T0:%.*]] = load i8*, i8** [[X]], align 8
|
2011-08-05 08:14:38 +08:00
|
|
|
// CHECK-LP64-NEXT: [[T1:%.*]] = icmp ne i8* [[T0]], null
|
|
|
|
// CHECK-LP64-NEXT: br i1 [[T1]],
|
|
|
|
// CHECK-LP64: br label [[L:%[^ ]+]]
|
2015-02-28 05:19:58 +08:00
|
|
|
// CHECK-LP64: [[T0:%.*]] = load i8*, i8** [[X]], align 8
|
2011-08-05 08:14:38 +08:00
|
|
|
// CHECK-LP64-NEXT: call void @use(i8* [[T0]])
|
|
|
|
// CHECK-LP64-NEXT: br label [[L]]
|
|
|
|
}
|
2013-02-22 17:10:20 +08:00
|
|
|
|
2016-04-13 07:10:58 +08:00
|
|
|
@interface NSObject @end
|
|
|
|
|
|
|
|
@interface I1 : NSObject
|
|
|
|
- (NSArray *) foo1:(void (^)(void))block;
|
|
|
|
- (void) foo2;
|
|
|
|
@end
|
|
|
|
|
|
|
|
NSArray *array4;
|
|
|
|
|
|
|
|
@implementation I1 : NSObject
|
|
|
|
- (NSArray *) foo1:(void (^)(void))block {
|
|
|
|
block();
|
|
|
|
return array4;
|
|
|
|
}
|
|
|
|
|
|
|
|
- (void) foo2 {
|
|
|
|
for (id x in [self foo1:^{ use(self); }]) {
|
|
|
|
use(x);
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@end
|
|
|
|
|
|
|
|
// CHECK-LP64-LABEL: define internal void @"\01-[I1 foo2]"(
|
|
|
|
// CHECK-LP64: [[SELF_ADDR:%.*]] = alloca [[TY:%.*]]*,
|
|
|
|
// CHECK-LP64: [[BLOCK:%.*]] = alloca <{ i8*, i32, i32, i8*, %struct.__block_descriptor*, [[TY]]* }>,
|
|
|
|
// CHECK-LP64: store [[TY]]* %self, [[TY]]** [[SELF_ADDR]]
|
|
|
|
// CHECK-LP64: [[T0:%.*]] = getelementptr inbounds <{ i8*, i32, i32, i8*, %struct.__block_descriptor*, [[TY]]* }>, <{ i8*, i32, i32, i8*, %struct.__block_descriptor*, [[TY]]* }>* [[BLOCK]], i32 0, i32 5
|
|
|
|
// CHECK-LP64: [[BC:%.*]] = getelementptr inbounds <{ i8*, i32, i32, i8*, %struct.__block_descriptor*, [[TY]]* }>, <{ i8*, i32, i32, i8*, %struct.__block_descriptor*, [[TY]]* }>* [[BLOCK]], i32 0, i32 5
|
|
|
|
// CHECK-LP64: [[T1:%.*]] = load [[TY]]*, [[TY]]** [[SELF_ADDR]]
|
2017-05-09 09:20:05 +08:00
|
|
|
// CHECK-LP64: [[T2:%.*]] = bitcast [[TY]]* [[T1]] to i8*
|
|
|
|
// CHECK-LP64: call i8* @objc_retain(i8* [[T2]])
|
2016-04-13 07:10:58 +08:00
|
|
|
|
2017-05-06 02:39:06 +08:00
|
|
|
// CHECK-LP64-OPT-LABEL: define internal void @"\01-[I1 foo2]"(
|
|
|
|
// CHECK-LP64-OPT: [[TY:%.*]]* %self
|
|
|
|
// CHECK-LP64-OPT: [[BLOCK:%.*]] = alloca [[BLOCK_T:<{.*}>]],
|
|
|
|
// CHECK-LP64-OPT: [[T0:%.*]] = getelementptr inbounds [[BLOCK_T]], [[BLOCK_T]]* [[BLOCK]], i64 0, i32 5
|
|
|
|
|
|
|
|
// CHECK-LP64: [[T5:%.*]] = bitcast [[TY]]** [[T0]] to i8**
|
|
|
|
// CHECK-LP64: call void @objc_storeStrong(i8** [[T5]], i8* null)
|
|
|
|
// CHECK-LP64-NOT: call void (...) @clang.arc.use([[TY]]* [[T5]])
|
2016-04-13 07:10:58 +08:00
|
|
|
// CHECK-LP64: switch i32 {{%.*}}, label %[[UNREACHABLE:.*]] [
|
|
|
|
// CHECK-LP64-NEXT: i32 0, label %[[CLEANUP_CONT:.*]]
|
|
|
|
// CHECK-LP64-NEXT: i32 2, label %[[FORCOLL_END:.*]]
|
|
|
|
// CHECK-LP64-NEXT: ]
|
|
|
|
|
2017-05-06 02:39:06 +08:00
|
|
|
// CHECK-LP64-OPT: [[T5:%.*]] = load [[TY]]*, [[TY]]** [[T0]]
|
|
|
|
// CHECK-LP64-OPT: call void (...) @clang.arc.use([[TY]]* [[T5]])
|
|
|
|
|
2016-04-13 07:10:58 +08:00
|
|
|
// CHECK-LP64: {{^|:}}[[CLEANUP_CONT]]
|
|
|
|
// CHECK-LP64-NEXT: br label %[[FORCOLL_END]]
|
|
|
|
|
|
|
|
// CHECK-LP64: {{^|:}}[[FORCOLL_END]]
|
|
|
|
// CHECK-LP64-NEXT: ret void
|
|
|
|
|
|
|
|
// CHECK-LP64: {{^|:}}[[UNREACHABLE]]
|
|
|
|
// CHECK-LP64-NEXT: unreachable
|
|
|
|
|
2014-02-16 15:29:41 +08:00
|
|
|
// CHECK-LP64: attributes [[NUW]] = { nounwind }
|