xref: /llvm-project/lld/test/MachO/cspgo-use.ll (revision 85af42df5dbb964d767feb16a5551dddb36fd4f1)
1*85af42dfSEllis Hoag; REQUIRES: x86
2*85af42dfSEllis Hoag
3*85af42dfSEllis Hoag; Create an empty profile
4*85af42dfSEllis Hoag; RUN: echo > %t.proftext
5*85af42dfSEllis Hoag; RUN: llvm-profdata merge %t.proftext -o %t.profdata
6*85af42dfSEllis Hoag
7*85af42dfSEllis Hoag; RUN: llvm-as %s -o %t.o
8*85af42dfSEllis Hoag; RUN: %lld -dylib --cs-profile-path=%t.profdata %t.o -o %t --lto-debug-pass-manager 2>&1 | FileCheck %s --implicit-check-not=PGOInstrumentation
9*85af42dfSEllis Hoag
10*85af42dfSEllis Hoag; CHECK: Running pass: PGOInstrumentationUse
11*85af42dfSEllis Hoag
12*85af42dfSEllis Hoagtarget triple = "x86_64-apple-darwin"
13*85af42dfSEllis Hoagtarget datalayout = "e-m:o-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
14*85af42dfSEllis Hoag
15*85af42dfSEllis Hoagdefine void @foo() {
16*85af42dfSEllis Hoagentry:
17*85af42dfSEllis Hoag  ret void
18*85af42dfSEllis Hoag}
19