mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-26 12:43:36 +01:00
6794d96976
This restores commit 80d0a137a5aba6998fadb764f1e11cb901aae233, and the follow on fix in 873c0d0786dcf22f4af39f65df824917f70f2170, with a new fix for test failures after a 2-stage clang bootstrap, and a more robust fix for the Chromium build failure that an earlier version partially fixed. See also discussion on D75201. Reviewers: evgeny777 Subscribers: mehdi_amini, Prazek, hiraditya, steven_wu, dexonsmith, arphaman, davidxl, cfe-commits, llvm-commits Tags: #clang, #llvm Differential Revision: https://reviews.llvm.org/D73242
42 lines
1.4 KiB
LLVM
42 lines
1.4 KiB
LLVM
; RUN: opt -wholeprogramdevirt -whole-program-visibility -wholeprogramdevirt-summary-action=export -wholeprogramdevirt-read-summary=%S/Inputs/export.yaml -wholeprogramdevirt-write-summary=%t -S -o - %s | FileCheck %s
|
|
; RUN: FileCheck --check-prefix=SUMMARY %s < %t
|
|
|
|
; SUMMARY-NOT: TypeTests:
|
|
|
|
; SUMMARY: TypeIdMap:
|
|
; SUMMARY-NEXT: typeid4:
|
|
; SUMMARY-NEXT: TTRes:
|
|
; SUMMARY-NEXT: Kind: Unknown
|
|
; SUMMARY-NEXT: SizeM1BitWidth: 0
|
|
; SUMMARY-NEXT: AlignLog2: 0
|
|
; SUMMARY-NEXT: SizeM1: 0
|
|
; SUMMARY-NEXT: BitMask: 0
|
|
; SUMMARY-NEXT: InlineBits: 0
|
|
; SUMMARY-NEXT: WPDRes:
|
|
; SUMMARY-NEXT: 0:
|
|
; SUMMARY-NEXT: Kind: Indir
|
|
; SUMMARY-NEXT: SingleImplName: ''
|
|
; SUMMARY-NEXT: ResByArg:
|
|
; SUMMARY-NEXT: 24,12:
|
|
; SUMMARY-NEXT: Kind: UniformRetVal
|
|
; SUMMARY-NEXT: Info: 36
|
|
; SUMMARY-NEXT: Byte: 0
|
|
; SUMMARY-NEXT: Bit: 0
|
|
|
|
; CHECK: @vt4a = constant i32 (i8*, i32, i32)* @vf4a
|
|
@vt4a = constant i32 (i8*, i32, i32)* @vf4a, !type !0
|
|
|
|
; CHECK: @vt4b = constant i32 (i8*, i32, i32)* @vf4b
|
|
@vt4b = constant i32 (i8*, i32, i32)* @vf4b, !type !0
|
|
|
|
define i32 @vf4a(i8*, i32 %x, i32 %y) {
|
|
%z = add i32 %x, %y
|
|
ret i32 %z
|
|
}
|
|
|
|
define i32 @vf4b(i8*, i32 %x, i32 %y) {
|
|
ret i32 36
|
|
}
|
|
|
|
!0 = !{i32 0, !"typeid4"}
|