xref: /llvm-project/lld/test/MachO/cspgo-gen.ll (revision 85af42df5dbb964d767feb16a5551dddb36fd4f1)
1; REQUIRES: x86
2
3; RUN: llvm-as %s -o %t.o
4; RUN: %lld -dylib --cs-profile-generate --cs-profile-path=default_%m.profraw %t.o -o %t --lto-debug-pass-manager 2>&1 | FileCheck %s --implicit-check-not=PGOInstrumentation
5
6; CHECK: PGOInstrumentationGen
7
8target triple = "x86_64-apple-darwin"
9target datalayout = "e-m:o-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
10
11@__llvm_profile_runtime = global i32 0, align 4
12
13define void @foo() {
14entry:
15  ret void
16}
17