brintos

brintos / llvm-project-archived public Read only

0
0
Text · 650 B · c08ba44 Raw
17 lines · plain
1; RUN: opt < %s -passes=instrprof -S | FileCheck %s2 3target triple = "aarch64-unknown-linux-gnu"4 5@__profn_foo = private constant [3 x i8] c"foo"6; CHECK: @__profc_foo = private global [2 x i64] zeroinitializer, section "__llvm_prf_cnts", comdat, align 87 8define void @_Z3foov() {9  call void @llvm.instrprof.timestamp(ptr @__profn_foo, i64 12345678, i32 2, i32 0)10  ; CHECK: call void @__llvm_profile_set_timestamp(ptr @__profc_foo)11  call void @llvm.instrprof.increment(ptr @__profn_foo, i64 12345678, i32 2, i32 1)12  ret void13}14 15declare void @llvm.instrprof.timestamp(ptr, i64, i32, i32)16declare void @llvm.instrprof.increment(ptr, i64, i32, i32)17