526 lines · plain
1; RUN: llc < %s -filetype=obj | llvm-readobj - --codeview | FileCheck %s2; RUN: llc < %s | llvm-mc -filetype=obj --triple=x86_64-windows | llvm-readobj - --codeview | FileCheck %s3 4; C++ source to regenerate:5; struct A {6; virtual void f();7; virtual void g();8; int a = 0;9; };10; struct B {11; virtual void g();12; virtual void f();13; int b = 0;14; };15; struct C : A, B {16; virtual void g();17; virtual void f();18; int c = 0;19; };20; struct D : C {21; virtual void g();22; virtual void f();23; int d = 0;24; };25; void h() { D d; }26 27; CHECK: VFTableShape ([[vshape_1:0x[A-Z0-9]+]]) {28; CHECK-NEXT: TypeLeafKind: LF_VTSHAPE (0xA)29; CHECK-NEXT: VFEntryCount: 130; CHECK-NEXT: }31 32; CHECK: Pointer ([[vptr_1:0x[A-Z0-9]+]]) {33; CHECK-NEXT: TypeLeafKind: LF_POINTER (0x1002)34; CHECK-NEXT: PointeeType: <vftable 1 methods> ([[vshape_1]])35 36; CHECK: FieldList ([[a_members:0x[A-Z0-9]+]]) {37; CHECK-NEXT: TypeLeafKind: LF_FIELDLIST (0x1203)38; CHECK-NEXT: VFPtr {39; CHECK-NEXT: TypeLeafKind: LF_VFUNCTAB (0x1409)40; CHECK-NEXT: Type: <vftable 1 methods>* ([[vptr_1]])41; CHECK-NEXT: }42; CHECK-NEXT: DataMember {43; CHECK-NEXT: TypeLeafKind: LF_MEMBER (0x150D)44; CHECK-NEXT: AccessSpecifier: Public (0x3)45; CHECK-NEXT: Type: int (0x74)46; CHECK-NEXT: FieldOffset: 0x847; CHECK-NEXT: Name: a48; CHECK-NEXT: }49; CHECK-NEXT: OneMethod {50; CHECK-NEXT: TypeLeafKind: LF_ONEMETHOD (0x1511)51; CHECK-NEXT: AccessSpecifier: Public (0x3)52; CHECK-NEXT: MethodKind: IntroducingVirtual (0x4)53; CHECK-NEXT: Type: void A::()54; CHECK-NEXT: VFTableOffset: 0x055; CHECK-NEXT: Name: g56; CHECK-NEXT: }57; CHECK-NEXT: }58 59; CHECK: Struct ({{.*}}) {60; CHECK-NEXT: TypeLeafKind: LF_STRUCTURE (0x1505)61; CHECK-NEXT: MemberCount: 362; CHECK-NEXT: Properties [ (0x200)63; CHECK-NEXT: HasUniqueName (0x200)64; CHECK-NEXT: ]65; CHECK-NEXT: FieldList: <field list> ([[a_members]])66; CHECK-NEXT: DerivedFrom: 0x067; CHECK-NEXT: VShape: <vftable 1 methods> ([[vshape_1]])68; CHECK-NEXT: SizeOf: 1669; CHECK-NEXT: Name: A70; CHECK-NEXT: LinkageName: .?AUA@@71; CHECK-NEXT: }72 73; CHECK: VFTableShape ([[vshape_2:0x[A-Z0-9]+]]) {74; CHECK-NEXT: TypeLeafKind: LF_VTSHAPE (0xA)75; CHECK-NEXT: VFEntryCount: 276; CHECK-NEXT: }77 78; CHECK: Pointer ([[vptr_2:0x[A-Z0-9]+]]) {79; CHECK-NEXT: TypeLeafKind: LF_POINTER (0x1002)80; CHECK-NEXT: PointeeType: <vftable 2 methods> ([[vshape_2]])81 82; CHECK: FieldList ([[b_members:0x[A-Z0-9]+]]) {83; CHECK-NEXT: TypeLeafKind: LF_FIELDLIST (0x1203)84; CHECK-NEXT: VFPtr {85; CHECK-NEXT: TypeLeafKind: LF_VFUNCTAB (0x1409)86; CHECK-NEXT: Type: <vftable 2 methods>* ([[vptr_2]])87; CHECK-NEXT: }88 89; CHECK: Struct ({{.*}}) {90; CHECK-NEXT: TypeLeafKind: LF_STRUCTURE (0x1505)91; CHECK-NEXT: MemberCount: 492; CHECK-NEXT: Properties [ (0x200)93; CHECK-NEXT: HasUniqueName (0x200)94; CHECK-NEXT: ]95; CHECK-NEXT: FieldList: <field list> ([[b_members]])96; CHECK-NEXT: DerivedFrom: 0x097; CHECK-NEXT: VShape: <vftable 2 methods> ([[vshape_2]])98; CHECK-NEXT: SizeOf: 1699; CHECK-NEXT: Name: B100; CHECK-NEXT: LinkageName: .?AUB@@101; CHECK-NEXT: }102 103; C has a primary base, so it does not need a VFPtr member.104 105; CHECK: FieldList ([[c_members:0x[A-Z0-9]+]]) {106; CHECK-NEXT: TypeLeafKind: LF_FIELDLIST (0x1203)107; CHECK-NEXT: BaseClass {108; CHECK-NEXT: TypeLeafKind: LF_BCLASS (0x1400)109; CHECK-NEXT: AccessSpecifier: Public (0x3)110; CHECK-NEXT: BaseType: A111; CHECK-NEXT: BaseOffset: 0x0112; CHECK-NEXT: }113; CHECK-NEXT: BaseClass {114; CHECK-NEXT: TypeLeafKind: LF_BCLASS (0x1400)115; CHECK-NEXT: AccessSpecifier: Public (0x3)116; CHECK-NEXT: BaseType: B117; CHECK-NEXT: BaseOffset: 0x10118; CHECK-NEXT: }119; CHECK-NOT: VFPtr120 121; CHECK: Struct ({{.*}}) {122; CHECK-NEXT: TypeLeafKind: LF_STRUCTURE (0x1505)123; CHECK-NEXT: MemberCount: 5124; CHECK-NEXT: Properties [ (0x200)125; CHECK-NEXT: HasUniqueName (0x200)126; CHECK-NEXT: ]127; CHECK-NEXT: FieldList: <field list> ([[c_members]])128; CHECK-NEXT: DerivedFrom: 0x0129; CHECK-NEXT: VShape: <vftable 1 methods> ([[vshape_1]])130; CHECK-NEXT: SizeOf: 40131; CHECK-NEXT: Name: C132; CHECK-NEXT: LinkageName: .?AUC@@133; CHECK-NEXT: }134 135; CHECK: FieldList ([[d_members:0x[A-Z0-9]+]]) {136; CHECK-NEXT: TypeLeafKind: LF_FIELDLIST (0x1203)137; CHECK-NEXT: BaseClass {138; CHECK-NEXT: TypeLeafKind: LF_BCLASS (0x1400)139; CHECK-NEXT: AccessSpecifier: Public (0x3)140; CHECK-NEXT: BaseType: C141; CHECK-NEXT: BaseOffset: 0x0142; CHECK-NEXT: }143; CHECK-NOT: VFPtr144 145; CHECK: Struct ({{.*}}) {146; CHECK-NEXT: TypeLeafKind: LF_STRUCTURE (0x1505)147; CHECK-NEXT: MemberCount: 4148; CHECK-NEXT: Properties [ (0x200)149; CHECK-NEXT: HasUniqueName (0x200)150; CHECK-NEXT: ]151; CHECK-NEXT: FieldList: <field list> ([[d_members]])152; CHECK-NEXT: DerivedFrom: 0x0153; CHECK-NEXT: VShape: <vftable 1 methods> ([[vshape_1]])154; CHECK-NEXT: SizeOf: 48155; CHECK-NEXT: Name: D156; CHECK-NEXT: LinkageName: .?AUD@@157; CHECK-NEXT: }158 159; ModuleID = 't.cpp'160source_filename = "t.cpp"161target datalayout = "e-m:w-i64:64-f80:128-n8:16:32:64-S128"162target triple = "x86_64-pc-windows-msvc19.0.24210"163 164%rtti.CompleteObjectLocator = type { i32, i32, i32, i32, i32, i32 }165%rtti.TypeDescriptor7 = type { ptr, ptr, [8 x i8] }166%rtti.ClassHierarchyDescriptor = type { i32, i32, i32, i32 }167%rtti.BaseClassDescriptor = type { i32, i32, i32, i32, i32, i32, i32 }168%struct.A = type { ptr, i32 }169%struct.B = type { ptr, i32 }170%struct.C = type { %struct.A, %struct.B, i32 }171%struct.D = type { %struct.C, i32 }172 173$"\01??0A@@QEAA@XZ" = comdat any174 175$"\01??0B@@QEAA@XZ" = comdat any176 177$"\01??0C@@QEAA@XZ" = comdat any178 179$"\01??0D@@QEAA@XZ" = comdat any180 181$"\01?g@C@@WBA@EAAXXZ" = comdat any182 183$"\01?g@D@@WBA@EAAXXZ" = comdat any184 185$"\01??_7A@@6B@" = comdat largest186 187$"\01??_R4A@@6B@" = comdat any188 189$"\01??_R0?AUA@@@8" = comdat any190 191$"\01??_R3A@@8" = comdat any192 193$"\01??_R2A@@8" = comdat any194 195$"\01??_R1A@?0A@EA@A@@8" = comdat any196 197$"\01??_7B@@6B@" = comdat largest198 199$"\01??_R4B@@6B@" = comdat any200 201$"\01??_R0?AUB@@@8" = comdat any202 203$"\01??_R3B@@8" = comdat any204 205$"\01??_R2B@@8" = comdat any206 207$"\01??_R1A@?0A@EA@B@@8" = comdat any208 209$"\01??_7C@@6BA@@@" = comdat largest210 211$"\01??_7C@@6BB@@@" = comdat largest212 213$"\01??_R4C@@6BA@@@" = comdat any214 215$"\01??_R0?AUC@@@8" = comdat any216 217$"\01??_R3C@@8" = comdat any218 219$"\01??_R2C@@8" = comdat any220 221$"\01??_R1A@?0A@EA@C@@8" = comdat any222 223$"\01??_R1BA@?0A@EA@B@@8" = comdat any224 225$"\01??_R4C@@6BB@@@" = comdat any226 227$"\01??_7D@@6BA@@@" = comdat largest228 229$"\01??_7D@@6BB@@@" = comdat largest230 231$"\01??_R4D@@6BA@@@" = comdat any232 233$"\01??_R0?AUD@@@8" = comdat any234 235$"\01??_R3D@@8" = comdat any236 237$"\01??_R2D@@8" = comdat any238 239$"\01??_R1A@?0A@EA@D@@8" = comdat any240 241$"\01??_R4D@@6BB@@@" = comdat any242 243@0 = private unnamed_addr constant [2 x ptr] [ptr @"\01??_R4A@@6B@", ptr @"\01?g@A@@UEAAXXZ"], comdat($"\01??_7A@@6B@")244@"\01??_R4A@@6B@" = linkonce_odr constant %rtti.CompleteObjectLocator { i32 1, i32 0, i32 0, i32 trunc (i64 sub nuw nsw (i64 ptrtoint (ptr @"\01??_R0?AUA@@@8" to i64), i64 ptrtoint (ptr @__ImageBase to i64)) to i32), i32 trunc (i64 sub nuw nsw (i64 ptrtoint (ptr @"\01??_R3A@@8" to i64), i64 ptrtoint (ptr @__ImageBase to i64)) to i32), i32 trunc (i64 sub nuw nsw (i64 ptrtoint (ptr @"\01??_R4A@@6B@" to i64), i64 ptrtoint (ptr @__ImageBase to i64)) to i32) }, comdat245@"\01??_7type_info@@6B@" = external constant ptr246@"\01??_R0?AUA@@@8" = linkonce_odr global %rtti.TypeDescriptor7 { ptr @"\01??_7type_info@@6B@", ptr null, [8 x i8] c".?AUA@@\00" }, comdat247@__ImageBase = external constant i8248@"\01??_R3A@@8" = linkonce_odr constant %rtti.ClassHierarchyDescriptor { i32 0, i32 0, i32 1, i32 trunc (i64 sub nuw nsw (i64 ptrtoint (ptr @"\01??_R2A@@8" to i64), i64 ptrtoint (ptr @__ImageBase to i64)) to i32) }, comdat249@"\01??_R2A@@8" = linkonce_odr constant [2 x i32] [i32 trunc (i64 sub nuw nsw (i64 ptrtoint (ptr @"\01??_R1A@?0A@EA@A@@8" to i64), i64 ptrtoint (ptr @__ImageBase to i64)) to i32), i32 0], comdat250@"\01??_R1A@?0A@EA@A@@8" = linkonce_odr constant %rtti.BaseClassDescriptor { i32 trunc (i64 sub nuw nsw (i64 ptrtoint (ptr @"\01??_R0?AUA@@@8" to i64), i64 ptrtoint (ptr @__ImageBase to i64)) to i32), i32 0, i32 0, i32 -1, i32 0, i32 64, i32 trunc (i64 sub nuw nsw (i64 ptrtoint (ptr @"\01??_R3A@@8" to i64), i64 ptrtoint (ptr @__ImageBase to i64)) to i32) }, comdat251@1 = private unnamed_addr constant [3 x ptr] [ptr @"\01??_R4B@@6B@", ptr @"\01?g@B@@UEAAXXZ", ptr @"\01?f@B@@UEAAXXZ"], comdat($"\01??_7B@@6B@")252@"\01??_R4B@@6B@" = linkonce_odr constant %rtti.CompleteObjectLocator { i32 1, i32 0, i32 0, i32 trunc (i64 sub nuw nsw (i64 ptrtoint (ptr @"\01??_R0?AUB@@@8" to i64), i64 ptrtoint (ptr @__ImageBase to i64)) to i32), i32 trunc (i64 sub nuw nsw (i64 ptrtoint (ptr @"\01??_R3B@@8" to i64), i64 ptrtoint (ptr @__ImageBase to i64)) to i32), i32 trunc (i64 sub nuw nsw (i64 ptrtoint (ptr @"\01??_R4B@@6B@" to i64), i64 ptrtoint (ptr @__ImageBase to i64)) to i32) }, comdat253@"\01??_R0?AUB@@@8" = linkonce_odr global %rtti.TypeDescriptor7 { ptr @"\01??_7type_info@@6B@", ptr null, [8 x i8] c".?AUB@@\00" }, comdat254@"\01??_R3B@@8" = linkonce_odr constant %rtti.ClassHierarchyDescriptor { i32 0, i32 0, i32 1, i32 trunc (i64 sub nuw nsw (i64 ptrtoint (ptr @"\01??_R2B@@8" to i64), i64 ptrtoint (ptr @__ImageBase to i64)) to i32) }, comdat255@"\01??_R2B@@8" = linkonce_odr constant [2 x i32] [i32 trunc (i64 sub nuw nsw (i64 ptrtoint (ptr @"\01??_R1A@?0A@EA@B@@8" to i64), i64 ptrtoint (ptr @__ImageBase to i64)) to i32), i32 0], comdat256@"\01??_R1A@?0A@EA@B@@8" = linkonce_odr constant %rtti.BaseClassDescriptor { i32 trunc (i64 sub nuw nsw (i64 ptrtoint (ptr @"\01??_R0?AUB@@@8" to i64), i64 ptrtoint (ptr @__ImageBase to i64)) to i32), i32 0, i32 0, i32 -1, i32 0, i32 64, i32 trunc (i64 sub nuw nsw (i64 ptrtoint (ptr @"\01??_R3B@@8" to i64), i64 ptrtoint (ptr @__ImageBase to i64)) to i32) }, comdat257@2 = private unnamed_addr constant [2 x ptr] [ptr @"\01??_R4C@@6BA@@@", ptr @"\01?g@C@@UEAAXXZ"], comdat($"\01??_7C@@6BA@@@")258@3 = private unnamed_addr constant [3 x ptr] [ptr @"\01??_R4C@@6BB@@@", ptr @"\01?g@C@@WBA@EAAXXZ", ptr @"\01?f@C@@UEAAXXZ"], comdat($"\01??_7C@@6BB@@@")259@"\01??_R4C@@6BA@@@" = linkonce_odr constant %rtti.CompleteObjectLocator { i32 1, i32 0, i32 0, i32 trunc (i64 sub nuw nsw (i64 ptrtoint (ptr @"\01??_R0?AUC@@@8" to i64), i64 ptrtoint (ptr @__ImageBase to i64)) to i32), i32 trunc (i64 sub nuw nsw (i64 ptrtoint (ptr @"\01??_R3C@@8" to i64), i64 ptrtoint (ptr @__ImageBase to i64)) to i32), i32 trunc (i64 sub nuw nsw (i64 ptrtoint (ptr @"\01??_R4C@@6BA@@@" to i64), i64 ptrtoint (ptr @__ImageBase to i64)) to i32) }, comdat260@"\01??_R0?AUC@@@8" = linkonce_odr global %rtti.TypeDescriptor7 { ptr @"\01??_7type_info@@6B@", ptr null, [8 x i8] c".?AUC@@\00" }, comdat261@"\01??_R3C@@8" = linkonce_odr constant %rtti.ClassHierarchyDescriptor { i32 0, i32 1, i32 3, i32 trunc (i64 sub nuw nsw (i64 ptrtoint (ptr @"\01??_R2C@@8" to i64), i64 ptrtoint (ptr @__ImageBase to i64)) to i32) }, comdat262@"\01??_R2C@@8" = linkonce_odr constant [4 x i32] [i32 trunc (i64 sub nuw nsw (i64 ptrtoint (ptr @"\01??_R1A@?0A@EA@C@@8" to i64), i64 ptrtoint (ptr @__ImageBase to i64)) to i32), i32 trunc (i64 sub nuw nsw (i64 ptrtoint (ptr @"\01??_R1A@?0A@EA@A@@8" to i64), i64 ptrtoint (ptr @__ImageBase to i64)) to i32), i32 trunc (i64 sub nuw nsw (i64 ptrtoint (ptr @"\01??_R1BA@?0A@EA@B@@8" to i64), i64 ptrtoint (ptr @__ImageBase to i64)) to i32), i32 0], comdat263@"\01??_R1A@?0A@EA@C@@8" = linkonce_odr constant %rtti.BaseClassDescriptor { i32 trunc (i64 sub nuw nsw (i64 ptrtoint (ptr @"\01??_R0?AUC@@@8" to i64), i64 ptrtoint (ptr @__ImageBase to i64)) to i32), i32 2, i32 0, i32 -1, i32 0, i32 64, i32 trunc (i64 sub nuw nsw (i64 ptrtoint (ptr @"\01??_R3C@@8" to i64), i64 ptrtoint (ptr @__ImageBase to i64)) to i32) }, comdat264@"\01??_R1BA@?0A@EA@B@@8" = linkonce_odr constant %rtti.BaseClassDescriptor { i32 trunc (i64 sub nuw nsw (i64 ptrtoint (ptr @"\01??_R0?AUB@@@8" to i64), i64 ptrtoint (ptr @__ImageBase to i64)) to i32), i32 0, i32 16, i32 -1, i32 0, i32 64, i32 trunc (i64 sub nuw nsw (i64 ptrtoint (ptr @"\01??_R3B@@8" to i64), i64 ptrtoint (ptr @__ImageBase to i64)) to i32) }, comdat265@"\01??_R4C@@6BB@@@" = linkonce_odr constant %rtti.CompleteObjectLocator { i32 1, i32 16, i32 0, i32 trunc (i64 sub nuw nsw (i64 ptrtoint (ptr @"\01??_R0?AUC@@@8" to i64), i64 ptrtoint (ptr @__ImageBase to i64)) to i32), i32 trunc (i64 sub nuw nsw (i64 ptrtoint (ptr @"\01??_R3C@@8" to i64), i64 ptrtoint (ptr @__ImageBase to i64)) to i32), i32 trunc (i64 sub nuw nsw (i64 ptrtoint (ptr @"\01??_R4C@@6BB@@@" to i64), i64 ptrtoint (ptr @__ImageBase to i64)) to i32) }, comdat266@4 = private unnamed_addr constant [2 x ptr] [ptr @"\01??_R4D@@6BA@@@", ptr @"\01?g@D@@UEAAXXZ"], comdat($"\01??_7D@@6BA@@@")267@5 = private unnamed_addr constant [3 x ptr] [ptr @"\01??_R4D@@6BB@@@", ptr @"\01?g@D@@WBA@EAAXXZ", ptr @"\01?f@D@@UEAAXXZ"], comdat($"\01??_7D@@6BB@@@")268@"\01??_R4D@@6BA@@@" = linkonce_odr constant %rtti.CompleteObjectLocator { i32 1, i32 0, i32 0, i32 trunc (i64 sub nuw nsw (i64 ptrtoint (ptr @"\01??_R0?AUD@@@8" to i64), i64 ptrtoint (ptr @__ImageBase to i64)) to i32), i32 trunc (i64 sub nuw nsw (i64 ptrtoint (ptr @"\01??_R3D@@8" to i64), i64 ptrtoint (ptr @__ImageBase to i64)) to i32), i32 trunc (i64 sub nuw nsw (i64 ptrtoint (ptr @"\01??_R4D@@6BA@@@" to i64), i64 ptrtoint (ptr @__ImageBase to i64)) to i32) }, comdat269@"\01??_R0?AUD@@@8" = linkonce_odr global %rtti.TypeDescriptor7 { ptr @"\01??_7type_info@@6B@", ptr null, [8 x i8] c".?AUD@@\00" }, comdat270@"\01??_R3D@@8" = linkonce_odr constant %rtti.ClassHierarchyDescriptor { i32 0, i32 1, i32 4, i32 trunc (i64 sub nuw nsw (i64 ptrtoint (ptr @"\01??_R2D@@8" to i64), i64 ptrtoint (ptr @__ImageBase to i64)) to i32) }, comdat271@"\01??_R2D@@8" = linkonce_odr constant [5 x i32] [i32 trunc (i64 sub nuw nsw (i64 ptrtoint (ptr @"\01??_R1A@?0A@EA@D@@8" to i64), i64 ptrtoint (ptr @__ImageBase to i64)) to i32), i32 trunc (i64 sub nuw nsw (i64 ptrtoint (ptr @"\01??_R1A@?0A@EA@C@@8" to i64), i64 ptrtoint (ptr @__ImageBase to i64)) to i32), i32 trunc (i64 sub nuw nsw (i64 ptrtoint (ptr @"\01??_R1A@?0A@EA@A@@8" to i64), i64 ptrtoint (ptr @__ImageBase to i64)) to i32), i32 trunc (i64 sub nuw nsw (i64 ptrtoint (ptr @"\01??_R1BA@?0A@EA@B@@8" to i64), i64 ptrtoint (ptr @__ImageBase to i64)) to i32), i32 0], comdat272@"\01??_R1A@?0A@EA@D@@8" = linkonce_odr constant %rtti.BaseClassDescriptor { i32 trunc (i64 sub nuw nsw (i64 ptrtoint (ptr @"\01??_R0?AUD@@@8" to i64), i64 ptrtoint (ptr @__ImageBase to i64)) to i32), i32 3, i32 0, i32 -1, i32 0, i32 64, i32 trunc (i64 sub nuw nsw (i64 ptrtoint (ptr @"\01??_R3D@@8" to i64), i64 ptrtoint (ptr @__ImageBase to i64)) to i32) }, comdat273@"\01??_R4D@@6BB@@@" = linkonce_odr constant %rtti.CompleteObjectLocator { i32 1, i32 16, i32 0, i32 trunc (i64 sub nuw nsw (i64 ptrtoint (ptr @"\01??_R0?AUD@@@8" to i64), i64 ptrtoint (ptr @__ImageBase to i64)) to i32), i32 trunc (i64 sub nuw nsw (i64 ptrtoint (ptr @"\01??_R3D@@8" to i64), i64 ptrtoint (ptr @__ImageBase to i64)) to i32), i32 trunc (i64 sub nuw nsw (i64 ptrtoint (ptr @"\01??_R4D@@6BB@@@" to i64), i64 ptrtoint (ptr @__ImageBase to i64)) to i32) }, comdat274 275@"\01??_7A@@6B@" = unnamed_addr alias ptr, getelementptr inbounds ([2 x ptr], ptr @0, i32 0, i32 1)276@"\01??_7B@@6B@" = unnamed_addr alias ptr, getelementptr inbounds ([3 x ptr], ptr @1, i32 0, i32 1)277@"\01??_7C@@6BA@@@" = unnamed_addr alias ptr, getelementptr inbounds ([2 x ptr], ptr @2, i32 0, i32 1)278@"\01??_7C@@6BB@@@" = unnamed_addr alias ptr, getelementptr inbounds ([3 x ptr], ptr @3, i32 0, i32 1)279@"\01??_7D@@6BA@@@" = unnamed_addr alias ptr, getelementptr inbounds ([2 x ptr], ptr @4, i32 0, i32 1)280@"\01??_7D@@6BB@@@" = unnamed_addr alias ptr, getelementptr inbounds ([3 x ptr], ptr @5, i32 0, i32 1)281 282; Function Attrs: nounwind uwtable283define void @"\01?h@@YAXXZ"() #0 !dbg !7 {284entry:285 %a = alloca %struct.A, align 8286 %b = alloca %struct.B, align 8287 %c = alloca %struct.C, align 8288 %d = alloca %struct.D, align 8289 call void @llvm.dbg.declare(metadata ptr %a, metadata !10, metadata !22), !dbg !23290 %call = call ptr @"\01??0A@@QEAA@XZ"(ptr %a) #5, !dbg !23291 call void @llvm.dbg.declare(metadata ptr %b, metadata !24, metadata !22), !dbg !36292 %call1 = call ptr @"\01??0B@@QEAA@XZ"(ptr %b) #5, !dbg !36293 call void @llvm.dbg.declare(metadata ptr %c, metadata !37, metadata !22), !dbg !48294 %call2 = call ptr @"\01??0C@@QEAA@XZ"(ptr %c) #5, !dbg !48295 call void @llvm.dbg.declare(metadata ptr %d, metadata !49, metadata !22), !dbg !59296 %call3 = call ptr @"\01??0D@@QEAA@XZ"(ptr %d) #5, !dbg !59297 ret void, !dbg !60298}299 300; Function Attrs: nounwind readnone301declare void @llvm.dbg.declare(metadata, metadata, metadata) #1302 303; Function Attrs: inlinehint nounwind uwtable304define linkonce_odr ptr @"\01??0A@@QEAA@XZ"(ptr returned %this) unnamed_addr #2 comdat align 2 !dbg !61 {305entry:306 %this.addr = alloca ptr, align 8307 store ptr %this, ptr %this.addr, align 8308 call void @llvm.dbg.declare(metadata ptr %this.addr, metadata !63, metadata !22), !dbg !65309 %this1 = load ptr, ptr %this.addr, align 8310 %0 = bitcast ptr %this1 to ptr, !dbg !66311 store ptr @"\01??_7A@@6B@", ptr %0, align 8, !dbg !66312 %a = getelementptr inbounds %struct.A, ptr %this1, i32 0, i32 1, !dbg !67313 store i32 0, ptr %a, align 8, !dbg !67314 ret ptr %this1, !dbg !66315}316 317; Function Attrs: inlinehint nounwind uwtable318define linkonce_odr ptr @"\01??0B@@QEAA@XZ"(ptr returned %this) unnamed_addr #2 comdat align 2 !dbg !68 {319entry:320 %this.addr = alloca ptr, align 8321 store ptr %this, ptr %this.addr, align 8322 call void @llvm.dbg.declare(metadata ptr %this.addr, metadata !70, metadata !22), !dbg !72323 %this1 = load ptr, ptr %this.addr, align 8324 %0 = bitcast ptr %this1 to ptr, !dbg !73325 store ptr @"\01??_7B@@6B@", ptr %0, align 8, !dbg !73326 %b = getelementptr inbounds %struct.B, ptr %this1, i32 0, i32 1, !dbg !74327 store i32 0, ptr %b, align 8, !dbg !74328 ret ptr %this1, !dbg !73329}330 331; Function Attrs: inlinehint nounwind uwtable332define linkonce_odr ptr @"\01??0C@@QEAA@XZ"(ptr returned %this) unnamed_addr #2 comdat align 2 !dbg !75 {333entry:334 %this.addr = alloca ptr, align 8335 store ptr %this, ptr %this.addr, align 8336 call void @llvm.dbg.declare(metadata ptr %this.addr, metadata !77, metadata !22), !dbg !79337 %this1 = load ptr, ptr %this.addr, align 8338 %0 = bitcast ptr %this1 to ptr, !dbg !80339 %call = call ptr @"\01??0A@@QEAA@XZ"(ptr %0) #5, !dbg !80340 %1 = bitcast ptr %this1 to ptr, !dbg !80341 %2 = getelementptr inbounds i8, ptr %1, i64 16, !dbg !80342 %3 = bitcast ptr %2 to ptr, !dbg !80343 %call2 = call ptr @"\01??0B@@QEAA@XZ"(ptr %3) #5, !dbg !80344 %4 = bitcast ptr %this1 to ptr, !dbg !80345 store ptr @"\01??_7C@@6BA@@@", ptr %4, align 8, !dbg !80346 %5 = bitcast ptr %this1 to ptr, !dbg !80347 %add.ptr = getelementptr inbounds i8, ptr %5, i64 16, !dbg !80348 %6 = bitcast ptr %add.ptr to ptr, !dbg !80349 store ptr @"\01??_7C@@6BB@@@", ptr %6, align 8, !dbg !80350 %c = getelementptr inbounds %struct.C, ptr %this1, i32 0, i32 2, !dbg !81351 store i32 0, ptr %c, align 8, !dbg !81352 ret ptr %this1, !dbg !80353}354 355; Function Attrs: inlinehint nounwind uwtable356define linkonce_odr ptr @"\01??0D@@QEAA@XZ"(ptr returned %this) unnamed_addr #2 comdat align 2 !dbg !82 {357entry:358 %this.addr = alloca ptr, align 8359 store ptr %this, ptr %this.addr, align 8360 call void @llvm.dbg.declare(metadata ptr %this.addr, metadata !84, metadata !22), !dbg !86361 %this1 = load ptr, ptr %this.addr, align 8362 %0 = bitcast ptr %this1 to ptr, !dbg !87363 %call = call ptr @"\01??0C@@QEAA@XZ"(ptr %0) #5, !dbg !87364 %1 = bitcast ptr %this1 to ptr, !dbg !87365 store ptr @"\01??_7D@@6BA@@@", ptr %1, align 8, !dbg !87366 %2 = bitcast ptr %this1 to ptr, !dbg !87367 %add.ptr = getelementptr inbounds i8, ptr %2, i64 16, !dbg !87368 %3 = bitcast ptr %add.ptr to ptr, !dbg !87369 store ptr @"\01??_7D@@6BB@@@", ptr %3, align 8, !dbg !87370 %d = getelementptr inbounds %struct.D, ptr %this1, i32 0, i32 1, !dbg !88371 store i32 0, ptr %d, align 8, !dbg !88372 ret ptr %this1, !dbg !87373}374 375declare void @"\01?g@A@@UEAAXXZ"(ptr) unnamed_addr #3376 377declare void @"\01?g@B@@UEAAXXZ"(ptr) unnamed_addr #3378 379declare void @"\01?f@B@@UEAAXXZ"(ptr) unnamed_addr #3380 381declare void @"\01?g@C@@UEAAXXZ"(ptr) unnamed_addr #3382 383; Function Attrs: uwtable384define linkonce_odr void @"\01?g@C@@WBA@EAAXXZ"(ptr %this) unnamed_addr #4 comdat align 2 !dbg !89 {385entry:386 %this.addr = alloca ptr, align 8387 store ptr %this, ptr %this.addr, align 8388 call void @llvm.dbg.declare(metadata ptr %this.addr, metadata !91, metadata !22), !dbg !92389 %this1 = load ptr, ptr %this.addr, align 8, !dbg !93390 %0 = bitcast ptr %this1 to ptr, !dbg !93391 %1 = getelementptr i8, ptr %0, i32 -16, !dbg !93392 %2 = bitcast ptr %1 to ptr, !dbg !93393 tail call void @"\01?g@C@@UEAAXXZ"(ptr %2), !dbg !93394 ret void, !dbg !93395}396 397declare void @"\01?f@C@@UEAAXXZ"(ptr) unnamed_addr #3398 399declare void @"\01?g@D@@UEAAXXZ"(ptr) unnamed_addr #3400 401; Function Attrs: uwtable402define linkonce_odr void @"\01?g@D@@WBA@EAAXXZ"(ptr %this) unnamed_addr #4 comdat align 2 !dbg !94 {403entry:404 %this.addr = alloca ptr, align 8405 store ptr %this, ptr %this.addr, align 8406 call void @llvm.dbg.declare(metadata ptr %this.addr, metadata !95, metadata !22), !dbg !96407 %this1 = load ptr, ptr %this.addr, align 8, !dbg !97408 %0 = bitcast ptr %this1 to ptr, !dbg !97409 %1 = getelementptr i8, ptr %0, i32 -16, !dbg !97410 %2 = bitcast ptr %1 to ptr, !dbg !97411 tail call void @"\01?g@D@@UEAAXXZ"(ptr %2), !dbg !97412 ret void, !dbg !97413}414 415declare void @"\01?f@D@@UEAAXXZ"(ptr) unnamed_addr #3416 417attributes #0 = { nounwind uwtable "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "less-precise-fpmad"="false" "frame-pointer"="none" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" "use-soft-float"="false" }418attributes #1 = { nounwind readnone }419attributes #2 = { inlinehint nounwind uwtable "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "less-precise-fpmad"="false" "frame-pointer"="none" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" "use-soft-float"="false" }420attributes #3 = { "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "less-precise-fpmad"="false" "frame-pointer"="none" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" "use-soft-float"="false" }421attributes #4 = { uwtable "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "less-precise-fpmad"="false" "frame-pointer"="none" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" "use-soft-float"="false" }422attributes #5 = { nounwind }423 424!llvm.dbg.cu = !{!0}425!llvm.module.flags = !{!3, !4, !5}426!llvm.ident = !{!6}427 428!0 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !1, producer: "clang version 4.0.0 ", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !2)429!1 = !DIFile(filename: "t.cpp", directory: "C:\5Csrc\5Cllvm\5Cbuild")430!2 = !{}431!3 = !{i32 2, !"CodeView", i32 1}432!4 = !{i32 2, !"Debug Info Version", i32 3}433!5 = !{i32 1, !"PIC Level", i32 2}434!6 = !{!"clang version 4.0.0 "}435!7 = distinct !DISubprogram(name: "h", linkageName: "\01?h@@YAXXZ", scope: !1, file: !1, line: 20, type: !8, isLocal: false, isDefinition: true, scopeLine: 20, flags: DIFlagPrototyped, isOptimized: false, unit: !0, retainedNodes: !2)436!8 = !DISubroutineType(types: !9)437!9 = !{null}438!10 = !DILocalVariable(name: "a", scope: !7, file: !1, line: 22, type: !11)439!11 = distinct !DICompositeType(tag: DW_TAG_structure_type, name: "A", file: !1, line: 1, size: 128, align: 64, elements: !12, vtableHolder: !11, identifier: ".?AUA@@")440!12 = !{!13, !14, !16, !18}441!13 = !DIDerivedType(tag: DW_TAG_pointer_type, name: "__vtbl_ptr_type", baseType: null, size: 64)442!14 = !DIDerivedType(tag: DW_TAG_member, name: "_vptr$A", scope: !1, file: !1, baseType: !15, size: 64, flags: DIFlagArtificial)443!15 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !13, size: 64)444!16 = !DIDerivedType(tag: DW_TAG_member, name: "a", scope: !11, file: !1, line: 3, baseType: !17, size: 32, align: 32, offset: 64)445!17 = !DIBasicType(name: "int", size: 32, align: 32, encoding: DW_ATE_signed)446!18 = !DISubprogram(name: "g", linkageName: "\01?g@A@@UEAAXXZ", scope: !11, file: !1, line: 2, type: !19, isLocal: false, isDefinition: false, scopeLine: 2, containingType: !11, virtuality: DW_VIRTUALITY_virtual, virtualIndex: 0, flags: DIFlagPrototyped | DIFlagIntroducedVirtual, isOptimized: false)447!19 = !DISubroutineType(types: !20)448!20 = !{null, !21}449!21 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !11, size: 64, align: 64, flags: DIFlagArtificial | DIFlagObjectPointer)450!22 = !DIExpression()451!23 = !DILocation(line: 22, column: 5, scope: !7)452!24 = !DILocalVariable(name: "b", scope: !7, file: !1, line: 23, type: !25)453!25 = distinct !DICompositeType(tag: DW_TAG_structure_type, name: "B", file: !1, line: 5, size: 128, align: 64, elements: !26, vtableHolder: !25, identifier: ".?AUB@@")454!26 = !{!27, !28, !30, !31, !35}455!27 = !DIDerivedType(tag: DW_TAG_pointer_type, name: "__vtbl_ptr_type", baseType: null, size: 128)456!28 = !DIDerivedType(tag: DW_TAG_member, name: "_vptr$B", scope: !1, file: !1, baseType: !29, size: 64, flags: DIFlagArtificial)457!29 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !27, size: 64)458!30 = !DIDerivedType(tag: DW_TAG_member, name: "b", scope: !25, file: !1, line: 8, baseType: !17, size: 32, align: 32, offset: 64)459!31 = !DISubprogram(name: "g", linkageName: "\01?g@B@@UEAAXXZ", scope: !25, file: !1, line: 6, type: !32, isLocal: false, isDefinition: false, scopeLine: 6, containingType: !25, virtuality: DW_VIRTUALITY_virtual, virtualIndex: 0, flags: DIFlagPrototyped | DIFlagIntroducedVirtual, isOptimized: false)460!32 = !DISubroutineType(types: !33)461!33 = !{null, !34}462!34 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !25, size: 64, align: 64, flags: DIFlagArtificial | DIFlagObjectPointer)463!35 = !DISubprogram(name: "f", linkageName: "\01?f@B@@UEAAXXZ", scope: !25, file: !1, line: 7, type: !32, isLocal: false, isDefinition: false, scopeLine: 7, containingType: !25, virtuality: DW_VIRTUALITY_virtual, virtualIndex: 1, flags: DIFlagPrototyped | DIFlagIntroducedVirtual, isOptimized: false)464!36 = !DILocation(line: 23, column: 5, scope: !7)465!37 = !DILocalVariable(name: "c", scope: !7, file: !1, line: 24, type: !38)466!38 = distinct !DICompositeType(tag: DW_TAG_structure_type, name: "C", file: !1, line: 10, size: 320, align: 64, elements: !39, vtableHolder: !11, identifier: ".?AUC@@")467!39 = !{!40, !41, !13, !42, !43, !47}468!40 = !DIDerivedType(tag: DW_TAG_inheritance, scope: !38, baseType: !11)469!41 = !DIDerivedType(tag: DW_TAG_inheritance, scope: !38, baseType: !25, offset: 128)470!42 = !DIDerivedType(tag: DW_TAG_member, name: "c", scope: !38, file: !1, line: 13, baseType: !17, size: 32, align: 32, offset: 256)471!43 = !DISubprogram(name: "g", linkageName: "\01?g@C@@UEAAXXZ", scope: !38, file: !1, line: 11, type: !44, isLocal: false, isDefinition: false, scopeLine: 11, containingType: !38, virtuality: DW_VIRTUALITY_virtual, virtualIndex: 0, flags: DIFlagPrototyped, isOptimized: false)472!44 = !DISubroutineType(types: !45)473!45 = !{null, !46}474!46 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !38, size: 64, align: 64, flags: DIFlagArtificial | DIFlagObjectPointer)475!47 = !DISubprogram(name: "f", linkageName: "\01?f@C@@UEAAXXZ", scope: !38, file: !1, line: 12, type: !44, isLocal: false, isDefinition: false, scopeLine: 12, containingType: !38, virtuality: DW_VIRTUALITY_virtual, virtualIndex: 1, thisAdjustment: 16, flags: DIFlagPrototyped, isOptimized: false)476!48 = !DILocation(line: 24, column: 5, scope: !7)477!49 = !DILocalVariable(name: "d", scope: !7, file: !1, line: 25, type: !50)478!50 = distinct !DICompositeType(tag: DW_TAG_structure_type, name: "D", file: !1, line: 15, size: 384, align: 64, elements: !51, vtableHolder: !11, identifier: ".?AUD@@")479!51 = !{!52, !13, !53, !54, !58}480!52 = !DIDerivedType(tag: DW_TAG_inheritance, scope: !50, baseType: !38)481!53 = !DIDerivedType(tag: DW_TAG_member, name: "d", scope: !50, file: !1, line: 18, baseType: !17, size: 32, align: 32, offset: 320)482!54 = !DISubprogram(name: "g", linkageName: "\01?g@D@@UEAAXXZ", scope: !50, file: !1, line: 16, type: !55, isLocal: false, isDefinition: false, scopeLine: 16, containingType: !50, virtuality: DW_VIRTUALITY_virtual, virtualIndex: 0, flags: DIFlagPrototyped, isOptimized: false)483!55 = !DISubroutineType(types: !56)484!56 = !{null, !57}485!57 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !50, size: 64, align: 64, flags: DIFlagArtificial | DIFlagObjectPointer)486!58 = !DISubprogram(name: "f", linkageName: "\01?f@D@@UEAAXXZ", scope: !50, file: !1, line: 17, type: !55, isLocal: false, isDefinition: false, scopeLine: 17, containingType: !50, virtuality: DW_VIRTUALITY_virtual, virtualIndex: 1, thisAdjustment: 16, flags: DIFlagPrototyped, isOptimized: false)487!59 = !DILocation(line: 25, column: 5, scope: !7)488!60 = !DILocation(line: 26, column: 1, scope: !7)489!61 = distinct !DISubprogram(name: "A", linkageName: "\01??0A@@QEAA@XZ", scope: !11, file: !1, line: 1, type: !19, isLocal: false, isDefinition: true, scopeLine: 1, flags: DIFlagArtificial | DIFlagPrototyped, isOptimized: false, unit: !0, declaration: !62, retainedNodes: !2)490!62 = !DISubprogram(name: "A", scope: !11, type: !19, isLocal: false, isDefinition: false, flags: DIFlagArtificial | DIFlagPrototyped, isOptimized: false)491!63 = !DILocalVariable(name: "this", arg: 1, scope: !61, type: !64, flags: DIFlagArtificial | DIFlagObjectPointer)492!64 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !11, size: 64, align: 64)493!65 = !DILocation(line: 0, scope: !61)494!66 = !DILocation(line: 1, column: 8, scope: !61)495!67 = !DILocation(line: 3, column: 7, scope: !61)496!68 = distinct !DISubprogram(name: "B", linkageName: "\01??0B@@QEAA@XZ", scope: !25, file: !1, line: 5, type: !32, isLocal: false, isDefinition: true, scopeLine: 5, flags: DIFlagArtificial | DIFlagPrototyped, isOptimized: false, unit: !0, declaration: !69, retainedNodes: !2)497!69 = !DISubprogram(name: "B", scope: !25, type: !32, isLocal: false, isDefinition: false, flags: DIFlagArtificial | DIFlagPrototyped, isOptimized: false)498!70 = !DILocalVariable(name: "this", arg: 1, scope: !68, type: !71, flags: DIFlagArtificial | DIFlagObjectPointer)499!71 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !25, size: 64, align: 64)500!72 = !DILocation(line: 0, scope: !68)501!73 = !DILocation(line: 5, column: 8, scope: !68)502!74 = !DILocation(line: 8, column: 7, scope: !68)503!75 = distinct !DISubprogram(name: "C", linkageName: "\01??0C@@QEAA@XZ", scope: !38, file: !1, line: 10, type: !44, isLocal: false, isDefinition: true, scopeLine: 10, flags: DIFlagArtificial | DIFlagPrototyped, isOptimized: false, unit: !0, declaration: !76, retainedNodes: !2)504!76 = !DISubprogram(name: "C", scope: !38, type: !44, isLocal: false, isDefinition: false, flags: DIFlagArtificial | DIFlagPrototyped, isOptimized: false)505!77 = !DILocalVariable(name: "this", arg: 1, scope: !75, type: !78, flags: DIFlagArtificial | DIFlagObjectPointer)506!78 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !38, size: 64, align: 64)507!79 = !DILocation(line: 0, scope: !75)508!80 = !DILocation(line: 10, column: 8, scope: !75)509!81 = !DILocation(line: 13, column: 7, scope: !75)510!82 = distinct !DISubprogram(name: "D", linkageName: "\01??0D@@QEAA@XZ", scope: !50, file: !1, line: 15, type: !55, isLocal: false, isDefinition: true, scopeLine: 15, flags: DIFlagArtificial | DIFlagPrototyped, isOptimized: false, unit: !0, declaration: !83, retainedNodes: !2)511!83 = !DISubprogram(name: "D", scope: !50, type: !55, isLocal: false, isDefinition: false, flags: DIFlagArtificial | DIFlagPrototyped, isOptimized: false)512!84 = !DILocalVariable(name: "this", arg: 1, scope: !82, type: !85, flags: DIFlagArtificial | DIFlagObjectPointer)513!85 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !50, size: 64, align: 64)514!86 = !DILocation(line: 0, scope: !82)515!87 = !DILocation(line: 15, column: 8, scope: !82)516!88 = !DILocation(line: 18, column: 7, scope: !82)517!89 = distinct !DISubprogram(linkageName: "\01?g@C@@WBA@EAAXXZ", scope: !1, file: !1, line: 11, type: !90, isLocal: false, isDefinition: true, scopeLine: 11, flags: DIFlagArtificial, isOptimized: false, unit: !0, retainedNodes: !2)518!90 = !DISubroutineType(types: !2)519!91 = !DILocalVariable(name: "this", arg: 1, scope: !89, type: !78, flags: DIFlagArtificial | DIFlagObjectPointer)520!92 = !DILocation(line: 0, scope: !89)521!93 = !DILocation(line: 11, column: 16, scope: !89)522!94 = distinct !DISubprogram(linkageName: "\01?g@D@@WBA@EAAXXZ", scope: !1, file: !1, line: 16, type: !90, isLocal: false, isDefinition: true, scopeLine: 16, flags: DIFlagArtificial, isOptimized: false, unit: !0, retainedNodes: !2)523!95 = !DILocalVariable(name: "this", arg: 1, scope: !94, type: !85, flags: DIFlagArtificial | DIFlagObjectPointer)524!96 = !DILocation(line: 0, scope: !94)525!97 = !DILocation(line: 16, column: 16, scope: !94)526