1 ; RUN: llvm-as < %s | llc -march=x86-64 | grep call | count 3
4 ; Return types can be empty structs, which can be awkward.
6 target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128"
7 target triple = "x86_64-unknown-linux-gnu"
8 %llvm.fe.ty10 = type %struct.pthread_attr_t*
9 %llvm.fe.ty11 = type i8* (i8*)
10 %llvm.fe.ty12 = type %llvm.fe.ty11*
11 %llvm.fe.ty13 = type %struct.__pthread_list_t*
12 %llvm.fe.ty15 = type %struct.pthread_mutex_t*
13 %llvm.fe.ty17 = type %struct.QBasicAtomicInt*
14 %llvm.fe.ty18 = type void (i8*)
15 %llvm.fe.ty19 = type %llvm.fe.ty18*
16 %llvm.fe.ty3 = type void ()
17 %llvm.fe.ty4 = type %llvm.fe.ty3*
18 %struct..0KnownPointers = type { %struct.QMutex, %"struct.QHash<void*,QHashDummyValue>" }
19 %struct..0__pthread_mutex_s = type { i32, i32, i32, i32, i32, i32, %struct.__pthread_list_t }
20 %struct.QBasicAtomicInt = type { i32 }
21 %"struct.QHash<void*,QHashDummyValue>" = type { %"struct.QHash<void*,QHashDummyValue>::._177" }
22 %"struct.QHash<void*,QHashDummyValue>::._177" = type { %struct.QHashData* }
23 %struct.QHashData = type { %"struct.QHashData::Node"*, %"struct.QHashData::Node"**, %struct.QBasicAtomicInt, i32, i32, i16, i16, i32, i8 }
24 %"struct.QHashData::Node" = type { %"struct.QHashData::Node"*, i32 }
25 %struct.QMutex = type { %struct.QMutexPrivate* }
26 %struct.QMutexPrivate = type opaque
27 %struct.__pthread_list_t = type { %llvm.fe.ty13, %llvm.fe.ty13 }
28 %struct.pthread_attr_t = type { i64, [48 x i8] }
29 %struct.pthread_mutex_t = type { %struct..0__pthread_mutex_s }
31 define void @_ZN15QtSharedPointer22internalSafetyCheckAddEPVKv(i8* %ptr) {
33 %0 = invoke fastcc %struct..0KnownPointers* @_ZL13knownPointersv()
34 to label %invcont1 unwind label %lpad ; <%struct..0KnownPointers*> [#uses=0]
36 invcont1: ; preds = %entry
37 %1 = invoke fastcc %struct..0KnownPointers* @_ZL13knownPointersv()
38 to label %invcont3 unwind label %lpad ; <%struct..0KnownPointers*> [#uses=0]
40 invcont3: ; preds = %invcont1
41 %2 = call { } @_ZNK5QHashIPv15QHashDummyValueE5valueERKS0_(%"struct.QHash<void*,QHashDummyValue>"* undef, i8** undef) ; <{ }> [#uses=0]
44 lpad: ; preds = %invcont1, %entry
48 declare hidden { } @_ZNK5QHashIPv15QHashDummyValueE5valueERKS0_(%"struct.QHash<void*,QHashDummyValue>"*, i8** nocapture) nounwind
50 declare fastcc %struct..0KnownPointers* @_ZL13knownPointersv()