1; RUN: opt < %s -pgo-instr-gen -instrprof -S | FileCheck %s 2; RUN: opt < %s -passes=pgo-instr-gen,instrprof -S | FileCheck %s 3target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" 4target triple = "x86_64-unknown-linux-gnu" 5 6$foo = comdat any 7 8; CHECK: $__llvm_profile_raw_version = comdat any 9; CHECK: $__profv__stdin__foo = comdat any 10 11@bar = global i32 ()* @foo, align 8 12 13; CHECK: @__llvm_profile_raw_version = constant i64 {{[0-9]+}}, comdat 14; CHECK: @__profn__stdin__foo = private constant [11 x i8] c"<stdin>:foo" 15; CHECK: @__profc__stdin__foo = private global [1 x i64] zeroinitializer, section "__llvm_prf_cnts", comdat($__profv__stdin__foo), align 8 16; CHECK: @__profd__stdin__foo = private global { i64, i64, i64*, i8*, i8*, i32, [1 x i16] } { i64 -5640069336071256030, i64 12884901887, i64* getelementptr inbounds ([1 x i64], [1 x i64]* @__profc__stdin__foo, i32 0, i32 0), i8* 17; CHECK-NOT: bitcast (i32 ()* @foo to i8*) 18; CHECK-SAME: null 19; CHECK-SAME: , i8* null, i32 1, [1 x i16] zeroinitializer }, section "__llvm_prf_data", comdat($__profv__stdin__foo), align 8 20; CHECK: @__llvm_prf_nm 21; CHECK: @llvm.used 22 23define internal i32 @foo() comdat { 24entry: 25 ret i32 1 26} 27