1 ; RUN: opt -wholeprogramdevirt -wholeprogramdevirt-summary-action=export -wholeprogramdevirt-read-summary=%S/Inputs/export.yaml -wholeprogramdevirt-write-summary=%t -S -o - %s | FileCheck %s
2 ; RUN: FileCheck --check-prefix=SUMMARY %s < %t
4 ; SUMMARY-NOT: TypeTests:
7 ; SUMMARY-NEXT: typeid3:
9 ; SUMMARY-NEXT: Kind: Unsat
10 ; SUMMARY-NEXT: SizeM1BitWidth: 0
11 ; SUMMARY-NEXT: AlignLog2: 0
12 ; SUMMARY-NEXT: SizeM1: 0
13 ; SUMMARY-NEXT: BitMask: 0
14 ; SUMMARY-NEXT: InlineBits: 0
15 ; SUMMARY-NEXT: WPDRes:
17 ; SUMMARY-NEXT: Kind: Indir
18 ; SUMMARY-NEXT: SingleImplName: ''
19 ; SUMMARY-NEXT: ResByArg:
20 ; SUMMARY-NEXT: 12,24:
21 ; SUMMARY-NEXT: Kind: UniqueRetVal
22 ; SUMMARY-NEXT: Info: 0
23 ; SUMMARY-NEXT: Byte: 0
24 ; SUMMARY-NEXT: Bit: 0
25 ; SUMMARY-NEXT: typeid4:
26 ; SUMMARY-NEXT: TTRes:
27 ; SUMMARY-NEXT: Kind: Unsat
28 ; SUMMARY-NEXT: SizeM1BitWidth: 0
29 ; SUMMARY-NEXT: AlignLog2: 0
30 ; SUMMARY-NEXT: SizeM1: 0
31 ; SUMMARY-NEXT: BitMask: 0
32 ; SUMMARY-NEXT: InlineBits: 0
33 ; SUMMARY-NEXT: WPDRes:
35 ; SUMMARY-NEXT: Kind: Indir
36 ; SUMMARY-NEXT: SingleImplName: ''
37 ; SUMMARY-NEXT: ResByArg:
38 ; SUMMARY-NEXT: 24,12:
39 ; SUMMARY-NEXT: Kind: UniqueRetVal
40 ; SUMMARY-NEXT: Info: 1
41 ; SUMMARY-NEXT: Byte: 0
42 ; SUMMARY-NEXT: Bit: 0
44 ; CHECK: @vt3a = constant i1 (i8*, i32, i32)* @vf3a
45 @vt3a = constant i1 (i8*, i32, i32)* @vf3a, !type !0
47 ; CHECK: @vt3b = constant i1 (i8*, i32, i32)* @vf3b
48 @vt3b = constant i1 (i8*, i32, i32)* @vf3b, !type !0
50 ; CHECK: @vt3c = constant i1 (i8*, i32, i32)* @vf3c
51 @vt3c = constant i1 (i8*, i32, i32)* @vf3c, !type !0
53 ; CHECK: @vt4a = constant i1 (i8*, i32, i32)* @vf4a
54 @vt4a = constant i1 (i8*, i32, i32)* @vf4a, !type !1
56 ; CHECK: @vt4b = constant i1 (i8*, i32, i32)* @vf4b
57 @vt4b = constant i1 (i8*, i32, i32)* @vf4b, !type !1
59 ; CHECK: @vt4c = constant i1 (i8*, i32, i32)* @vf4c
60 @vt4c = constant i1 (i8*, i32, i32)* @vf4c, !type !1
62 ; CHECK: @__typeid_typeid3_0_12_24_unique_member = hidden alias i8, bitcast (i1 (i8*, i32, i32)** @vt3b to i8*)
63 ; CHECK: @__typeid_typeid4_0_24_12_unique_member = hidden alias i8, bitcast (i1 (i8*, i32, i32)** @vt4b to i8*)
65 define i1 @vf3a(i8*, i32, i32) {
69 define i1 @vf3b(i8*, i32, i32) {
73 define i1 @vf3c(i8*, i32, i32) {
77 define i1 @vf4a(i8*, i32, i32) {
81 define i1 @vf4b(i8*, i32, i32) {
85 define i1 @vf4c(i8*, i32, i32) {
89 !0 = !{i32 0, !"typeid3"}
90 !1 = !{i32 0, !"typeid4"}