summaryrefslogtreecommitdiffstats
path: root/llvm/test/Instrumentation/InstrProfiling/platform.ll
diff options
context:
space:
mode:
authorBetul Buyukkurt <betulb@codeaurora.org>2015-11-18 18:14:55 +0000
committerBetul Buyukkurt <betulb@codeaurora.org>2015-11-18 18:14:55 +0000
commit6fac1741c914939a7ca2f9a5b118dc27247f403c (patch)
treee97807136d8bf5e75422c1a6c6b844e27294fda6 /llvm/test/Instrumentation/InstrProfiling/platform.ll
parent808385f1aedc196e1b7b3ac88667aee8d5b8fa1d (diff)
downloadbcm5719-llvm-6fac1741c914939a7ca2f9a5b118dc27247f403c.tar.gz
bcm5719-llvm-6fac1741c914939a7ca2f9a5b118dc27247f403c.zip
[PGO] Value profiling support
This change introduces an instrumentation intrinsic instruction for value profiling purposes, the lowering of the instrumentation intrinsic and raw reader updates. The raw profile data files for llvm-profdata testing are updated. llvm-svn: 253484
Diffstat (limited to 'llvm/test/Instrumentation/InstrProfiling/platform.ll')
-rw-r--r--llvm/test/Instrumentation/InstrProfiling/platform.ll9
1 files changed, 5 insertions, 4 deletions
diff --git a/llvm/test/Instrumentation/InstrProfiling/platform.ll b/llvm/test/Instrumentation/InstrProfiling/platform.ll
index 9fe84b043e2..6ae10f19c0e 100644
--- a/llvm/test/Instrumentation/InstrProfiling/platform.ll
+++ b/llvm/test/Instrumentation/InstrProfiling/platform.ll
@@ -12,10 +12,11 @@
; MACHO: @__llvm_profile_counters_foo = hidden global [1 x i64] zeroinitializer, section "__DATA,__llvm_prf_cnts", align 8
; ELF: @__llvm_profile_counters_foo = hidden global [1 x i64] zeroinitializer, section "__llvm_prf_cnts", align 8
-; MACHO: @__llvm_profile_data_foo = hidden constant {{.*}}, section "__DATA,__llvm_prf_data", align 8
-; LINUX: @__llvm_profile_data_foo = hidden constant {{.*}}, section "__llvm_prf_data", align 8
-; FREEBSD: @__llvm_profile_data_foo = hidden constant {{.*}}, section "__llvm_prf_data", align 8
-; SOLARIS: @__llvm_profile_data_foo = hidden constant {{.*}}, section "__llvm_prf_data", align 8
+; MACHO: @__llvm_profile_data_foo = hidden {{.*}}, section "__DATA,__llvm_prf_data", align 8
+; LINUX: @__llvm_profile_data_foo = hidden {{.*}}, section "__llvm_prf_data", align 8
+; FREEBSD: @__llvm_profile_data_foo = hidden {{.*}}, section "__llvm_prf_data", align 8
+; SOLARIS: @__llvm_profile_data_foo = hidden {{.*}}, section "__llvm_prf_data", align 8
+
define void @foo() {
call void @llvm.instrprof.increment(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @__llvm_profile_name_foo, i32 0, i32 0), i64 0, i32 1, i32 0)
ret void
OpenPOWER on IntegriCloud