1a7004363STeresa Johnson; Test summary parsing of index-based WPD related summary fields 2a7004363STeresa Johnson; RUN: llvm-as %s -o - | llvm-dis -o %t.ll 3a7004363STeresa Johnson; RUN: grep "^\^" %s >%t2 4a7004363STeresa Johnson; RUN: grep "^\^" %t.ll >%t3 5a7004363STeresa Johnson; Expect that the summary information is the same after round-trip through 6a7004363STeresa Johnson; llvm-as and llvm-dis. 7342c02d0Sstevewan; RUN: diff -b %t2 %t3 8a7004363STeresa Johnson 9a7004363STeresa Johnsonsource_filename = "thinlto-vtable-summary.ll" 10a7004363STeresa Johnsontarget datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" 11a7004363STeresa Johnsontarget triple = "x86_64-grtev4-linux-gnu" 12a7004363STeresa Johnson 13a7004363STeresa Johnson%struct.A = type { i32 (...)** } 14a7004363STeresa Johnson%struct.B = type { %struct.A } 15a7004363STeresa Johnson%struct.C = type { %struct.A } 16a7004363STeresa Johnson 17a7004363STeresa Johnson@_ZTV1B = constant { [4 x i8*] } { [4 x i8*] [i8* null, i8* undef, i8* bitcast (i32 (%struct.B*, i32)* @_ZN1B1fEi to i8*), i8* bitcast (i32 (%struct.A*, i32)* @_ZN1A1nEi to i8*)] }, !type !0, !type !1 18a7004363STeresa Johnson@_ZTV1C = constant { [4 x i8*] } { [4 x i8*] [i8* null, i8* undef, i8* bitcast (i32 (%struct.C*, i32)* @_ZN1C1fEi to i8*), i8* bitcast (i32 (%struct.A*, i32)* @_ZN1A1nEi to i8*)] }, !type !0, !type !2 19a7004363STeresa Johnson 20a7004363STeresa Johnsondeclare i32 @_ZN1B1fEi(%struct.B*, i32) 21a7004363STeresa Johnson 22a7004363STeresa Johnsondeclare i32 @_ZN1A1nEi(%struct.A*, i32) 23a7004363STeresa Johnson 24a7004363STeresa Johnsondeclare i32 @_ZN1C1fEi(%struct.C*, i32) 25a7004363STeresa Johnson 26a7004363STeresa Johnson!0 = !{i64 16, !"_ZTS1A"} 27a7004363STeresa Johnson!1 = !{i64 16, !"_ZTS1B"} 28a7004363STeresa Johnson!2 = !{i64 16, !"_ZTS1C"} 29a7004363STeresa Johnson 30a7004363STeresa Johnson^0 = module: (path: "<stdin>", hash: (0, 0, 0, 0, 0)) 31a7004363STeresa Johnson^1 = gv: (name: "_ZN1A1nEi") ; guid = 1621563287929432257 32*54fb3ca9SFangrui Song^2 = gv: (name: "_ZTV1B", summaries: (variable: (module: ^0, flags: (linkage: external, visibility: default, notEligibleToImport: 0, live: 0, dsoLocal: 0, canAutoHide: 0), varFlags: (readonly: 0, writeonly: 0, constant: 0, vcall_visibility: 0), vTableFuncs: ((virtFunc: ^3, offset: 16), (virtFunc: ^1, offset: 24)), refs: (^3, ^1)))) ; guid = 5283576821522790367 33a7004363STeresa Johnson^3 = gv: (name: "_ZN1B1fEi") ; guid = 7162046368816414394 34*54fb3ca9SFangrui Song^4 = gv: (name: "_ZTV1C", summaries: (variable: (module: ^0, flags: (linkage: external, visibility: default, notEligibleToImport: 0, live: 0, dsoLocal: 0, canAutoHide: 0), varFlags: (readonly: 0, writeonly: 0, constant: 0, vcall_visibility: 0), vTableFuncs: ((virtFunc: ^5, offset: 16), (virtFunc: ^1, offset: 24)), refs: (^1, ^5)))) ; guid = 13624023785555846296 35a7004363STeresa Johnson^5 = gv: (name: "_ZN1C1fEi") ; guid = 14876272565662207556 36a7004363STeresa Johnson^6 = typeidCompatibleVTable: (name: "_ZTS1A", summary: ((offset: 16, ^2), (offset: 16, ^4))) ; guid = 7004155349499253778 37a7004363STeresa Johnson^7 = typeidCompatibleVTable: (name: "_ZTS1B", summary: ((offset: 16, ^2))) ; guid = 6203814149063363976 38a7004363STeresa Johnson^8 = typeidCompatibleVTable: (name: "_ZTS1C", summary: ((offset: 16, ^4))) ; guid = 1884921850105019584 39a7fa35a6SHiroshi Yamauchi^9 = blockcount: 0 40