1 ; RUN: llvm-upgrade < %s | llvm-as | llc -march=x86
3 target datalayout = "e-p:32:32"
5 target pointersize = 32
6 target triple = "i686-pc-linux-gnu"
7 %struct.QBasicAtomic = type { int }
8 %struct.QByteArray = type { "struct.QByteArray::Data"* }
9 "struct.QByteArray::Data" = type { %struct.QBasicAtomic, int, int, sbyte*, [1 x sbyte] }
10 %struct.QFactoryLoader = type { %struct.QObject }
11 %struct.QImageIOHandler = type { int (...)**, %struct.QImageIOHandlerPrivate* }
12 %struct.QImageIOHandlerPrivate = type opaque
13 %struct.QImageWriter = type { %struct.QImageWriterPrivate* }
14 %struct.QImageWriterPrivate = type { %struct.QByteArray, %struct.QFactoryLoader*, bool, %struct.QImageIOHandler*, int, float, %struct.QString, %struct.QString, uint, %struct.QString, %struct.QImageWriter* }
15 "struct.QList<QByteArray>" = type { "struct.QList<QByteArray>::._20" }
16 "struct.QList<QByteArray>::._20" = type { %struct.QListData }
17 %struct.QListData = type { "struct.QListData::Data"* }
18 "struct.QListData::Data" = type { %struct.QBasicAtomic, int, int, int, ubyte, [1 x sbyte*] }
19 %struct.QObject = type { int (...)**, %struct.QObjectData* }
20 %struct.QObjectData = type { int (...)**, %struct.QObject*, %struct.QObject*, "struct.QList<QByteArray>", ubyte, [3 x ubyte], int, int }
21 %struct.QString = type { "struct.QString::Data"* }
22 "struct.QString::Data" = type { %struct.QBasicAtomic, int, int, ushort*, ubyte, ubyte, [1 x ushort] }
24 implementation ; Functions:
26 bool %_ZNK12QImageWriter8canWriteEv() {
27 %tmp62 = load %struct.QImageWriterPrivate** null ; <%struct.QImageWriterPrivate*> [#uses=1]
28 %tmp = getelementptr %struct.QImageWriterPrivate* %tmp62, int 0, uint 9 ; <%struct.QString*> [#uses=1]
29 %tmp75 = call %struct.QString* %_ZN7QStringaSERKS_( %struct.QString* %tmp, %struct.QString* null ) ; <%struct.QString*> [#uses=0]
30 call void asm sideeffect "lock\0Adecl $0\0Asetne 1", "==m"( int* null )
34 declare %struct.QString* %_ZN7QStringaSERKS_(%struct.QString*, %struct.QString*)