• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1;; Emit the runtime hook even if there are no counter increments.
2
3; RUN: opt < %s -mtriple=x86_64-apple-macosx10.10.0 -instrprof -S | FileCheck %s -check-prefixes=ALL,DARWIN
4; RUN: opt < %s -mtriple=x86_64-apple-macosx10.10.0 -passes=instrprof -S | FileCheck %s -check-prefixes=ALL,DARWIN
5; RUN: opt < %s -mtriple=x86_64-linux-unknown -passes=instrprof -S | FileCheck %s -check-prefixes=ALL,LINUX
6; ALL-NOT: @__profc
7; ALL-NOT: @__profd
8; DARWIN: @__llvm_profile_runtime
9; LINUX-NOT: @__llvm_profile_runtime
10
11define void @foo() {
12  ret void
13}
14