1; RUN: opt < %s -S -passes=instrprof -instrprof-atomic-counter-update-all | FileCheck %s 2 3target triple = "x86_64-apple-macosx10.10.0" 4 5@__profn_foo = private constant [3 x i8] c"foo" 6 7; CHECK-LABEL: define void @foo 8; CHECK-NEXT: atomicrmw add ptr @__profc_foo, i64 1 monotonic 9define void @foo() { 10 call void @llvm.instrprof.increment(ptr @__profn_foo, i64 0, i32 1, i32 0) 11 ret void 12} 13 14declare void @llvm.instrprof.increment(ptr, i64, i32, i32) 15