1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py 2; RUN: llc < %s -mtriple=x86_64-apple-darwin | FileCheck %s 3; rdar://6647639 4 5 %struct.FetchPlanHeader = type { i8*, i8*, i32, i8*, i8*, i8*, i8*, i8*, %struct.NSObject* (%struct.NSObject*, %struct.objc_selector*, ...)*, %struct.__attributeDescriptionFlags } 6 %struct.NSArray = type { %struct.NSObject } 7 %struct.NSAutoreleasePool = type { %struct.NSObject, i8*, i8*, i8*, i8* } 8 %struct.NSObject = type { %struct.NSObject* } 9 %struct.__attributeDescriptionFlags = type <{ i32 }> 10 %struct._message_ref_t = type { %struct.NSObject* (%struct.NSObject*, %struct._message_ref_t*, ...)*, %struct.objc_selector* } 11 %struct.objc_selector = type opaque 12@"\01l_objc_msgSend_fixup_alloc" = external global %struct._message_ref_t, align 16 ; <%struct._message_ref_t*> [#uses=2] 13 14define %struct.NSArray* @newFetchedRowsForFetchPlan_MT(%struct.FetchPlanHeader* %fetchPlan, %struct.objc_selector* %selectionMethod, %struct.NSObject* %selectionParameter) ssp personality i32 (...)* @__gxx_personality_v0 { 15; CHECK-LABEL: newFetchedRowsForFetchPlan_MT: 16; CHECK: ## %bb.0: ## %entry 17; CHECK-NEXT: pushq %rax 18; CHECK-NEXT: .cfi_def_cfa_offset 16 19; CHECK-NEXT: Ltmp0: 20; CHECK-NEXT: movq l_objc_msgSend_fixup_alloc@{{.*}}(%rip), %rsi 21; CHECK-NEXT: xorl %eax, %eax 22; CHECK-NEXT: xorl %edi, %edi 23; CHECK-NEXT: callq *%rax 24; CHECK-NEXT: Ltmp1: 25; CHECK-NEXT: ## %bb.1: ## %invcont 26; CHECK-NEXT: Ltmp2: 27; CHECK-NEXT: movq %rax, %rdi 28; CHECK-NEXT: xorl %esi, %esi 29; CHECK-NEXT: xorl %eax, %eax 30; CHECK-NEXT: callq _objc_msgSend 31; CHECK-NEXT: Ltmp3: 32; CHECK-NEXT: ## %bb.2: ## %invcont26 33; CHECK-NEXT: Ltmp4: 34; CHECK-NEXT: movq l_objc_msgSend_fixup_alloc@{{.*}}(%rip), %rsi 35; CHECK-NEXT: xorl %eax, %eax 36; CHECK-NEXT: xorl %edi, %edi 37; CHECK-NEXT: callq *%rax 38; CHECK-NEXT: Ltmp5: 39; CHECK-NEXT: ## %bb.3: ## %invcont27 40; CHECK-NEXT: ud2 41; CHECK-NEXT: LBB0_4: ## %lpad 42; CHECK-NEXT: Ltmp6: 43; CHECK-NEXT: ud2 44; CHECK-NEXT: Lfunc_end0: 45entry: 46 %0 = invoke %struct.NSObject* null(%struct.NSObject* null, %struct._message_ref_t* @"\01l_objc_msgSend_fixup_alloc") 47 to label %invcont unwind label %lpad ; <%struct.NSObject*> [#uses=1] 48 49invcont: ; preds = %entry 50 %1 = invoke %struct.NSObject* (%struct.NSObject*, %struct.objc_selector*, ...) @objc_msgSend(%struct.NSObject* %0, %struct.objc_selector* null) 51 to label %invcont26 unwind label %lpad ; <%struct.NSObject*> [#uses=0] 52 53invcont26: ; preds = %invcont 54 %2 = invoke %struct.NSObject* null(%struct.NSObject* null, %struct._message_ref_t* @"\01l_objc_msgSend_fixup_alloc") 55 to label %invcont27 unwind label %lpad ; <%struct.NSObject*> [#uses=0] 56 57invcont27: ; preds = %invcont26 58 unreachable 59 60lpad: ; preds = %invcont26, %invcont, %entry 61 %pool.1 = phi %struct.NSAutoreleasePool* [ null, %entry ], [ null, %invcont ], [ null, %invcont26 ] ; <%struct.NSAutoreleasePool*> [#uses=0] 62 %exn = landingpad {i8*, i32} 63 cleanup 64 unreachable 65} 66 67declare %struct.NSObject* @objc_msgSend(%struct.NSObject*, %struct.objc_selector*, ...) 68 69declare i32 @__gxx_personality_v0(...) 70